]> git.apps.os.sepia.ceph.com Git - xfsprogs-dev.git/commit
xfs: fix backwards logic in xfs_bmap_alloc_account
authorDarrick J. Wong <djwong@kernel.org>
Mon, 15 Apr 2024 23:07:44 +0000 (16:07 -0700)
committerDarrick J. Wong <djwong@kernel.org>
Wed, 17 Apr 2024 21:06:26 +0000 (14:06 -0700)
commit26da39996aa4f933315a41ae9860755e2d3fa488
tree10b076530f85a596952c3fe34c0d4e1bf0e66d40
parentdfc8456fe390de926b9ddff3f32e65b0e0b14b43
xfs: fix backwards logic in xfs_bmap_alloc_account

Source kernel commit: d61b40bf15ce453f3aa71f6b423938e239e7f8f8

We're only allocating from the realtime device if the inode is marked
for realtime and we're /not/ allocating into the attr fork.

Fixes: 58643460546d ("xfs: also use xfs_bmap_btalloc_accounting for RT allocations")
Signed-off-by: "Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Chandan Babu R <chandanbabu@kernel.org>
Reviewed-by: Bill O'Donnell <bodonnel@redhat.com>
libxfs/xfs_bmap.c