* \param[in] exp OBD export
* \param[in] fmd FMD to put
*/
-void tgt_fmd_put(struct obd_export *exp, struct tgt_fmd_data *fmd)
+static void tgt_fmd_put(struct obd_export *exp, struct tgt_fmd_data *fmd)
{
struct tg_export_data *ted = &exp->exp_target_data;
struct tgt_fmd_data *keep)
{
struct tg_export_data *ted = &exp->exp_target_data;
- struct lu_target *lut = exp->exp_obd->u.obt.obt_lut;
+ struct lu_target *lut = obd2obt(exp->exp_obd)->obt_lut;
time64_t now = ktime_get_seconds();
struct tgt_fmd_data *fmd, *tmp;
{
struct tg_export_data *ted = &exp->exp_target_data;
struct tgt_fmd_data *found = NULL, *fmd;
- struct lu_target *lut = exp->exp_obd->u.obt.obt_lut;
+ struct lu_target *lut = obd2obt(exp->exp_obd)->obt_lut;
time64_t now = ktime_get_seconds();
assert_spin_locked(&ted->ted_fmd_lock);
* \retval struct tgt_fmd_data found by FID
* \retval NULL indicates FMD is not found
*/
-struct tgt_fmd_data *tgt_fmd_find(struct obd_export *exp,
- const struct lu_fid *fid)
+static struct tgt_fmd_data *tgt_fmd_find(struct obd_export *exp,
+ const struct lu_fid *fid)
{
struct tg_export_data *ted = &exp->exp_target_data;
struct tgt_fmd_data *fmd;
* \retval struct tgt_fmd_data found by FID
* \retval NULL indicates FMD is not found
*/
-struct tgt_fmd_data *tgt_fmd_get(struct obd_export *exp,
- const struct lu_fid *fid)
+static struct tgt_fmd_data *tgt_fmd_get(struct obd_export *exp,
+ const struct lu_fid *fid)
{
struct tg_export_data *ted = &exp->exp_target_data;
struct tgt_fmd_data *found = NULL, *fmd_new = NULL;