]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: remove unneeded ext4_journal_get_undo_access
authorTheodore Ts'o <tytso@mit.edu>
Mon, 9 May 2011 14:58:45 +0000 (10:58 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 9 May 2011 14:58:45 +0000 (10:58 -0400)
commitec899049f0eecbb57e62e4f9bd67b3206f36e5e6
tree72f981c17f079daa180de739d032faa6956ecef1
parent0f2e8f591ce8b7755be5528c609343e61f011a84
ext4: remove unneeded ext4_journal_get_undo_access

The block allocation code used to use jbd2_journal_get_undo_access as
a way to make changes that wouldn't show up until the commit took
place.  The new multi-block allocation code has a its own way of
preventing newly freed blocks from getting reused until the commit
takes place (it avoids updating the buddy bitmaps until the commit is
done), so we don't need to use jbd2_journal_get_undo_access(), which
has extra overhead compared to jbd2_journal_get_write_access().

There was one last vestigal use of ext4_journal_get_undo_access() in
ext4_add_groupblocks(); change it to use ext4_journal_get_write_access()
and then remove the ext4_journal_get_undo_access() support.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/ext4_jbd2.c
fs/ext4/ext4_jbd2.h
fs/ext4/mballoc.c