ocfs2: Make transaction extend more efficient.
authorTao Ma <tao.ma@oracle.com>
Tue, 18 Aug 2009 03:44:07 +0000 (11:44 +0800)
committerJoel Becker <joel.becker@oracle.com>
Wed, 23 Sep 2009 03:09:46 +0000 (20:09 -0700)
commitc18b812d127a971901180188b918a7cd98ccd4d6
tree3f2d0a7b1fada7aaade612d14dcaa7229a4e06c9
parent7540c1a77b26bc2f9d86a0bfbe6597b05ec5f93d
ocfs2: Make transaction extend more efficient.

In ocfs2_extend_rotate_transaction, op_credits is the orignal
credits in the handle and we only want to extend the credits
for the rotation, but the old solution always double it. It
is harmless for some minor operations, but for actions like
reflink we may rotate tree many times and cause the credits
increase dramatically. So this patch try to only increase
the desired credits.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
fs/ocfs2/alloc.c