]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
shrinker-convert-superblock-shrinkers-to-new-api-fix
authorAndrew Morton <akpm@linux-foundation.org>
Thu, 1 Aug 2013 06:36:09 +0000 (16:36 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 2 Aug 2013 07:37:13 +0000 (17:37 +1000)
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>
fs/super.c

index d1600c2cac97ba52206b4646fd15d58bc9c9954d..5f433de504513d12c364da174d040a129a098405 100644 (file)
@@ -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;