]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6fc9de0c49052a4f9806e765fa8b14b2cb195363
tree0010bae7b3883761416db93be42e907b8e14ce6a
parenta1e8cc3a905460059a279cc3479450ed34317578
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