Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 267147
b: refs/heads/master
c: 4665e2b
h: refs/heads/master
i:
  267145: 2f813d8
  267143: cd53623
v: v3
  • Loading branch information
J. Bruce Fields committed Sep 7, 2011
1 parent 31e837c commit 9198a7f
Show file tree
Hide file tree
Showing 2 changed files with 9 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: fe0750e5c43189adb6e6fc59837af7d5a588f413
refs/heads/master: 4665e2bac5076d02264f4a4d79edafa05ec7b752
9 changes: 8 additions & 1 deletion trunk/fs/nfsd/nfs4state.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ static void unhash_generic_stateid(struct nfs4_stateid *stp)
list_del(&stp->st_perstateowner);
}

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

Expand All @@ -420,9 +420,16 @@ static void free_generic_stateid(struct nfs4_stateid *stp)
if (test_bit(i, &stp->st_access_bmap))
nfs4_file_put_access(stp->st_file,
nfs4_access_to_omode(i));
__clear_bit(i, &stp->st_access_bmap);
}
}
put_nfs4_file(stp->st_file);
stp->st_file = NULL;
}

static void free_generic_stateid(struct nfs4_stateid *stp)
{
close_generic_stateid(stp);
kmem_cache_free(stateid_slab, stp);
}

Expand Down

0 comments on commit 9198a7f

Please sign in to comment.