From: Trond Myklebust Date: Tue, 29 May 2018 15:15:49 +0000 (-0400) Subject: NFS: Fix up nfs_post_op_update_inode() to force ctime updates X-Git-Tag: v4.18-rc1~46^2~44 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d554168f87a55b35b7c59921a0dc45b6ba17d08d;p=thirdparty%2Fkernel%2Flinux.git NFS: Fix up nfs_post_op_update_inode() to force ctime updates We do not want to ignore ctime updates that originate from functions such as link(). Signed-off-by: Trond Myklebust --- diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 40a6cf6db4e85..5de724b1b90cb 100644 --- a/fs/nfs/inode.c +++ b/fs/nfs/inode.c @@ -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;