From: yury Date: Fri, 23 Jun 2006 10:24:12 +0000 (+0000) Subject: - removed old proto stuff which is not now needed in FLD X-Git-Tag: v1_8_0_110~486^2~1560 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=825fa1bed37abeb7d202e03426695ca56a9444ff;p=fs%2Flustre-release.git - removed old proto stuff which is not now needed in FLD --- diff --git a/lustre/fld/fld_handler.c b/lustre/fld/fld_handler.c index 7985029..7771db7 100644 --- a/lustre/fld/fld_handler.c +++ b/lustre/fld/fld_handler.c @@ -108,9 +108,6 @@ static void __exit fld_mod_exit(void) return; } - -static struct fld_list fld_list_head; - static int fld_server_handle(struct lu_server_fld *fld, const struct lu_context *ctx, @@ -238,9 +235,6 @@ fld_server_init(struct lu_server_fld *fld, fld->fld_dt = dt; lu_device_get(&dt->dd_lu_dev); - INIT_LIST_HEAD(&fld_list_head.fld_list); - spin_lock_init(&fld_list_head.fld_lock); - rc = fld_index_init(fld, ctx); if (rc == 0) { @@ -267,7 +261,6 @@ void fld_server_fini(struct lu_server_fld *fld, const struct lu_context *ctx) { - struct list_head *pos, *n; ENTRY; if (fld->fld_service != NULL) { @@ -275,14 +268,6 @@ fld_server_fini(struct lu_server_fld *fld, fld->fld_service = NULL; } - spin_lock(&fld_list_head.fld_lock); - list_for_each_safe(pos, n, &fld_list_head.fld_list) { - struct fld_item *fld = list_entry(pos, struct fld_item, - fld_list); - list_del_init(&fld->fld_list); - OBD_FREE_PTR(fld); - } - spin_unlock(&fld_list_head.fld_lock); if (fld->fld_dt != NULL) { lu_device_put(&fld->fld_dt->dd_lu_dev); fld_index_fini(fld, ctx); diff --git a/lustre/fld/fld_internal.h b/lustre/fld/fld_internal.h index 238e684..b169730 100644 --- a/lustre/fld/fld_internal.h +++ b/lustre/fld/fld_internal.h @@ -42,18 +42,6 @@ struct fld_cache_info { int fld_hash_mask; }; -/*XXX use linked list temp for fld in this prototype*/ -struct fld_list { - struct list_head fld_list; - spinlock_t fld_lock; -}; - -struct fld_item { - struct list_head fld_list; - __u64 fld_seq; - mdsno_t fld_mds; -}; - enum fld_op { FLD_CREATE = 0, FLD_DELETE = 1,