From: Yongqiang Yang Date: Mon, 4 Apr 2011 19:40:24 +0000 (-0400) Subject: ext4: fix credits computing for indirect mapped files X-Git-Tag: v2.6.39-rc3~2^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5b41395fcc0265fc9f193aef9df39ce49d64677c;p=pandora-kernel.git ext4: fix credits computing for indirect mapped files When writing a contiguous set of blocks, two indirect blocks could be needed depending on how the blocks are aligned, so we need to increase the number of credits needed by one. [ Also fixed a another bug which could further underestimate the number of journal credits needed by 1; the code was using integer division instead of DIV_ROUND_UP() -- tytso] Signed-off-by: Yongqiang Yang Signed-off-by: "Theodore Ts'o" Cc: stable@kernel.org --- Reading git-diff-tree failed