Message ID | d456fe2306107280d66ceaceb8612e85f2a9428a.1670968657.git.josef@toxicpanda.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | btrfs: use BTRFS_SEQ_LAST for qgroups backref lookup | expand |
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.
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;
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(+)