From: syzbot <syzbot+fe3566bcb509ae7764ef@syzkaller.appspotmail.com>
To: linux-kernel@vger.kernel.org
Subject: Re: [syzbot] Re: [syzbot] [btrfs?] WARNING in __btrfs_free_extent (2)
Date: Thu, 27 Jun 2024 18:01:24 -0700 [thread overview]
Message-ID: <000000000000582151061be8c9a6@google.com> (raw)
In-Reply-To: <0000000000000b2e35061b9078aa@google.com>
For archival purposes, forwarding an incoming command email to
linux-kernel@vger.kernel.org.
***
Subject: Re: [syzbot] [btrfs?] WARNING in __btrfs_free_extent (2)
Author: lizhi.xu@windriver.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);
next prev parent reply other threads:[~2024-06-28 1:01 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-23 15:39 [syzbot] [btrfs?] WARNING in __btrfs_free_extent (2) syzbot
2024-06-28 1:01 ` syzbot [this message]
2024-06-28 21:46 ` Boris Burkov
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=000000000000582151061be8c9a6@google.com \
--to=syzbot+fe3566bcb509ae7764ef@syzkaller.appspotmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox