diff options
author | Kent Overstreet <kent.overstreet@gmail.com> | 2021-07-05 22:02:07 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:07 -0400 |
commit | 618b1c0e20ac7bccebba0346ab1e1403fadd6aa0 (patch) | |
tree | 7583ac63d71611ab8cf544f1a8b80f29588da544 /fs/bcachefs/btree_gc.h | |
parent | 41e633826a1418f3b492d9137d395289e6e67d15 (diff) | |
download | linux-618b1c0e20ac7bccebba0346ab1e1403fadd6aa0.tar.gz linux-618b1c0e20ac7bccebba0346ab1e1403fadd6aa0.tar.bz2 linux-618b1c0e20ac7bccebba0346ab1e1403fadd6aa0.zip |
bcachefs: Split out SPOS_MAX
Internal btree code really wants a POS_MAX with all fields ~0; external
code more likely wants the snapshot field to be 0, because when we're
passing it to bch2_trans_get_iter() it's used for the snapshot we're
operating in, which should be 0 for most btrees that don't use
snapshots.
Signed-off-by: Kent Overstreet <kent.overstreet@gmail.com>
Diffstat (limited to 'fs/bcachefs/btree_gc.h')
-rw-r--r-- | fs/bcachefs/btree_gc.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/btree_gc.h b/fs/bcachefs/btree_gc.h index e9a87394370a..59dfb069e699 100644 --- a/fs/bcachefs/btree_gc.h +++ b/fs/bcachefs/btree_gc.h @@ -87,7 +87,7 @@ static inline struct gc_pos gc_pos_btree_node(struct btree *b) */ static inline struct gc_pos gc_pos_btree_root(enum btree_id id) { - return gc_pos_btree(id, POS_MAX, BTREE_MAX_DEPTH); + return gc_pos_btree(id, SPOS_MAX, BTREE_MAX_DEPTH); } static inline bool gc_visited(struct bch_fs *c, struct gc_pos pos) |