]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/buffer.c: change type of max_buffer_heads to unsigned long
authorZhang Yanfei <zhangyanfei@cn.fujitsu.com>
Wed, 20 Feb 2013 02:15:00 +0000 (13:15 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 20 Feb 2013 05:52:59 +0000 (16:52 +1100)
commit235b0773c3866be80dc75f209cd7a2eede32f31f
tree104931a84596477be57d97f1ad0d9994ffc32471
parentdfdbcab1e03f45fe91082f801862f3065b21f938
fs/buffer.c: change type of max_buffer_heads to unsigned long

max_buffer_heads is calculated from nr_free_buffer_pages(), so change its
type to unsigned long in case of overflow.

Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/buffer.c