aboutsummaryrefslogtreecommitdiff
path: root/rust/helpers
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-06-19 10:32:43 -0700
committerChandan Babu R <chandanbabu@kernel.org>2024-06-26 14:29:17 +0530
commit610b29161b0aa9feb59b78dc867553274f17fb01 (patch)
treeacd19cf33623c4c800bb1da82537c1f15e69e992 /rust/helpers
parentf2661062f16b2de5d7b6a5c42a9a5c96326b8454 (diff)
xfs: fix freeing speculative preallocations for preallocated files
xfs_can_free_eofblocks returns false for files that have persistent preallocations unless the force flag is passed and there are delayed blocks. This means it won't free delalloc reservations for files with persistent preallocations unless the force flag is set, and it will also free the persistent preallocations if the force flag is set and the file happens to have delayed allocations. Both of these are bad, so do away with the force flag and always free only post-EOF delayed allocations for files with the XFS_DIFLAG_PREALLOC or APPEND flags set. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Darrick J. Wong <djwong@kernel.org> Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Diffstat (limited to 'rust/helpers')
0 files changed, 0 insertions, 0 deletions