From 3da504bfc4fab59c547f3ae6a6836e24953343f3 Mon Sep 17 00:00:00 2001 From: nikita Date: Tue, 11 Apr 2006 20:47:57 +0000 Subject: [PATCH] rename functions to follow prefix_object_verb() style; export mdt_seq_alloc --- lustre/mdt/mdt_handler.c | 9 +++++---- lustre/mdt/mdt_internal.h | 4 ++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/lustre/mdt/mdt_handler.c b/lustre/mdt/mdt_handler.c index 3dd788e..ad0c2aa 100644 --- a/lustre/mdt/mdt_handler.c +++ b/lustre/mdt/mdt_handler.c @@ -944,7 +944,7 @@ static int mdt_config(struct mdt_device *m, const char *name, } /* 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; @@ -969,11 +969,12 @@ int mdt_alloc_seq(struct mdt_device *m, __u64 *seq) 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; @@ -1122,7 +1123,7 @@ static int mdt_init0(struct mdt_device *m, } /* 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); @@ -1251,7 +1252,7 @@ static int mdt_obd_connect(struct lustre_handle *conn, struct obd_device *obd, 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); diff --git a/lustre/mdt/mdt_internal.h b/lustre/mdt/mdt_internal.h index 5bece66..421aca8 100644 --- a/lustre/mdt/mdt_internal.h +++ b/lustre/mdt/mdt_internal.h @@ -77,7 +77,7 @@ struct mdt_device { unsigned long mdt_flags; /* Seq management related stuff */ - struct semaphore mdt_seq_sem; + struct semaphore mdt_seq_sem; __u64 mdt_seq; }; @@ -168,7 +168,7 @@ struct mdt_thread_info { }; -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, -- 1.8.3.1