summaryrefslogtreecommitdiff
path: root/fs/xfs/libxfs/xfs_inode_util.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-07-08 14:02:57 +0200
committerChandan Babu R <chandanbabu@kernel.org>2024-07-09 09:08:28 +0530
commit2bf6e353542d233486195953dc9c346331f82dcb (patch)
tree009c371dd6957c5fbb0d16b059ce3a239326c641 /fs/xfs/libxfs/xfs_inode_util.c
parent49cdc4e834e46d7c11a91d7adcfa04f56d19efaf (diff)
downloadlinux-2bf6e353542d233486195953dc9c346331f82dcb.tar.gz
linux-2bf6e353542d233486195953dc9c346331f82dcb.tar.bz2
linux-2bf6e353542d233486195953dc9c346331f82dcb.zip
xfs: fix rtalloc rotoring when delalloc is in use
If we're trying to allocate real space for a delalloc reservation at offset 0, we should use the rotor to spread files across the rt volume. Switch the rtalloc to use the XFS_ALLOC_INITIAL_USER_DATA flag that is set for any write at startoff to make it match the behavior for the main data device. Based on a patch from Darrick J. Wong. Fixes: 6a94b1acda7e ("xfs: reinstate delalloc for RT inodes (if sb_rextsize == 1)") Reported-by: Darrick J. Wong <djwong@kernel.org> 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 'fs/xfs/libxfs/xfs_inode_util.c')
0 files changed, 0 insertions, 0 deletions