]> Git Repo - linux.git/commit
fs/ocfs2/journal.h: add bits_wanted while calculating credits in ocfs2_calc_extend_cr...
authorGoldwyn Rodrigues <[email protected]>
Wed, 3 Jul 2013 22:00:53 +0000 (15:00 -0700)
committerLinus Torvalds <[email protected]>
Wed, 3 Jul 2013 23:07:23 +0000 (16:07 -0700)
commit40bd62eb7fb8447798732e809a676ebaf2a7f910
treebecc8bf5e3a49a6e70676e4d1e7142dd04932600
parent33add0e3a09a62c7796ea9838243c1cd933d8543
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 <[email protected]>
Reviewed-by: Jie Liu <[email protected]>
Cc: Joel Becker <[email protected]>
Cc: Mark Fasheh <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
fs/ocfs2/journal.h
This page took 0.055989 seconds and 4 git commands to generate.