diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-12-16 21:46:23 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-01-01 11:47:42 -0500 |
commit | 3a860b5ad5f7fb851d1a9de5cd09b3e6e95362b2 (patch) | |
tree | 8db9bb5c92af41462e18c6d5b1403d414f4e2ae4 /fs/bcachefs/fsck.c | |
parent | c8ef2dc2fc87369a949c3e379ebfe50fe540fa36 (diff) | |
download | linux-3a860b5ad5f7fb851d1a9de5cd09b3e6e95362b2.tar.gz linux-3a860b5ad5f7fb851d1a9de5cd09b3e6e95362b2.tar.bz2 linux-3a860b5ad5f7fb851d1a9de5cd09b3e6e95362b2.zip |
bcachefs: for_each_btree_key_upto() -> for_each_btree_key_old_upto()
And for_each_btree_key2_upto -> for_each_btree_key_upto
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/fsck.c')
-rw-r--r-- | fs/bcachefs/fsck.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/bcachefs/fsck.c b/fs/bcachefs/fsck.c index 52438f86530f..c3c0b9c1dba2 100644 --- a/fs/bcachefs/fsck.c +++ b/fs/bcachefs/fsck.c @@ -32,10 +32,10 @@ static s64 bch2_count_inode_sectors(struct btree_trans *trans, u64 inum, u64 sectors = 0; int ret; - for_each_btree_key_upto(trans, iter, BTREE_ID_extents, - SPOS(inum, 0, snapshot), - POS(inum, U64_MAX), - 0, k, ret) + for_each_btree_key_old_upto(trans, iter, BTREE_ID_extents, + SPOS(inum, 0, snapshot), + POS(inum, U64_MAX), + 0, k, ret) if (bkey_extent_is_allocation(k.k)) sectors += k.k->size; @@ -53,10 +53,10 @@ static s64 bch2_count_subdirs(struct btree_trans *trans, u64 inum, u64 subdirs = 0; int ret; - for_each_btree_key_upto(trans, iter, BTREE_ID_dirents, - SPOS(inum, 0, snapshot), - POS(inum, U64_MAX), - 0, k, ret) { + for_each_btree_key_old_upto(trans, iter, BTREE_ID_dirents, + SPOS(inum, 0, snapshot), + POS(inum, U64_MAX), + 0, k, ret) { if (k.k->type != KEY_TYPE_dirent) continue; |