]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: ClearPageError during writepage and clean_tree_block
authorChris Mason <chris.mason@oracle.com>
Fri, 4 Nov 2011 16:29:37 +0000 (12:29 -0400)
committerChris Mason <chris.mason@oracle.com>
Sun, 6 Nov 2011 08:04:20 +0000 (03:04 -0500)
commit4b327dd9caddf9a613270f6a297b57cebe47f4fe
treedad92ff6ea5cba470d93664b9ea195ecab66b07b
parent0e806b53962d02f017445a93bf00426370ae551f
Btrfs: ClearPageError during writepage and clean_tree_block

Failure testing was tripping up over stale PageError bits in
metadata pages.  If we have an io error on a block, and later on
end up reusing it, nobody ever clears PageError on those pages.

During commit, we'll find PageError and think we had trouble writing
the block, which will lead to aborts and other problems.

This changes clean_tree_block and the btrfs writepage code to
clear the PageError bit.  In both cases we're either completely
done with the page or the page has good stuff and the error bit
is no longer valid.

Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/extent_io.c
fs/btrfs/transaction.c