]> git.hungrycats.org Git - linux/commit
btrfs: don't update mtime on deduped inodes zygo-4.0.6-zb64
authorMark Fasheh <mfasheh@suse.de>
Fri, 26 Jun 2015 21:01:01 +0000 (14:01 -0700)
committerZygo Blaxell <zblaxell@thirteen.furryterror.org>
Sat, 27 Jun 2015 21:35:40 +0000 (17:35 -0400)
commit2fd3e6fc5df4213e7d2f0cde2bc0e33e08b8da4e
tree08b5ccb8d1180771680e7323d5221aeff49e02bb
parente88b327c7236df51dd19ad48578e01ef56f0320c
btrfs: don't update mtime 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. Clone still wants an mtime change, 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>
fs/btrfs/ioctl.c