• Tao Ma's avatar
    ocfs2: CoW refcount tree improvement. · 6ae23c55
    Tao Ma authored
    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>
    6ae23c55
refcounttree.h 1.85 KB