]> 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)
commit4218b93f596e82be728aaad794553dc832eb85c6
tree0010bae7b3883761416db93be42e907b8e14ce6a
parent3007bb3b2769264944d4d9a36d258797418ce43d
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