• T
    ocfs2: CoW refcount tree improvement. · 6ae23c55
    Tao Ma 提交于
    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: NTao Ma <tao.ma@oracle.com>
    6ae23c55
refcounttree.c 84.2 KB