[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <000000000000582151061be8c9a6@google.com>
Date: Thu, 27 Jun 2024 18:01:24 -0700
From: syzbot <syzbot+fe3566bcb509ae7764ef@...kaller.appspotmail.com>
To: linux-kernel@...r.kernel.org
Subject: Re: [syzbot] Re: [syzbot] [btrfs?] WARNING in __btrfs_free_extent (2)
For archival purposes, forwarding an incoming command email to
linux-kernel@...r.kernel.org.
***
Subject: Re: [syzbot] [btrfs?] WARNING in __btrfs_free_extent (2)
Author: lizhi.xu@...driver.com
#syz test: upstream 2ccbdf43d5e7
diff --git a/fs/btrfs/extent-tree.c b/fs/btrfs/extent-tree.c
index 3774c191e36d..8cab95333f35 100644
--- a/fs/btrfs/extent-tree.c
+++ b/fs/btrfs/extent-tree.c
@@ -2979,10 +2979,12 @@ static int do_free_extent_accounting(struct btrfs_trans_handle *trans,
}
}
- ret = btrfs_record_squota_delta(trans->fs_info, delta);
- if (ret) {
- btrfs_abort_transaction(trans, ret);
- return ret;
+ if (btrfs_qgroup_enabled(trans->fs_info)) {
+ ret = btrfs_record_squota_delta(trans->fs_info, delta);
+ if (ret) {
+ btrfs_abort_transaction(trans, ret);
+ return ret;
+ }
}
ret = add_to_free_space_tree(trans, bytenr, num_bytes);
Powered by blists - more mailing lists