Commit d61b40bf authored by Darrick J. Wong's avatar Darrick J. Wong Committed by Chandan Babu R
Browse files

xfs: fix backwards logic in xfs_bmap_alloc_account



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: 58643460 ("xfs: also use xfs_bmap_btalloc_accounting for RT allocations")
Signed-off-by: default avatar"Darrick J. Wong" <djwong@kernel.org>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarChandan Babu R <chandanbabu@kernel.org>
parent bcdfae6e
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3277,7 +3277,7 @@ xfs_bmap_alloc_account(
	struct xfs_bmalloca	*ap)
{
	bool			isrt = XFS_IS_REALTIME_INODE(ap->ip) &&
					(ap->flags & XFS_BMAPI_ATTRFORK);
					!(ap->flags & XFS_BMAPI_ATTRFORK);
	uint			fld;

	if (ap->flags & XFS_BMAPI_COWFORK) {