Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 142155
b: refs/heads/master
c: 3e63307
h: refs/heads/master
i:
  142153: 0f6c91b
  142151: 06ac5a7
v: v3
  • Loading branch information
J. Bruce Fields committed Mar 18, 2009
1 parent 7e0b031 commit 01ebf84
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 819a8f539acf7838d62fec20e88401ff53303cd1
refs/heads/master: 3e633079e377d2b527a8390f63ceb887b5cabfbf
7 changes: 6 additions & 1 deletion trunk/fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -2048,6 +2048,11 @@ static int check_stateid_generation(stateid_t *in, stateid_t *ref)
return nfs_ok;
}

static int is_delegation_stateid(stateid_t *stateid)
{
return stateid->si_fileid == 0;
}

/*
* Checks for stateid operations
*/
Expand All @@ -2073,7 +2078,7 @@ nfs4_preprocess_stateid_op(struct svc_fh *current_fh, stateid_t *stateid, int fl
goto out;

status = nfserr_bad_stateid;
if (!stateid->si_fileid) { /* delegation stateid */
if (is_delegation_stateid(stateid)) {
dp = find_delegation_stateid(ino, stateid);
if (!dp)
goto out;
Expand Down

0 comments on commit 01ebf84

Please sign in to comment.