]> git.karo-electronics.de Git - karo-tx-linux.git/commit
fs/ocfs2/journal.h: add bits_wanted while calculating credits in ocfs2_calc_extend_cr...
authorGoldwyn Rodrigues <rgoldwyn@gmail.com>
Thu, 27 Jun 2013 23:51:05 +0000 (09:51 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Fri, 28 Jun 2013 06:37:17 +0000 (16:37 +1000)
commiteafe6c2cbad1fde184e857ea24dbb49030f196db
tree3476bbd3aad45ba40e6f15183de72ad419b0ee5b
parentb30a2715344c632c7ba084e57e283a53eb719fef
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>
fs/ocfs2/journal.h