diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2023-03-06 02:34:59 -0500 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2023-10-22 17:09:56 -0400 |
commit | a345b0f393da49be9d1110ec9e43066191f0e466 (patch) | |
tree | 99812fedf4a08078ccfaaa054fc8bc16c0d23558 /fs/bcachefs/btree_cache.h | |
parent | 26bab33b6974d42f5db6d2b7c2198e3af4993cf8 (diff) | |
download | lwn-a345b0f393da49be9d1110ec9e43066191f0e466.tar.gz lwn-a345b0f393da49be9d1110ec9e43066191f0e466.zip |
bcachefs: bch2_btree_node_to_text() const correctness
This is for the Rust interface - Rust cares more about const than C
does.
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/btree_cache.h')
-rw-r--r-- | fs/bcachefs/btree_cache.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/bcachefs/btree_cache.h b/fs/bcachefs/btree_cache.h index 56ea27340771..ea375ae25a70 100644 --- a/fs/bcachefs/btree_cache.h +++ b/fs/bcachefs/btree_cache.h @@ -100,7 +100,7 @@ static inline unsigned btree_blocks(struct bch_fs *c) #define btree_node_root(_c, _b) ((_c)->btree_roots[(_b)->c.btree_id].b) void bch2_btree_node_to_text(struct printbuf *, struct bch_fs *, - struct btree *); -void bch2_btree_cache_to_text(struct printbuf *, struct bch_fs *); + const struct btree *); +void bch2_btree_cache_to_text(struct printbuf *, const struct bch_fs *); #endif /* _BCACHEFS_BTREE_CACHE_H */ |