]> git.hungrycats.org Git - linux/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)
committerZygo Blaxell <zblaxell@serenity.furryterror.org>
Thu, 2 Jul 2015 02:19:11 +0000 (22:19 -0400)
commit53eee8597a469f5d9c51f48b95c6973dcd0620dd
treefe46828ffcf43755966d972eec82bb5c9ec8b181
parent8aeab4d3609b44735b36499c1fcd8cdfc9d3315b
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>
(cherry picked from commit 1b4e94592832793cea63d26123c606b87a4bdf4f)
fs/btrfs/ioctl.c