• D
    ocfs2: charge quota for reflinked blocks · 86e59436
    Darrick J. Wong 提交于
    When ocfs2 shares blocks from one file to another, it's necessary to
    charge that many blocks to the quota because ocfs2 tallies block charges
    according to the number of blocks mapped, not the number of physical
    blocks used.
    
    Without this patch, reflinking X blocks and then CoWing all of them
    causes quota usage to *decrease* by X as seen in generic/305.
    Signed-off-by: NDarrick J. Wong <darrick.wong@oracle.com>
    86e59436
refcounttree.c 111.6 KB