diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2022-10-09 02:25:53 -0400 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:42 -0400 |
commit | 2da671dc4a62da6de4ce0de529fc3e80f1f8f603 (patch) | |
tree | 9e5ce02eeb6bee35083b37f0d92b30b7600bfea0 /fs/bcachefs/sysfs.c | |
parent | 6c22eb7085d3ee055a178ed0a4e8d0e5d18800f3 (diff) | |
download | linux-2da671dc4a62da6de4ce0de529fc3e80f1f8f603.tar.gz linux-2da671dc4a62da6de4ce0de529fc3e80f1f8f603.tar.bz2 linux-2da671dc4a62da6de4ce0de529fc3e80f1f8f603.zip |
bcachefs: Use btree_type_has_ptrs() more consistently
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/sysfs.c')
-rw-r--r-- | fs/bcachefs/sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/bcachefs/sysfs.c b/fs/bcachefs/sysfs.c index 50b3ba92c5ae..a27ceabd5e49 100644 --- a/fs/bcachefs/sysfs.c +++ b/fs/bcachefs/sysfs.c @@ -298,7 +298,7 @@ static int bch2_compression_stats_to_text(struct printbuf *out, struct bch_fs *c bch2_trans_init(&trans, c, 0, 0); for (id = 0; id < BTREE_ID_NR; id++) { - if (!((1U << id) & BTREE_ID_HAS_PTRS)) + if (!btree_type_has_ptrs(id)) continue; for_each_btree_key(&trans, iter, id, POS_MIN, |