Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 272150
b: refs/heads/master
c: 09f363c
h: refs/heads/master
v: v3
  • Loading branch information
Mikulas Patocka authored and Linus Torvalds committed Nov 1, 2011
1 parent 52c39b9 commit 0e66aff
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 20c8c62891a346e09c8d26de41ce78bd7a76c5b0
refs/heads/master: 09f363c7363eb10cfb4b82094bd7064e5608258b
2 changes: 1 addition & 1 deletion trunk/fs/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ static int prune_super(struct shrinker *shrink, struct shrink_control *sc)
return -1;

if (!grab_super_passive(sb))
return -1;
return !sc->nr_to_scan ? 0 : -1;

if (sb->s_op && sb->s_op->nr_cached_objects)
fs_objects = sb->s_op->nr_cached_objects(sb);
Expand Down
1 change: 1 addition & 0 deletions trunk/include/linux/shrinker.h
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ struct shrink_control {
* 'nr_to_scan' entries and attempt to free them up. It should return
* the number of objects which remain in the cache. If it returns -1, it means
* it cannot do any scanning at this time (eg. there is a risk of deadlock).
* The callback must not return -1 if nr_to_scan is zero.
*
* The 'gfpmask' refers to the allocation we are currently trying to
* fulfil.
Expand Down

0 comments on commit 0e66aff

Please sign in to comment.