]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: fix xfstest generic/099 failed on nfsv3
authorZhangXiaoxu <zhangxiaoxu5@huawei.com>
Mon, 18 Feb 2019 14:56:43 +0000 (22:56 +0800)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Wed, 20 Feb 2019 22:33:55 +0000 (17:33 -0500)
commite7df429dc94c3650b3d28907658d499cf3c5ba54
tree02c4bbe40f8823cdcb6f5737c7e22921cd9b895f
parent86a14c49c028c01e679946ecb9f7ff10a9fce333
nfs: fix xfstest generic/099 failed on nfsv3

After setxattr, the nfsv3 cached the acl which set by user.

But at the backend, the shared file system (eg. ext4) will check
the acl, if it can merged with mode, it won't add acl to the file.
So, the nfsv3 cached acl is redundant.

Don't 'set_cached_acl' when setxattr.

Signed-off-by: ZhangXiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/nfs3acl.c