summaryrefslogtreecommitdiff
path: root/drivers/gpu/tests/git@radix-linux.su:pub
diff options
context:
space:
mode:
authorRavi Singh <ravising@redhat.com>2026-04-22 10:39:59 +0300
committerCarlos Maiolino <cem@kernel.org>2026-04-27 12:31:15 +0300
commit87e63466c9fc30c3d95b8741c3df1f1ff01d7f23 (patch)
tree90881871b53a81a5abd432ecfa36ec5c0e1c4761 /drivers/gpu/tests/git@radix-linux.su:pub
parentfca20fcb76a20655daf18738f4a88c638a6bb64c (diff)
downloadlinux-87e63466c9fc30c3d95b8741c3df1f1ff01d7f23.tar.xz
xfs: flush delalloc blocks on ENOSPC in xfs_trans_alloc_icreate
xfs_trans_alloc_icreate() can fail with ENOSPC when delalloc reservations have consumed most of the available block count (fdblocks). xfs_trans_alloc() already retries internally with xfs_blockgc_flush_all(), but that only trims post-EOF speculative preallocation and may not free enough space for the transaction reservation. Add a retry with xfs_flush_inodes() when xfs_trans_alloc() returns ENOSPC. This forces writeback of all dirty inodes via sync_inodes_sb(), converting delalloc reservations to real allocations and freeing the over-reserved portion back to fdblocks. This fixes all callers of xfs_trans_alloc_icreate() and removes the existing caller-level retry from xfs_create(), which is now handled centrally. Signed-off-by: Ravi Singh <ravising@redhat.com> Reviewed-by: Carlos Maiolino <cmaiolino@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Carlos Maiolino <cem@kernel.org>
Diffstat (limited to 'drivers/gpu/tests/git@radix-linux.su:pub')
0 files changed, 0 insertions, 0 deletions