Commit addbda40 authored by Andrew Morton's avatar Andrew Morton Committed by Al Viro

xfs-convert-buftarg-lru-to-generic-code-fix

fix warnings

Cc: Dave Chinner <dchinner@redhat.com>
Cc: Glauber Costa <glommer@openvz.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent e80dfa19
...@@ -1536,7 +1536,7 @@ xfs_buftarg_isolate( ...@@ -1536,7 +1536,7 @@ xfs_buftarg_isolate(
return LRU_REMOVED; return LRU_REMOVED;
} }
static long static unsigned long
xfs_buftarg_shrink_scan( xfs_buftarg_shrink_scan(
struct shrinker *shrink, struct shrinker *shrink,
struct shrink_control *sc) struct shrink_control *sc)
...@@ -1544,7 +1544,7 @@ xfs_buftarg_shrink_scan( ...@@ -1544,7 +1544,7 @@ xfs_buftarg_shrink_scan(
struct xfs_buftarg *btp = container_of(shrink, struct xfs_buftarg *btp = container_of(shrink,
struct xfs_buftarg, bt_shrinker); struct xfs_buftarg, bt_shrinker);
LIST_HEAD(dispose); LIST_HEAD(dispose);
long freed; unsigned long freed;
unsigned long nr_to_scan = sc->nr_to_scan; unsigned long nr_to_scan = sc->nr_to_scan;
freed = list_lru_walk_node(&btp->bt_lru, sc->nid, xfs_buftarg_isolate, freed = list_lru_walk_node(&btp->bt_lru, sc->nid, xfs_buftarg_isolate,
...@@ -1560,7 +1560,7 @@ xfs_buftarg_shrink_scan( ...@@ -1560,7 +1560,7 @@ xfs_buftarg_shrink_scan(
return freed; return freed;
} }
static long static unsigned long
xfs_buftarg_shrink_count( xfs_buftarg_shrink_count(
struct shrinker *shrink, struct shrinker *shrink,
struct shrink_control *sc) struct shrink_control *sc)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment