• Andrew Morton's avatar
    [PATCH] jbd: fix ordered-data writeout logic · 376fd482
    Andrew Morton authored
    There's some nasty code in commit which deals with a lock ranking problem. 
    Currently if it fails to get the lock when and local variable `bufs' is zero
    we forget to write out some ordered-data buffers.  So a subsequent
    crash+recovery could yield stale data in existing files.
    
    Fix it by correctly restarting the t_sync_datalist search.
    376fd482
commit.c 23.4 KB