Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 217059
b: refs/heads/master
c: aa510da
h: refs/heads/master
i:
  217057: 6caa630
  217055: ac60699
v: v3
  • Loading branch information
Trond Myklebust authored and Trond Myklebust committed Sep 29, 2010
1 parent 3084e25 commit 33adcf0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: a00dd6c03dd97a777c291a8af8682be4b5fadf8d
refs/heads/master: aa510da5bfe1dfe263215fd0e05dac96e738a782
4 changes: 2 additions & 2 deletions trunk/fs/nfs/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -1788,14 +1788,14 @@ static void nfs_access_free_list(struct list_head *head)
int nfs_access_cache_shrinker(struct shrinker *shrink, int nr_to_scan, gfp_t gfp_mask)
{
LIST_HEAD(head);
struct nfs_inode *nfsi;
struct nfs_inode *nfsi, *next;
struct nfs_access_entry *cache;

if ((gfp_mask & GFP_KERNEL) != GFP_KERNEL)
return (nr_to_scan == 0) ? 0 : -1;

spin_lock(&nfs_access_lru_lock);
list_for_each_entry(nfsi, &nfs_access_lru_list, access_cache_inode_lru) {
list_for_each_entry_safe(nfsi, next, &nfs_access_lru_list, access_cache_inode_lru) {
struct inode *inode;

if (nr_to_scan-- == 0)
Expand Down

0 comments on commit 33adcf0

Please sign in to comment.