aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2008-10-10 17:28:29 +1100
committerLinus Torvalds <[email protected]>2008-10-10 11:08:07 -0700
commit73f6aa4d44ab6157badc456ddfa05b31e58de5f0 (patch)
tree77543df806dbeda22ce245d2d04b3831fce40f4f /fs/jbd2/commit.c
parent445e1ceda377a681c6f53595311b0d654ca21003 (diff)
Fix barrier fail detection in XFS
Currently we disable barriers as soon as we get a buffer in xlog_iodone that has the XBF_ORDERED flag cleared. But this can be the case not only for buffers where the barrier failed, but also the first buffer of a split log write in case of a log wraparound. Due to the disabled barriers we can easily get directory corruption on unclean shutdowns. So instead of using this check add a new buffer flag for failed barrier writes. This is a regression vs 2.6.26 caused by patch to use the right macro to check for the ORDERED flag, as we previously got true returned for every buffer. Thanks to Toei Rei for reporting the bug. Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Eric Sandeen <[email protected]> Reviewed-by: David Chinner <[email protected]> Signed-off-by: Tim Shimmin <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions