linux/fs/jbd2
Eric Sandeen 15291164b2 jbd2: clear BH_Delay & BH_Unwritten in journal_unmap_buffer
journal_unmap_buffer()'s zap_buffer: code clears a lot of buffer head
state ala discard_buffer(), but does not touch _Delay or _Unwritten as
discard_buffer() does.

This can be problematic in some areas of the ext4 code which assume
that if they have found a buffer marked unwritten or delay, then it's
a live one.  Perhaps those spots should check whether it is mapped
as well, but if jbd2 is going to tear down a buffer, let's really
tear it down completely.

Without this I get some fsx failures on sub-page-block filesystems
up until v3.2, at which point 4e96b2dbbf
and 189e868fa8 make the failures go
away, because buried within that large change is some more flag
clearing.  I still think it's worth doing in jbd2, since
->invalidatepage leads here directly, and it's the right place
to clear away these flags.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: stable@vger.kernel.org
2012-02-20 17:53:01 -05:00
..
checkpoint.c jbd2: add drop_transaction/update_superblock_end tracepoints 2012-02-20 17:53:01 -05:00
commit.c jbd2: clear revoked flag on buffers before a new transaction started 2011-12-28 17:46:46 -05:00
journal.c jbd2: add drop_transaction/update_superblock_end tracepoints 2012-02-20 17:53:01 -05:00
Kconfig Revert "task_struct: make journal_info conditional" 2009-12-17 13:23:24 -08:00
Makefile
recovery.c jbd2: Unify log messages in jbd2 code 2011-11-01 19:09:18 -04:00
revoke.c jbd2: clear revoked flag on buffers before a new transaction started 2011-12-28 17:46:46 -05:00
transaction.c jbd2: clear BH_Delay & BH_Unwritten in journal_unmap_buffer 2012-02-20 17:53:01 -05:00