Lines Matching refs:dev_idx
22 unsigned dev_idx, int flags, bool metadata)
29 bch2_bkey_drop_device(k, dev_idx);
42 unsigned dev_idx,
49 if (!bch2_bkey_has_device_c(k, dev_idx))
57 ret = drop_dev_ptrs(c, bkey_i_to_s(n), dev_idx, flags, false);
79 static int bch2_dev_usrdata_drop(struct bch_fs *c, unsigned dev_idx, int flags)
92 bch2_dev_usrdata_drop_key(trans, &iter, k, dev_idx, flags));
102 static int bch2_dev_metadata_drop(struct bch_fs *c, unsigned dev_idx, int flags)
128 if (!bch2_bkey_has_device_c(bkey_i_to_s_c(&b->key), dev_idx))
134 dev_idx, flags, true);
170 int bch2_dev_data_drop(struct bch_fs *c, unsigned dev_idx, int flags)
172 return bch2_dev_usrdata_drop(c, dev_idx, flags) ?:
173 bch2_dev_metadata_drop(c, dev_idx, flags);