]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: don't use EXT4_FREE_BLOCKS_FORGET unnecessarily
authorTheodore Ts'o <tytso@mit.edu>
Wed, 12 Jun 2013 15:48:29 +0000 (11:48 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 12 Jun 2013 15:48:29 +0000 (11:48 -0400)
commita270c1ae80674fe8eaeb38b4da91aa6e85ce5aff
treedc60f0b2df0b1544fe551ed415e7cefe1c3d3907
parentf381723d0f14c608111902c8c44dc726e8689cd5
ext4: don't use EXT4_FREE_BLOCKS_FORGET unnecessarily

Commit 9f3d6f87a88a: "ext4: speed up truncate/unlink by not using
bforget() unless needed" removed the use of EXT4_FREE_BLOCKS_FORGET in
the most important codepath for file systems using extents, but a
similar optimization also can be done for file systems using indirect
blocks, and for the two special cases in the ext4 extents code.

Cc: Andrey Sidorov <qrxd43@motorola.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/extents.c
fs/ext4/indirect.c