]> git.baikalelectronics.ru Git - kernel.git/commit
btrfs: silence warning in raid array setup
authorDavid Sterba <dsterba@suse.cz>
Fri, 7 Oct 2011 16:06:13 +0000 (18:06 +0200)
committerDavid Sterba <dsterba@suse.cz>
Wed, 15 Feb 2012 15:40:25 +0000 (16:40 +0100)
commit26ffaf562c584834fa5215fe56f9fc5438fed8f1
tree31dbc7d96441b95825c70073c769fc7b3f674a75
parent0fea0bc0933332fc4c07e2a29f6aab00c87d8ba6
btrfs: silence warning in raid array setup

Raid array setup code creates an extent buffer in an usual way. When the
PAGE_CACHE_SIZE is > super block size, the extent pages are not marked
up-to-date, which triggers a WARN_ON in the following
write_extent_buffer call. Add an explicit up-to-date call to silence the
warning.

Signed-off-by: David Sterba <dsterba@suse.cz>
fs/btrfs/volumes.c