]> git.karo-electronics.de Git - karo-tx-linux.git/commit
nfsd: allow filecache open to skip fh_verify check
authorJeff Layton <jlayton@poochiereds.net>
Tue, 20 Oct 2015 17:33:44 +0000 (13:33 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Fri, 23 Oct 2015 19:57:39 +0000 (15:57 -0400)
commit77ffc7cc397b33d55f53482e8ee3336d2968708f
tree79ebd09fbc32f44a8370858a31702a79515bec34
parent9a9d575074e72f58a4aba80fd6078c6d98072af8
nfsd: allow filecache open to skip fh_verify check

Currently, we call fh_verify twice on the filehandle. Once when we call
into nfsd_file_acquire, and then again from nfsd_open. The second one is
completely superfluous though, and fh_verify can do some things that
require a fair bit of work (checking permissions, for instance).

Create a new nfsd_open_verified function that will do an nfsd_open on a
filehandle that has already been verified. Call that from the filecache
code.

Signed-off-by: Jeff Layton <jeff.layton@primarydata.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
fs/nfsd/filecache.c
fs/nfsd/vfs.c
fs/nfsd/vfs.h