From: Tao Ma Date: Tue, 18 Aug 2009 03:30:55 +0000 (+0800) Subject: ocfs2: CoW refcount tree improvement. X-Git-Tag: v2.6.32-rc1~173^2~27 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6ae23c5555176c5b23480c9c578ff27437085ba5;p=pandora-kernel.git 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: Tao Ma --- Reading git-diff-tree failed