diff options
author | Goldwyn Rodrigues <rgoldwyn@gmail.com> | 2013-07-04 00:00:53 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-07-04 01:07:23 +0200 |
commit | 40bd62eb7fb8447798732e809a676ebaf2a7f910 (patch) | |
tree | becc8bf5e3a49a6e70676e4d1e7142dd04932600 /fs/ocfs2/cluster | |
parent | ocfs2: fix mutex_unlock and possible memory leak in ocfs2_remove_btree_range (diff) | |
download | linux-40bd62eb7fb8447798732e809a676ebaf2a7f910.tar.xz linux-40bd62eb7fb8447798732e809a676ebaf2a7f910.zip |
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>
Diffstat (limited to 'fs/ocfs2/cluster')
0 files changed, 0 insertions, 0 deletions