]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
xfs-convert-buftarg-lru-to-generic-code-fix
authorAndrew Morton <akpm@linux-foundation.org>
Wed, 19 Jun 2013 00:06:49 +0000 (10:06 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 19 Jun 2013 07:13:30 +0000 (17:13 +1000)
fix warnings

Cc: Dave Chinner <dchinner@redhat.com>
Cc: Glauber Costa <glommer@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
fs/xfs/xfs_buf.c

index b19b8a4d9bcd4547bd0df9963bb814c4f69b2db8..493783ebcee5d8f2cec63aad15b83db5e5df10d7 100644 (file)
@@ -1535,7 +1535,7 @@ xfs_buftarg_isolate(
        return LRU_REMOVED;
 }
 
-static long
+static unsigned long
 xfs_buftarg_shrink_scan(
        struct shrinker         *shrink,
        struct shrink_control   *sc)
@@ -1543,7 +1543,7 @@ xfs_buftarg_shrink_scan(
        struct xfs_buftarg      *btp = container_of(shrink,
                                        struct xfs_buftarg, bt_shrinker);
        LIST_HEAD(dispose);
-       long                    freed;
+       unsigned long           freed;
        unsigned long           nr_to_scan = sc->nr_to_scan;
 
        freed = list_lru_walk_node(&btp->bt_lru, sc->nid, xfs_buftarg_isolate,
@@ -1559,7 +1559,7 @@ xfs_buftarg_shrink_scan(
        return freed;
 }
 
-static long
+static unsigned long
 xfs_buftarg_shrink_count(
        struct shrinker         *shrink,
        struct shrink_control   *sc)