Skip to content

Commit ded52fb

Browse files
z00467499Trond Myklebust
authored andcommitted
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>
1 parent 2cde04e commit ded52fb

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

fs/nfs/nfs3acl.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -222,8 +222,6 @@ static int __nfs3_proc_setacls(struct inode *inode, struct posix_acl *acl,
222222
switch (status) {
223223
case 0:
224224
status = nfs_refresh_inode(inode, fattr);
225-
set_cached_acl(inode, ACL_TYPE_ACCESS, acl);
226-
set_cached_acl(inode, ACL_TYPE_DEFAULT, dfacl);
227225
break;
228226
case -EPFNOSUPPORT:
229227
case -EPROTONOSUPPORT:

0 commit comments

Comments
 (0)