]> www.infradead.org Git - users/jedix/linux-maple.git/commit
btrfs: don't update mtime/ctime on deduped inodes
authorMark Fasheh <mfasheh@suse.de>
Tue, 30 Jun 2015 21:42:08 +0000 (14:42 -0700)
committerChuck Anderson <chuck.anderson@oracle.com>
Tue, 22 Aug 2017 15:42:59 +0000 (08:42 -0700)
commit19b6fe736df3d988fb8557191a9fcfa6e5b6e0b3
tree8f277171f588beff2f66bd55f2135735c76bc32d
parent60fc3f2f2bd88a2e0b9565b3066084bf38e9a37c
btrfs: don't update mtime/ctime on deduped inodes

One issue users have reported is that dedupe changes mtime on files,
resulting in tools like rsync thinking that their contents have changed when
in fact the data is exactly the same. We also skip the ctime update as no
user-visible metadata changes here and we want dedupe to be transparent to
the user.

Clone still wants time changes, so we special case this in the code.

This was tested with the btrfs-extent-same tool.

Signed-off-by: Mark Fasheh <mfasheh@suse.de>
Signed-off-by: Chris Mason <clm@fb.com>
(Cherry picked from commit 1c919a5e13702caffbe2d2c7c305f9d0d2925160)

Orabug: 26251039

Signed-off-by: Shan Hai <shan.hai@oracle.com>
Acked-by: Shannon Nelson <shannon.nelson@oracle.com>
Acked-by: John Haxby <john.haxby@oracle.com>
fs/btrfs/ioctl.c