• T
    ocfs2: CoW a reflinked cluster when it is truncated. · 37f8a2bf
    Tao Ma 提交于
    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: NTao Ma <tao.ma@oracle.com>
    37f8a2bf
aops.c 50.5 KB