diff options
author | Kent Overstreet <kent.overstreet@linux.dev> | 2024-05-02 02:10:17 +0300 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-05-09 23:23:36 +0300 |
commit | 2f4b4a3b44755d8c86eff64b9c54e3242a9b659c (patch) | |
tree | 1679e83aabf27689eb0fbfa93dcbcb1940ebe45a /fs/bcachefs/sb-members.h | |
parent | 02b7fa4fe5307b1de74e734e28192623b7af7020 (diff) | |
download | linux-2f4b4a3b44755d8c86eff64b9c54e3242a9b659c.tar.xz |
bcachefs: kill bch2_dev_bkey_exists() in bch2_check_fix_ptrs()
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
Diffstat (limited to 'fs/bcachefs/sb-members.h')
-rw-r--r-- | fs/bcachefs/sb-members.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/fs/bcachefs/sb-members.h b/fs/bcachefs/sb-members.h index ae28b5d401e3..dd93192ec065 100644 --- a/fs/bcachefs/sb-members.h +++ b/fs/bcachefs/sb-members.h @@ -189,17 +189,6 @@ static inline struct bch_dev *bch2_dev_have_ref(const struct bch_fs *c, unsigned return rcu_dereference_check(c->devs[dev], 1); } -/* - * If a key exists that references a device, the device won't be going away and - * we can omit rcu_read_lock(): - */ -static inline struct bch_dev *bch2_dev_bkey_exists(const struct bch_fs *c, unsigned dev) -{ - EBUG_ON(!bch2_dev_exists(c, dev)); - - return rcu_dereference_check(c->devs[dev], 1); -} - static inline struct bch_dev *bch2_dev_locked(struct bch_fs *c, unsigned dev) { EBUG_ON(!bch2_dev_exists(c, dev)); |