summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2022-01-04 18:24:55 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2022-01-05 19:33:46 -0500
commitd1c6c49a89d97e93b99a3368cd752e845ed44fb6 (patch)
tree5e8e4cd25c28f7fc4abde7579acbf368aeb05ad0
parent53cce2fa48835258c62ccf4aa62e32354904f3e8 (diff)
bcachefs: BTREE_ITER_FILTER_SNAPSHOTS is selected automatically
It doesn't have to be specified - this patch deletes the two instances where it was. Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
-rw-r--r--fs/bcachefs/fs-io.c2
-rw-r--r--fs/bcachefs/io.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/fs-io.c b/fs/bcachefs/fs-io.c
index 9cdd03f3eeb0..3b9b96e5a0a2 100644
--- a/fs/bcachefs/fs-io.c
+++ b/fs/bcachefs/fs-io.c
@@ -1024,7 +1024,7 @@ retry:
bch2_trans_iter_init(trans, &iter, BTREE_ID_extents,
SPOS(inum.inum, rbio->bio.bi_iter.bi_sector, snapshot),
- BTREE_ITER_SLOTS|BTREE_ITER_FILTER_SNAPSHOTS);
+ BTREE_ITER_SLOTS);
while (1) {
struct bkey_s_c k;
unsigned bytes, sectors, offset_into_extent;
diff --git a/fs/bcachefs/io.c b/fs/bcachefs/io.c
index 50b90b728a6d..73558cd00350 100644
--- a/fs/bcachefs/io.c
+++ b/fs/bcachefs/io.c
@@ -2241,7 +2241,7 @@ retry:
bch2_trans_iter_init(&trans, &iter, BTREE_ID_extents,
SPOS(inum.inum, bvec_iter.bi_sector, snapshot),
- BTREE_ITER_SLOTS|BTREE_ITER_FILTER_SNAPSHOTS);
+ BTREE_ITER_SLOTS);
while (1) {
unsigned bytes, sectors, offset_into_extent;
enum btree_id data_btree = BTREE_ID_extents;