]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: Change the hole range to a more accurate value.
authorQu Wenruo <quwenruo@cn.fujitsu.com>
Tue, 15 Apr 2014 02:41:00 +0000 (10:41 +0800)
committerChris Mason <clm@fb.com>
Thu, 24 Apr 2014 23:43:32 +0000 (16:43 -0700)
commit97e33cda0cb6454ab2f0a650f3752017d3dbf715
tree00190de63e0573193302449e3df0d13cc467ac41
parent6cc8f7e6c08d0157a66776c71154d0ee8c0653e1
btrfs: Change the hole range to a more accurate value.

Commit b56885545be1c3279a31e2da4819fa68c44d2223 fixed the btrfs expanding
write problem but the hole punched is sometimes too large for some
iovec, which has unmapped data ranges.
This patch will change to hole range to a more accurate value using the
counts checked by the write check routines.

Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: Chris Mason <clm@fb.com>
fs/btrfs/file.c