From: Goldwyn Rodrigues Date: Wed, 3 Jul 2013 22:00:53 +0000 (-0700) Subject: fs/ocfs2/journal.h: add bits_wanted while calculating credits in ocfs2_calc_extend_cr... X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~17^2~433 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=40bd62eb7fb8447798732e809a676ebaf2a7f910;p=pandora-kernel.git fs/ocfs2/journal.h: add bits_wanted while calculating credits in ocfs2_calc_extend_credits While adding extends to a file, the credits are calculated incorrectly and if the requested clusters is more than one (or more because we used a conservative limit) then we run out of journal credits and we hit an assert in journalling code. The function parameter bits_wanted variable was not used at all. Signed-off-by: Goldwyn Rodrigues Reviewed-by: Jie Liu Cc: Joel Becker Cc: Mark Fasheh Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed