Skip to content
Commit c18b812d authored by Tao Ma's avatar Tao Ma Committed by Joel Becker
Browse files

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: default avatarTao Ma <tao.ma@oracle.com>
parent 7540c1a7
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment