Skip to content

Commit

Permalink
xfs-convert-buftarg-lru-to-generic-code-fix
Browse files Browse the repository at this point in the history
fix warnings

Cc: Dave Chinner <dchinner@redhat.com>
Cc: Glauber Costa <glommer@openvz.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Andrew Morton authored and Al Viro committed Sep 10, 2013
1 parent e80dfa1 commit addbda4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions fs/xfs/xfs_buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1536,15 +1536,15 @@ xfs_buftarg_isolate(
return LRU_REMOVED;
}

static long
static unsigned long
xfs_buftarg_shrink_scan(
struct shrinker *shrink,
struct shrink_control *sc)
{
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,
Expand All @@ -1560,7 +1560,7 @@ xfs_buftarg_shrink_scan(
return freed;
}

static long
static unsigned long
xfs_buftarg_shrink_count(
struct shrinker *shrink,
struct shrink_control *sc)
Expand Down

0 comments on commit addbda4

Please sign in to comment.