Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 259050
b: refs/heads/master
c: 499f3ed
h: refs/heads/master
v: v3
  • Loading branch information
J. Bruce Fields committed Jul 15, 2011
1 parent f0c8d9d commit fc63aa9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 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: 17456804546b78a1c13d2b934c8f50bbde141a38
refs/heads/master: 499f3edc23ca0431f3a0a6736b3a40944c81bf3b
17 changes: 6 additions & 11 deletions trunk/fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -385,14 +385,6 @@ static int nfs4_access_to_omode(u32 access)
BUG();
}

static int nfs4_access_bmap_to_omode(struct nfs4_stateid *stp)
{
unsigned int access;

set_access(&access, stp->st_access_bmap);
return nfs4_access_to_omode(access);
}

static void unhash_generic_stateid(struct nfs4_stateid *stp)
{
list_del(&stp->st_hash);
Expand All @@ -402,11 +394,14 @@ static void unhash_generic_stateid(struct nfs4_stateid *stp)

static void free_generic_stateid(struct nfs4_stateid *stp)
{
int oflag;
int i;

if (stp->st_access_bmap) {
oflag = nfs4_access_bmap_to_omode(stp);
nfs4_file_put_access(stp->st_file, oflag);
for (i = 1; i < 4; i++) {
if (test_bit(i, &stp->st_access_bmap))
nfs4_file_put_access(stp->st_file,
nfs4_access_to_omode(i));
}
}
put_nfs4_file(stp->st_file);
kmem_cache_free(stateid_slab, stp);
Expand Down

0 comments on commit fc63aa9

Please sign in to comment.