Hello,

  I have following two questions on JBD code (I think the first one is
actually a bug, to the second one I did not know where to look for the
answer):
1) In journal_unmap_buffer()  when the buffer is part of the running
transaction we call __dispose_buffer() and then do
        clear_buffer_dirty(bh);
        J_ASSERT_BH(bh, !buffer_jbddirty(bh));
        clear_buffer_mapped(bh);
        clear_buffer_req(bh);
        clear_buffer_new(bh);
        bh->b_bdev = NULL;
  But the buffer could be in checkpoint list and by this we prevent
it's checkpointing (and that can in theory lead to data corruption
if we crash in the right moment), don't we?

2) journal_invalidatepage() can leave some buffers attached to a page
(e.g. because they are part of a committing transaction). When are those
buffers detached from the page?

  Thanks for any answer.
                                                        Bye
                                                                Honza

-- 
Jan Kara <[EMAIL PROTECTED]>
SuSE CR Labs
-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to