diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-12 21:54:28 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-02-12 21:54:28 -0500 |
commit | 818099574b04c5301eacbbcd441022b353a65466 (patch) | |
tree | 77b3645b375105cb0389df2b4ea5ffa90329f7f8 /fs/gfs2 | |
parent | 802ea9d8645d33d24b7b4cd4537c14f3e698bde0 (diff) | |
parent | 6016daed58ee482a2f7684e93342e89139cf4419 (diff) |
Merge branch 'akpm' (patches from Andrew)
Merge third set of updates from Andrew Morton:
- the rest of MM
[ This includes getting rid of the numa hinting bits, in favor of
just generic protnone logic. Yay. - Linus ]
- core kernel
- procfs
- some of lib/ (lots of lib/ material this time)
* emailed patches from Andrew Morton <akpm@linux-foundation.org>: (104 commits)
lib/lcm.c: replace include
lib/percpu_ida.c: remove redundant includes
lib/strncpy_from_user.c: replace module.h include
lib/stmp_device.c: replace module.h include
lib/sort.c: move include inside #if 0
lib/show_mem.c: remove redundant include
lib/radix-tree.c: change to simpler include
lib/plist.c: remove redundant include
lib/nlattr.c: remove redundant include
lib/kobject_uevent.c: remove redundant include
lib/llist.c: remove redundant include
lib/md5.c: simplify include
lib/list_sort.c: rearrange includes
lib/genalloc.c: remove redundant include
lib/idr.c: remove redundant include
lib/halfmd4.c: simplify includes
lib/dynamic_queue_limits.c: simplify includes
lib/sort.c: use simpler includes
lib/interval_tree.c: simplify includes
hexdump: make it return number of bytes placed in buffer
...
Diffstat (limited to 'fs/gfs2')
-rw-r--r-- | fs/gfs2/quota.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/gfs2/quota.c b/fs/gfs2/quota.c index 3e193cb36996..3aa17d4d1cfc 100644 --- a/fs/gfs2/quota.c +++ b/fs/gfs2/quota.c | |||
@@ -145,7 +145,8 @@ static void gfs2_qd_dispose(struct list_head *list) | |||
145 | } | 145 | } |
146 | 146 | ||
147 | 147 | ||
148 | static enum lru_status gfs2_qd_isolate(struct list_head *item, spinlock_t *lock, void *arg) | 148 | static enum lru_status gfs2_qd_isolate(struct list_head *item, |
149 | struct list_lru_one *lru, spinlock_t *lru_lock, void *arg) | ||
149 | { | 150 | { |
150 | struct list_head *dispose = arg; | 151 | struct list_head *dispose = arg; |
151 | struct gfs2_quota_data *qd = list_entry(item, struct gfs2_quota_data, qd_lru); | 152 | struct gfs2_quota_data *qd = list_entry(item, struct gfs2_quota_data, qd_lru); |
@@ -155,7 +156,7 @@ static enum lru_status gfs2_qd_isolate(struct list_head *item, spinlock_t *lock, | |||
155 | 156 | ||
156 | if (qd->qd_lockref.count == 0) { | 157 | if (qd->qd_lockref.count == 0) { |
157 | lockref_mark_dead(&qd->qd_lockref); | 158 | lockref_mark_dead(&qd->qd_lockref); |
158 | list_move(&qd->qd_lru, dispose); | 159 | list_lru_isolate_move(lru, &qd->qd_lru, dispose); |
159 | } | 160 | } |
160 | 161 | ||
161 | spin_unlock(&qd->qd_lockref.lock); | 162 | spin_unlock(&qd->qd_lockref.lock); |
@@ -171,8 +172,8 @@ static unsigned long gfs2_qd_shrink_scan(struct shrinker *shrink, | |||
171 | if (!(sc->gfp_mask & __GFP_FS)) | 172 | if (!(sc->gfp_mask & __GFP_FS)) |
172 | return SHRINK_STOP; | 173 | return SHRINK_STOP; |
173 | 174 | ||
174 | freed = list_lru_walk_node(&gfs2_qd_lru, sc->nid, gfs2_qd_isolate, | 175 | freed = list_lru_shrink_walk(&gfs2_qd_lru, sc, |
175 | &dispose, &sc->nr_to_scan); | 176 | gfs2_qd_isolate, &dispose); |
176 | 177 | ||
177 | gfs2_qd_dispose(&dispose); | 178 | gfs2_qd_dispose(&dispose); |
178 | 179 | ||
@@ -182,7 +183,7 @@ static unsigned long gfs2_qd_shrink_scan(struct shrinker *shrink, | |||
182 | static unsigned long gfs2_qd_shrink_count(struct shrinker *shrink, | 183 | static unsigned long gfs2_qd_shrink_count(struct shrinker *shrink, |
183 | struct shrink_control *sc) | 184 | struct shrink_control *sc) |
184 | { | 185 | { |
185 | return vfs_pressure_ratio(list_lru_count_node(&gfs2_qd_lru, sc->nid)); | 186 | return vfs_pressure_ratio(list_lru_shrink_count(&gfs2_qd_lru, sc)); |
186 | } | 187 | } |
187 | 188 | ||
188 | struct shrinker gfs2_qd_shrinker = { | 189 | struct shrinker gfs2_qd_shrinker = { |