]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:47:38 +0000 (07:47 +0200)
[ Upstream commit d554168f87a55b35b7c59921a0dc45b6ba17d08d ]

We do not want to ignore ctime updates that originate from functions
such as link().

Signed-off-by: Trond Myklebust <trond.myklebust@hammerspace.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/nfs/inode.c

index bd15d0b5762665b4f50be2c7a07c513b6891c635..6e70445213e71c271d9b380190f40dd020fd0349 100644 (file)
@@ -1629,7 +1629,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;