diff options
author | Darrick J. Wong <darrick.wong@oracle.com> | 2016-11-22 13:40:27 -0800 |
---|---|---|
committer | Darrick J. Wong <darrick.wong@oracle.com> | 2016-12-10 12:39:45 -0800 |
commit | 86e59436d406d833a5da4a94aefb3c3be6b26053 (patch) | |
tree | ddf46c1ea7d89ea12b6828d1fead5b8bb5576d64 /fs/ocfs2/refcounttree.h | |
parent | aef73a61c01a4dca3f26c22df05039f78fe9d468 (diff) | |
download | linux-86e59436d406d833a5da4a94aefb3c3be6b26053.tar.gz linux-86e59436d406d833a5da4a94aefb3c3be6b26053.tar.bz2 linux-86e59436d406d833a5da4a94aefb3c3be6b26053.zip |
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>
Diffstat (limited to 'fs/ocfs2/refcounttree.h')
0 files changed, 0 insertions, 0 deletions