]> git.karo-electronics.de Git - karo-tx-linux.git/commit
mbcache: use consistent type for entry count
authorEric Biggers <ebiggers@google.com>
Sat, 3 Dec 2016 20:43:48 +0000 (15:43 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 3 Dec 2016 20:43:48 +0000 (15:43 -0500)
commit132d4e2d55dfd9edae26cb35f088add7c19990e6
tree622e89027af2e61c115728a74b0d71190d4c057b
parent97c7b18a5d15516a4358a6d2d5ddfb22d62d9fac
mbcache: use consistent type for entry count

mbcache used several different types to represent the number of entries
in the cache.  For consistency within mbcache and with the shrinker API,
always use unsigned long.

This does not change behavior for current mbcache users (ext2 and ext4)
since they limit the entry count to a value which easily fits in an int.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
fs/mbcache.c