mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-24 15:42:32 +00:00
NFSv4: Return delegations in case we're changing ACLs
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
cae7a073a4
commit
642ac54923
2 changed files with 6 additions and 0 deletions
|
@ -853,6 +853,11 @@ nfs_setattr(struct dentry *dentry, struct iattr *attr)
|
|||
filemap_fdatawait(inode->i_mapping);
|
||||
nfs_wb_all(inode);
|
||||
}
|
||||
/*
|
||||
* Return any delegations if we're going to change ACLs
|
||||
*/
|
||||
if ((attr->ia_valid & (ATTR_MODE|ATTR_UID|ATTR_GID)) != 0)
|
||||
nfs_inode_return_delegation(inode);
|
||||
error = NFS_PROTO(inode)->setattr(dentry, &fattr, attr);
|
||||
if (error == 0)
|
||||
nfs_refresh_inode(inode, &fattr);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue