From d329aa686731ae341356a5d340677d722de9c1d5 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Wed, 28 Aug 2013 10:17:57 +1000 Subject: 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 Cc: Glauber Costa Signed-off-by: Andrew Morton --- fs/super.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fs/super.c b/fs/super.c index 3cd81f841627..1713743f8d95 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; -- cgit v1.2.3