mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2025-01-22 13:54:57 +08: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
@ -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 New Issue
Block a user