diff options
author | Darrick J. Wong <djwong@kernel.org> | 2024-01-09 03:17:34 +0100 |
---|---|---|
committer | Chandan Babu R <chandanbabu@kernel.org> | 2024-01-11 06:04:01 +0100 |
commit | d61b40bf15ce453f3aa71f6b423938e239e7f8f8 (patch) | |
tree | 82b8f8b14de77c69a03e429a8a458d60eac8cf8c /fs | |
parent | xfs: use the op name in trace_xlog_intent_recovery_failed (diff) | |
download | linux-d61b40bf15ce453f3aa71f6b423938e239e7f8f8.tar.xz linux-d61b40bf15ce453f3aa71f6b423938e239e7f8f8.zip |
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: 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>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/libxfs/xfs_bmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c index 98aaca933bdd..f362345467fa 100644 --- a/fs/xfs/libxfs/xfs_bmap.c +++ b/fs/xfs/libxfs/xfs_bmap.c @@ -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) { |