* [PATCH] btrfs: use BTRFS_SEQ_LAST for qgroups backref lookup
@ 2022-12-13 21:57 Josef Bacik
2022-12-14 16:19 ` David Sterba
0 siblings, 1 reply; 2+ messages in thread
From: Josef Bacik @ 2022-12-13 21:57 UTC (permalink / raw)
To: linux-btrfs, kernel-team
In the patch 5850e883cf23 ("btrfs: use a structure to pass arguments to
backref walking functions") Filipe converted everybody to using a new
context struct to use for backref lookups, but accidentally dropped the
BTRFS_SEQ_LAST usage that exists for qgroups. Add this back so we have
the previous behavior.
Fixes: 5850e883cf23 ("btrfs: use a structure to pass arguments to backref walking functions")
Signed-off-by: Josef Bacik <josef@toxicpanda.com>
---
fs/btrfs/qgroup.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/btrfs/qgroup.c b/fs/btrfs/qgroup.c
index 9e22698ea439..6b5be4a6e3a1 100644
--- a/fs/btrfs/qgroup.c
+++ b/fs/btrfs/qgroup.c
@@ -2780,6 +2780,7 @@ int btrfs_qgroup_account_extents(struct btrfs_trans_handle *trans)
* current root. It's safe inside commit_transaction().
*/
ctx.trans = trans;
+ ctx.time_seq = BTRFS_SEQ_LAST;
ret = btrfs_find_all_roots(&ctx, false);
if (ret < 0)
goto cleanup;
--
2.26.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] btrfs: use BTRFS_SEQ_LAST for qgroups backref lookup
2022-12-13 21:57 [PATCH] btrfs: use BTRFS_SEQ_LAST for qgroups backref lookup Josef Bacik
@ 2022-12-14 16:19 ` David Sterba
0 siblings, 0 replies; 2+ messages in thread
From: David Sterba @ 2022-12-14 16:19 UTC (permalink / raw)
To: Josef Bacik; +Cc: linux-btrfs, kernel-team
On Tue, Dec 13, 2022 at 04:57:44PM -0500, Josef Bacik wrote:
> In the patch 5850e883cf23 ("btrfs: use a structure to pass arguments to
> backref walking functions") Filipe converted everybody to using a new
> context struct to use for backref lookups, but accidentally dropped the
> BTRFS_SEQ_LAST usage that exists for qgroups. Add this back so we have
> the previous behavior.
>
> Fixes: 5850e883cf23 ("btrfs: use a structure to pass arguments to backref walking functions")
This commit id is from some old branch, by the subject I found the
commit as a2c8d27e5ee810b7149b42b88ddf7298e5b8dfe0
> Signed-off-by: Josef Bacik <josef@toxicpanda.com>
Added to misc-next, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-12-14 16:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-13 21:57 [PATCH] btrfs: use BTRFS_SEQ_LAST for qgroups backref lookup Josef Bacik
2022-12-14 16:19 ` David Sterba
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).