]> git.baikalelectronics.ru Git - kernel.git/commit
fs/ocfs2/journal.h: add bits_wanted while calculating credits in ocfs2_calc_extend_cr...
authorGoldwyn Rodrigues <rgoldwyn@gmail.com>
Wed, 3 Jul 2013 22:00:53 +0000 (15:00 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 3 Jul 2013 23:07:23 +0000 (16:07 -0700)
commitbe6fe726abcfeb19629da3476b8c5a762e83e295
treebecc8bf5e3a49a6e70676e4d1e7142dd04932600
parent6fd72a35fa3ccffc26a7a0550921a17546e34716
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 <rgoldwyn@suse.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Cc: Joel Becker <jlbec@evilplan.org>
Cc: Mark Fasheh <mfasheh@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/ocfs2/journal.h