]> git.baikalelectronics.ru Git - kernel.git/commit
NFS: Use raw NFS access mask in nfs4_opendata_access()
authorAnna Schumaker <Anna.Schumaker@Netapp.com>
Tue, 25 Jul 2017 20:10:47 +0000 (16:10 -0400)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Wed, 26 Jul 2017 20:53:57 +0000 (16:53 -0400)
commitf823d84b9affc69f3e6b843d84bf1b92fc0e0738
tree5fbb6452e99d9c30de647e697eff178d9cd38663
parent0de752cec8fa3fcacba32a9c48d4917af07f7c63
NFS: Use raw NFS access mask in nfs4_opendata_access()

Commit f37978e264e5 ("NFS: Store the raw NFS access mask in the inode's
access cache") changed how the access results are stored after an
access() call.  An NFS v4 OPEN might have access bits returned with the
opendata, so we should use the NFS4_ACCESS values when determining the
return value in nfs4_opendata_access().

Fixes: f37978e264e5 ("NFS: Store the raw NFS access mask in the inode's
access cache")
Reported-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
Tested-by: Takashi Iwai <tiwai@suse.de>
fs/nfs/nfs4proc.c