Skip to content

Commit d61b40b

Browse files
Darrick J. WongChandan Babu R
authored andcommitted
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: 5864346 ("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>
1 parent bcdfae6 commit d61b40b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/xfs/libxfs/xfs_bmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3277,7 +3277,7 @@ xfs_bmap_alloc_account(
32773277
struct xfs_bmalloca *ap)
32783278
{
32793279
bool isrt = XFS_IS_REALTIME_INODE(ap->ip) &&
3280-
(ap->flags & XFS_BMAPI_ATTRFORK);
3280+
!(ap->flags & XFS_BMAPI_ATTRFORK);
32813281
uint fld;
32823282

32833283
if (ap->flags & XFS_BMAPI_COWFORK) {

0 commit comments

Comments
 (0)