From: Tao Ma Date: Wed, 26 Aug 2009 01:47:28 +0000 (+0800) Subject: ocfs2: CoW a reflinked cluster when it is truncated. X-Git-Tag: v2.6.32-rc1~173^2~25 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37f8a2bfaa8364dd3644cccee8824bb8f5e409a5;p=pandora-kernel.git ocfs2: CoW a reflinked cluster when it is truncated. When we truncate a file to a specific size which resides in a reflinked cluster, we need to CoW it since ocfs2_zero_range_for_truncate will zero the space after the size(just another type of write). So we add a "max_cpos" in ocfs2_refcount_cow so that it will stop when it hit the max cluster offset. Signed-off-by: Tao Ma --- Reading git-diff-tree failed