OSDN Git Service

NFS: Fix up nfs_post_op_update_inode() to force ctime updates
authorTrond Myklebust <trond.myklebust@hammerspace.com>
Tue, 29 May 2018 15:15:49 +0000 (11:15 -0400)
committerTrond Myklebust <trond.myklebust@hammerspace.com>
Thu, 31 May 2018 19:02:16 +0000 (15:02 -0400)
We do not want to ignore ctime updates that originate from functions
such as link().

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
fs/nfs/inode.c

index 40a6cf6..5de724b 100644 (file)
@@ -1633,7 +1633,8 @@ int nfs_post_op_update_inode(struct inode *inode, struct nfs_fattr *fattr)
        nfs_fattr_set_barrier(fattr);
        status = nfs_post_op_update_inode_locked(inode, fattr,
                        NFS_INO_INVALID_CHANGE
-                       | NFS_INO_INVALID_CTIME);
+                       | NFS_INO_INVALID_CTIME
+                       | NFS_INO_REVAL_FORCED);
        spin_unlock(&inode->i_lock);
 
        return status;