]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Don't compare apples to elephants to determine access bits
authorAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 26 Jul 2017 16:00:21 +0000 (12:00 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 16 Oct 2017 17:51:27 +0000 (13:51 -0400)
commitfde13cbd602250736ea15d33161d1c1015d770c3
tree92832c1be321397bd8ead4d530bda3889db87160
parent8e186400e258a38dca0db1f6797a4f72f13508be
NFS: Don't compare apples to elephants to determine access bits

The NFS_ACCESS_* flags aren't a 1:1 mapping to the MAY_* flags, so
checking for MAY_WHATEVER might have surprising results in
nfs*_proc_access().  Let's simplify this check when determining which
bits to ask for, and do it in a generic place instead of copying code
for each NFS version.

Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/dir.c
fs/nfs/nfs3proc.c
fs/nfs/nfs4proc.c