diff options
author | Trond Myklebust <trond.myklebust@hammerspace.com> | 2018-05-29 11:15:49 -0400 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@hammerspace.com> | 2018-05-31 15:02:16 -0400 |
commit | d554168f87a55b35b7c59921a0dc45b6ba17d08d (patch) | |
tree | 8ac51d51a797f24512f9830e381ea81327eaad7b /fs/nfs/inode.c | |
parent | 472f761e118c233f13cd24b3a872ad3dcfa0b0eb (diff) |
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 <trond.myklebust@hammerspace.com>
Diffstat (limited to 'fs/nfs/inode.c')
-rw-r--r-- | fs/nfs/inode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/nfs/inode.c b/fs/nfs/inode.c index 40a6cf6db4e8..5de724b1b90c 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) | |||
1633 | nfs_fattr_set_barrier(fattr); | 1633 | nfs_fattr_set_barrier(fattr); |
1634 | status = nfs_post_op_update_inode_locked(inode, fattr, | 1634 | status = nfs_post_op_update_inode_locked(inode, fattr, |
1635 | NFS_INO_INVALID_CHANGE | 1635 | NFS_INO_INVALID_CHANGE |
1636 | | NFS_INO_INVALID_CTIME); | 1636 | | NFS_INO_INVALID_CTIME |
1637 | | NFS_INO_REVAL_FORCED); | ||
1637 | spin_unlock(&inode->i_lock); | 1638 | spin_unlock(&inode->i_lock); |
1638 | 1639 | ||
1639 | return status; | 1640 | return status; |