xfs: look at m_frextents in xfs_iomap_prealloc_size for RT allocations
authorChristoph Hellwig <hch@lst.de>
Mon, 22 Apr 2024 11:20:16 +0000 (13:20 +0200)
committerChandan Babu R <chandanbabu@kernel.org>
Mon, 22 Apr 2024 12:30:49 +0000 (18:00 +0530)
commit727f8431638fdb5dc9ce9c81bdcc33fb416d45ee
treed3709e72961049686aa985d0299cbc0f208ad8a6
parent7099bd0f243fa7511de6e95b0b8807ba7d3e5204
xfs: look at m_frextents in xfs_iomap_prealloc_size for RT allocations

Add a check for files on the RT subvolume and use m_frextents instead
of m_fdblocks to adjust the preallocation size.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
fs/xfs/xfs_iomap.c