From: Theodore Ts'o Date: Sat, 9 Feb 2013 20:06:24 +0000 (-0500) Subject: ext4: fix the number of credits needed for ext4_unlink() and ext4_rmdir() X-Git-Tag: v3.9-rc1~64^2~20 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=64044abf05d0842a7fed30e102fa411a744c7d9f;p=pandora-kernel.git ext4: fix the number of credits needed for ext4_unlink() and ext4_rmdir() The ext4_unlink() and ext4_rmdir() don't actually release the blocks associated with the file/directory. This gets done in a separate jbd2 handle called via ext4_evict_inode(). Thus, we don't need to reserve lots of journal credits for the truncate. Note that using too many journal credits is non-optimal because it can leading to the journal transmit getting closed too early, before it is strictly necessary. Signed-off-by: "Theodore Ts'o" Reviewed-by: Jan Kara --- Reading git-diff-tree failed