Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 284644
b: refs/heads/master
c: 2d3475c
h: refs/heads/master
v: v3
  • Loading branch information
Bryan Schumaker authored and J. Bruce Fields committed Dec 14, 2011
1 parent cf0ab63 commit b49a8d0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 39c4cc0fcc38cff29d5b9884372b17c894c9c080
refs/heads/master: 2d3475c0ad625f7a43844a6cd0130d136416e604
9 changes: 5 additions & 4 deletions trunk/fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -4505,18 +4505,19 @@ void nfsd_forget_openowners(u64 num)
int nfsd_process_n_delegations(u64 num, void (*deleg_func)(struct nfs4_delegation *))
{
int i, count = 0;
struct nfs4_file *fp;
struct nfs4_delegation *dp, *next;
struct nfs4_file *fp, *fnext;
struct nfs4_delegation *dp, *dnext;

for (i = 0; i < FILE_HASH_SIZE; i++) {
list_for_each_entry(fp, &file_hashtbl[i], fi_hash) {
list_for_each_entry_safe(dp, next, &fp->fi_delegations, dl_perfile) {
list_for_each_entry_safe(fp, fnext, &file_hashtbl[i], fi_hash) {
list_for_each_entry_safe(dp, dnext, &fp->fi_delegations, dl_perfile) {
deleg_func(dp);
if (++count == num)
return count;
}
}
}

return count;
}

Expand Down

0 comments on commit b49a8d0

Please sign in to comment.