]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: truncate pages from clone ioctl target range
authorSage Weil <sage@newdream.net>
Wed, 10 Aug 2011 18:04:04 +0000 (18:04 +0000)
committerChris Mason <chris.mason@oracle.com>
Wed, 17 Aug 2011 01:09:31 +0000 (21:09 -0400)
commitf5fd19a09e2de4c4ffcaa470499cc91d15cb98e6
treed4812f9328ea0f5945c42a6b694bdcdb7bdbd707
parent28fe20242147f3fc706d9f7b85e7e27028fbe59c
Btrfs: truncate pages from clone ioctl target range

We need to truncate page cache pages for the clone ioctl target range or
else we'll confuse ourselves to no end.  If the old data was cached, we
used to still see it (until remount).  If the page was partially updated
we used to get a mix of old and new data.

Signed-off-by: Sage Weil <sage@newdream.net>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/ioctl.c