Commit 77ae13bc authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] reiserfs: fix dirty-buffer warnings

From: Chris Mason <mason@suse.com>

block_write_full_page() might see and lock clean metadata buffers, which leads
to journal-1777 messages.  Change the message to ignore bh locked.
parent 6f2085c0
...@@ -2698,7 +2698,7 @@ int journal_mark_dirty(struct reiserfs_transaction_handle *th, struct super_bloc ...@@ -2698,7 +2698,7 @@ int journal_mark_dirty(struct reiserfs_transaction_handle *th, struct super_bloc
** a dirty or journal_dirty or locked buffer to be logged, as some changes ** a dirty or journal_dirty or locked buffer to be logged, as some changes
** could get to disk too early. NOT GOOD. ** could get to disk too early. NOT GOOD.
*/ */
if (!prepared || buffer_locked(bh) || buffer_dirty(bh)) { if (!prepared || buffer_dirty(bh)) {
printk("journal-1777: buffer %llu bad state %cPREPARED %cLOCKED %cDIRTY %cJDIRTY_WAIT\n", (unsigned long long)bh->b_blocknr, prepared ? ' ' : '!', printk("journal-1777: buffer %llu bad state %cPREPARED %cLOCKED %cDIRTY %cJDIRTY_WAIT\n", (unsigned long long)bh->b_blocknr, prepared ? ' ' : '!',
buffer_locked(bh) ? ' ' : '!', buffer_locked(bh) ? ' ' : '!',
buffer_dirty(bh) ? ' ' : '!', buffer_dirty(bh) ? ' ' : '!',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment