]> 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@thirteen.furryterror.org>
Thu, 2 Jul 2015 01:06:45 +0000 (21:06 -0400)
commit1b4e94592832793cea63d26123c606b87a4bdf4f
tree6dbbd5b0379ee9c2656ff18bec3fb0bf025f712e
parent51f61e6d86546acd6c466a06233c0ae2ad5dea3a
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>
fs/btrfs/ioctl.c