diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-25 19:26:05 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-03-31 20:36:11 -0400 |
commit | 47d2080e30b0b9fc636eba4e74f9e4bdc01543d7 (patch) | |
tree | 335e1923d594bc6f19a21261706be841eb0cff32 /fs/bcachefs/backpointers.c | |
parent | dcc1c04587aa9bc3515153f4c89cff73f2cb45b2 (diff) | |
download | linux-stable-47d2080e30b0b9fc636eba4e74f9e4bdc01543d7.tar.gz linux-stable-47d2080e30b0b9fc636eba4e74f9e4bdc01543d7.tar.bz2 linux-stable-47d2080e30b0b9fc636eba4e74f9e4bdc01543d7.zip |
bcachefs: Kill bch2_bkey_ptr_data_type()
Remove some duplication, and inconsistency between check_fix_ptrs and
the main ptr marking paths
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/backpointers.c')
-rw-r--r-- | fs/bcachefs/backpointers.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/fs/bcachefs/backpointers.c b/fs/bcachefs/backpointers.c index 21b3ae7df824..7537d78aa9db 100644 --- a/fs/bcachefs/backpointers.c +++ b/fs/bcachefs/backpointers.c @@ -29,8 +29,7 @@ static bool extent_matches_bp(struct bch_fs *c, if (p.ptr.cached) continue; - bch2_extent_ptr_to_bp(c, btree_id, level, k, p, - &bucket2, &bp2); + bch2_extent_ptr_to_bp(c, btree_id, level, k, p, entry, &bucket2, &bp2); if (bpos_eq(bucket, bucket2) && !memcmp(&bp, &bp2, sizeof(bp))) return true; @@ -507,8 +506,7 @@ static int check_extent_to_backpointers(struct btree_trans *trans, if (p.ptr.cached) continue; - bch2_extent_ptr_to_bp(c, btree, level, - k, p, &bucket_pos, &bp); + bch2_extent_ptr_to_bp(c, btree, level, k, p, entry, &bucket_pos, &bp); ret = check_bp_exists(trans, s, bucket_pos, bp, k); if (ret) |