• Jan Kara's avatar
    jbd2: speedup jbd2_journal_dirty_metadata() · 6e06ae88
    Jan Kara authored
    It is often the case that we mark buffer as having dirty metadata when
    the buffer is already in that state (frequent for bitmaps, inode table
    blocks, superblock). Thus it is unnecessary to contend on grabbing
    journal head reference and bh_state lock. Avoid that by checking whether
    any modification to the buffer is needed before grabbing any locks or
    [ Note: this is a fixed version of commit 2143c196, which was
      reverted in ebeaa8dd due to a false positive triggering of an
      assertion check. -- Ted ]
    Signed-off-by: default avatarJan Kara <jack@suse.cz>
    Signed-off-by: Theodore Ts'o's avatarTheodore Ts'o <tytso@mit.edu>
transaction.c 77.9 KB