diff options
| author | Darrick J. Wong <[email protected]> | 2017-12-14 23:42:59 +0000 |
|---|---|---|
| committer | Darrick J. Wong <[email protected]> | 2017-12-21 16:47:28 +0000 |
| commit | 363e59baa4f76d3f97c0133ff7014cba3d90a7c3 (patch) | |
| tree | fee3a061d7ab180e6637399edd30377f5ad3efdd /tools/perf/scripts/python/syscall-counts.py | |
| parent | xfs: track cowblocks separately in i_flags (diff) | |
| download | kernel-363e59baa4f76d3f97c0133ff7014cba3d90a7c3.tar.gz kernel-363e59baa4f76d3f97c0133ff7014cba3d90a7c3.zip | |
xfs: don't be so eager to clear the cowblocks tag on truncate
Currently, xfs_itruncate_extents clears the cowblocks tag if i_cnextents
is zero. This is wrong, since i_cnextents only tracks real extents in
the CoW fork, which means that we could have some delayed CoW
reservations still in there that will now never get cleaned.
Fix a further bug where we /don't/ clear the reflink iflag if there are
any attribute blocks -- really, it's only safe to clear the reflink flag
if there are no data fork extents and no cow fork extents.
Found by adding clonerange to fsstress in xfs/017.
Signed-off-by: Darrick J. Wong <[email protected]>
Reviewed-by: Dave Chinner <[email protected]>
Reviewed-by: Christoph Hellwig <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
