]> git.baikalelectronics.ru Git - kernel.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)
committerChris Mason <clm@fb.com>
Thu, 2 Jul 2015 00:17:17 +0000 (17:17 -0700)
commite7304b835b60f05bc52296796b8b2c68d6d49ad8
treef957cdf5202a01eaa4cb9ac97261205304005309
parentc0363f7cf8d7f807fa5dc27ebe31c92b04f34fe0
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>
fs/btrfs/ioctl.c