mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 05:12:49 +00:00
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: 5864346054
("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>
This commit is contained in:
parent
bcdfae6ee5
commit
d61b40bf15
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue