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

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: default avatarTao Ma <tao.ma@oracle.com>
parent 293b2f70
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