]> git.baikalelectronics.ru Git - kernel.git/commit
nfsd: clean up helper __release_lock_stateid
authorTrond Myklebust <trond.myklebust@primarydata.com>
Thu, 10 Jul 2014 18:07:27 +0000 (14:07 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Thu, 10 Jul 2014 19:05:26 +0000 (15:05 -0400)
commit867e2f78787fbe7dae391d08de48e1abddbe43d4
treeb34b7459d45443731931c3f2e58580fe8b2b0521
parented7509be98a695d2944a617285e1568c6d6b0287
nfsd: clean up helper __release_lock_stateid

Use filp_close instead of open coding. filp_close does a bit more than
just release the locks and put the filp. It also calls ->flush and
dnotify_flush, both of which should be done here anyway.

Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Signed-off-by: Jeff Layton <jlayton@primarydata.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/nfs4state.c