]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: Do not let nfs4_file pin the struct inode
authorJeff Layton <jlayton@primarydata.com>
Wed, 23 Jul 2014 20:17:41 +0000 (16:17 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 23 Jul 2014 20:35:24 +0000 (16:35 -0400)
commitb3d7e484d78fd1f2391f5a5c7aa217deede875fb
tree1a6137e597d1a9e0523834a865f34d683dd8a012
parent0b1f9b6a6c79c0a35dfa2323cfcfa77c84dc8e78
nfsd: Do not let nfs4_file pin the struct inode

Remove the fi_inode field in struct nfs4_file in order to remove the
possibility of struct nfs4_file pinning the inode when it does not have
any open state.

The only place we still need to get to an inode is in check_for_locks,
so change it to use find_any_file and use the inode from any that it
finds. If it doesn't find one, then just assume there aren't any.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c
fs/nfsd/state.h