xfs: update ctime and mtime on clone destinatation inodes
authorChristoph Hellwig <hch@lst.de>
Tue, 7 Feb 2017 01:45:51 +0000 (17:45 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Thu, 9 Feb 2017 18:50:24 +0000 (10:50 -0800)
commitc5ecb42342852892f978572ddc6dca703460f25a
tree0010bae7b3883761416db93be42e907b8e14ce6a
parent3c68d44a2b49a0ac9165faa9c191e1e618c8a8d5
xfs: update ctime and mtime on clone destinatation inodes

We're changing both metadata and data, so we need to update the
timestamps for clone operations.  Dedupe on the other hand does
not change file data, and only changes invisible metadata so the
timestamps should not be updated.

This follows existing btrfs behavior.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
[darrick: remove redundant is_dedupe test]
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/xfs_reflink.c