]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
NFSv4: Fixes for nfs4_bitmask_adjust()
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Mon, 8 Feb 2021 13:49:32 +0000 (08:49 -0500)
committerAnna Schumaker <Anna.Schumaker@Netapp.com>
Mon, 8 Feb 2021 16:09:53 +0000 (11:09 -0500)
commit45901a231723a5a513ff08477983f3a274a6a910
treebeaf3600ab6333303577c55913d3fb463018cf1a
parent586a0787ce35f2e32d399b7e344e634e07de2997
NFSv4: Fixes for nfs4_bitmask_adjust()

We don't want to ask for the ACL in a WRITE reply, since we don't have
a preallocated buffer.

Instead of checking NFS_INO_INVALID_ACCESS, which is really about
managing the access cache, we should look at the value of
NFS_INO_INVALID_OTHER. Also ensure we assign the mode, owner and
owner_group flags to the correct bit mask.

Finally, fix up the check for NFS_INO_INVALID_CTIME to retrieve the
ctime, and add a check for NFS_INO_INVALID_CHANGE.

Fixes: 76bd5c016ef4 ("NFSv4: make cache consistency bitmask dynamic")
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
fs/nfs/nfs4proc.c