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

ocfs2: CoW refcount tree improvement.



During CoW, if the old extent record is refcounted, we allocate
som new clusters and do CoW. Actually we can have some improvement
here. If the old extent has refcount=1, that means now it is only
used by this file. So we don't need to allocate new clusters, just
remove the refcounted flag and it is OK. We also have to remove
it from the refcount tree while not deleting it.

Signed-off-by: default avatarTao Ma <tao.ma@oracle.com>
parent 6f70fa51
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