diff options
author | Andrew Morton <akpm@linux-foundation.org> | 2013-07-03 10:19:51 +1000 |
---|---|---|
committer | Stephen Rothwell <sfr@canb.auug.org.au> | 2013-07-09 15:24:44 +1000 |
commit | 3f65c23e2218d31ba7c883dcbbf971b8404096be (patch) | |
tree | a1ebc231538790e60aaf72d824f7da315c0fbb52 /fs | |
parent | 4f26a3a46adf7788f83c4e38599be7789df9845f (diff) |
shrinker-convert-superblock-shrinkers-to-new-api-fix
fix warnings
fs/super.c: In function 'alloc_super':
fs/super.c:240: warning: assignment from incompatible pointer type
fs/super.c:241: warning: assignment from incompatible pointer type
Cc: Dave Chinner <dchinner@redhat.com>
Cc: Glauber Costa <glommer@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/super.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/super.c b/fs/super.c index 86801eb2555e..00375e8de4ef 100644 --- a/fs/super.c +++ b/fs/super.c @@ -53,7 +53,8 @@ static char *sb_writers_name[SB_FREEZE_LEVELS] = { * shrinker path and that leads to deadlock on the shrinker_rwsem. Hence we * take a passive reference to the superblock to avoid this from occurring. */ -static long super_cache_scan(struct shrinker *shrink, struct shrink_control *sc) +static unsigned long super_cache_scan(struct shrinker *shrink, + struct shrink_control *sc) { struct super_block *sb; long fs_objects = 0; @@ -103,7 +104,8 @@ static long super_cache_scan(struct shrinker *shrink, struct shrink_control *sc) return freed; } -static long super_cache_count(struct shrinker *shrink, struct shrink_control *sc) +static unsigned long super_cache_count(struct shrinker *shrink, + struct shrink_control *sc) { struct super_block *sb; long total_objects = 0; |