]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: update timestamps on truncate()
authorEric Sandeen <sandeen@redhat.com>
Sat, 12 Jan 2013 02:57:22 +0000 (02:57 +0000)
committerJosef Bacik <josef@toxicpanda.com>
Mon, 14 Jan 2013 18:53:37 +0000 (13:53 -0500)
commit23677ac5c44b30d446a88e5622c0d2dc4cf93106
treeedfaa5dc10be60ef2a882a2e0713026312367b88
parentf108a98df407b810626fc19e515cf062dbf6d9dc
btrfs: update timestamps on truncate()

truncate() vs. ftruncate() differ in the VFS; truncate()
doesn't set (ATTR_CTIME | ATTR_MTIME), and it's up to the
fs to do the timestamp updates if the size changes.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
fs/btrfs/inode.c