• Andrew Morton's avatar
    [PATCH] ext3: fix buffer dirtying · 0c74aabb
    Andrew Morton authored
    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."
    0c74aabb
transaction.c 61.2 KB