Searched hist:"86 e59436" (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/ocfs2/ |
H A D | refcounttree.c | 86e59436 Tue Nov 22 15:40:27 CST 2016 Darrick J. Wong <darrick.wong@oracle.com> ocfs2: charge quota for reflinked blocks
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: Darrick J. Wong <darrick.wong@oracle.com> 86e59436 Tue Nov 22 15:40:27 CST 2016 Darrick J. Wong <darrick.wong@oracle.com> ocfs2: charge quota for reflinked blocks 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: Darrick J. Wong <darrick.wong@oracle.com>
|