_noerror means don't produce inconsistent errors, so it should be using
bch2_dev_rcu_noerror().

Signed-off-by: Kent Overstreet <[email protected]>
---
 fs/bcachefs/backpointers.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/bcachefs/backpointers.h b/fs/bcachefs/backpointers.h
index 74c96aee713e..eda3a78a5e2b 100644
--- a/fs/bcachefs/backpointers.h
+++ b/fs/bcachefs/backpointers.h
@@ -46,7 +46,7 @@ static inline struct bpos bp_pos_to_bucket(const struct 
bch_dev *ca, struct bpos
 static inline bool bp_pos_to_bucket_nodev_noerror(struct bch_fs *c, struct 
bpos bp_pos, struct bpos *bucket)
 {
        rcu_read_lock();
-       struct bch_dev *ca = bch2_dev_rcu(c, bp_pos.inode);
+       struct bch_dev *ca = bch2_dev_rcu_noerror(c, bp_pos.inode);
        if (ca)
                *bucket = bp_pos_to_bucket(ca, bp_pos);
        rcu_read_unlock();
-- 
2.45.2


Reply via email to