summaryrefslogtreecommitdiffstats
path: root/fs/ext4
diff options
context:
space:
mode:
authorJan Kara <jack@suse.cz>2015-07-12 18:11:30 -0400
committerTheodore Ts'o <tytso@mit.edu>2015-07-12 18:11:30 -0400
commit6e06ae88edae77379bef7c0cb7d3c2dd88676867 (patch)
tree7a8fd3e3ccbb6d65bb420ddc48454cb5a72efb5c /fs/ext4
parentbc0195aad0daa2ad5b0d76cce22b167bc3435590 (diff)
downloadlinux-stable-6e06ae88edae77379bef7c0cb7d3c2dd88676867.tar.gz
linux-stable-6e06ae88edae77379bef7c0cb7d3c2dd88676867.tar.bz2
linux-stable-6e06ae88edae77379bef7c0cb7d3c2dd88676867.zip
jbd2: speedup jbd2_journal_dirty_metadata()
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 references. [ Note: this is a fixed version of commit 2143c1965a761, which was reverted in ebeaa8ddb3663b5 due to a false positive triggering of an assertion check. -- Ted ] Signed-off-by: Jan Kara <jack@suse.cz> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4')
0 files changed, 0 insertions, 0 deletions