}
/* allocate sequence to client */
-int mdt_alloc_seq(struct mdt_device *m, __u64 *seq)
+int mdt_seq_alloc(struct mdt_device *m, __u64 *seq)
{
int rc = 0;
ENTRY;
RETURN(0);
}
+EXPORT_SYMBOL(mdt_seq_alloc);
/* initialize meta-sequence. First of all try to get it from lower layer down to
* back store one. In the case this is first run and there is not meta-sequence
* initialized yet - store it to backstore. */
-static int mdt_init_seq(struct mdt_device *m)
+static int mdt_seq_init(struct mdt_device *m)
{
int rc = 0;
ENTRY;
}
/* init sequence info after device stack is initialized. */
- rc = mdt_init_seq(m);
+ rc = mdt_seq_init(m);
if (rc)
GOTO(err_fini_child, rc);
memcpy(mcd->mcd_uuid, cluuid, sizeof(mcd->mcd_uuid));
med->med_mcd = mcd;
- rc = mdt_alloc_seq(mdt_dev(obd->obd_lu_dev),
+ rc = mdt_seq_alloc(mdt_dev(obd->obd_lu_dev),
&data->ocd_seq);
if (rc)
GOTO(out, rc);
unsigned long mdt_flags;
/* Seq management related stuff */
- struct semaphore mdt_seq_sem;
+ struct semaphore mdt_seq_sem;
__u64 mdt_seq;
};
};
-int mdt_alloc_seq(struct mdt_device *, __u64 *);
+int mdt_seq_alloc(struct mdt_device *, __u64 *);
int fid_lock(struct ldlm_namespace *, const struct lu_fid *,
struct lustre_handle *, ldlm_mode_t,