]> git.neil.brown.name Git - history.git/commit
[PATCH] ext3: fix buffer dirtying
authorAndrew Morton <akpm@digeo.com>
Sat, 21 Dec 2002 09:08:12 +0000 (01:08 -0800)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sat, 21 Dec 2002 09:08:12 +0000 (01:08 -0800)
commit0c74aabbe89b12649f045691da0cc444b8ad070f
treeca992c8766044da12d87a8c6d84b19be5280bd53
parentdd2f11609f29465b4bd5b4ed638e0fe7875c1e96
[PATCH] ext3: fix buffer dirtying

This is a forward-port from 2.4.  One of Stephen's recent fixes.  I
managed to merge up only half of it.  Here is the rest.  It should fix
the asserton failure reported by Robert Macaulay
<robert_macaulay@dell.com>

"There was a race window in buffer refiling where we could temporarily
 expose the journal's internal BH_JBDDirect flag as BH_Dirty, which is
 visible to the rest of the VFS.  That doesn't affect the journaling,
 because we hold journal_head locks while the buffer is in this
 transient state, but bdflush can see the buffer and write it out
 unexpectedly, causing ext3 to find the buffer in an unexpected state
 later."

 The fix simply keeps the dirty bits clear during the internal buffer
 processing, restoring the state to the private BH_JBDDirect once
 refiling is complete."
fs/jbd/transaction.c