staging/lustre/lov: Remove unused lov_dump_lmm/pool()
authorOleg Drokin <green@linuxhacker.ru>
Thu, 1 Oct 2015 04:12:15 +0000 (00:12 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 2 Oct 2015 09:17:19 +0000 (11:17 +0200)
These generic switch functions appear to be unused as all the
individual ones are called directly.

Signed-off-by: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/lov/lov_internal.h
drivers/staging/lustre/lustre/lov/lov_pack.c
drivers/staging/lustre/lustre/lov/lov_pool.c

index dde9656d4dd61b4b8bdb7bac17c7697fd3d0ffd6..0de39cc0c43eb47a5fa109a78921d228d3b5ed4b 100644 (file)
@@ -220,7 +220,6 @@ int lov_free_memmd(struct lov_stripe_md **lsmp);
 void lov_dump_lmm_v1(int level, struct lov_mds_md_v1 *lmm);
 void lov_dump_lmm_v3(int level, struct lov_mds_md_v3 *lmm);
 void lov_dump_lmm_common(int level, void *lmmp);
-void lov_dump_lmm(int level, void *lmm);
 
 /* lov_ea.c */
 struct lov_stripe_md *lsm_alloc_plain(__u16 stripe_count, int *size);
@@ -248,7 +247,6 @@ int lov_pool_new(struct obd_device *obd, char *poolname);
 int lov_pool_del(struct obd_device *obd, char *poolname);
 int lov_pool_add(struct obd_device *obd, char *poolname, char *ostname);
 int lov_pool_remove(struct obd_device *obd, char *poolname, char *ostname);
-void lov_dump_pool(int level, struct pool_desc *pool);
 struct pool_desc *lov_find_pool(struct lov_obd *lov, char *poolname);
 int lov_check_index_in_pool(__u32 idx, struct pool_desc *pool);
 void lov_pool_putref(struct pool_desc *pool);
index 6b1c135c9ab0cddc892b6a46e03f71796b631731..05651ac6074ab3caebe0b32fbbd3b30371d300a5 100644 (file)
@@ -100,26 +100,6 @@ void lov_dump_lmm_v3(int level, struct lov_mds_md_v3 *lmm)
                             le16_to_cpu(lmm->lmm_stripe_count));
 }
 
-void lov_dump_lmm(int level, void *lmm)
-{
-       int magic;
-
-       magic = le32_to_cpu(((struct lov_mds_md *)lmm)->lmm_magic);
-       switch (magic) {
-       case LOV_MAGIC_V1:
-               lov_dump_lmm_v1(level, (struct lov_mds_md_v1 *)lmm);
-               break;
-       case LOV_MAGIC_V3:
-               lov_dump_lmm_v3(level, (struct lov_mds_md_v3 *)lmm);
-               break;
-       default:
-               CDEBUG(level, "unrecognized lmm_magic %x, assuming %x\n",
-                      magic, LOV_MAGIC_V1);
-               lov_dump_lmm_common(level, lmm);
-               break;
-       }
-}
-
 /* Pack LOV object metadata for disk storage.  It is packed in LE byte
  * order and is opaque to the networking layer.
  *
index c59b1402616e23e7c6e8521c1d1414149608924c..f9963481c91bbc83d0c876b98086515750929bb5 100644 (file)
@@ -294,28 +294,6 @@ static struct file_operations pool_proc_operations = {
        .release        = seq_release,
 };
 
-void lov_dump_pool(int level, struct pool_desc *pool)
-{
-       int i;
-
-       lov_pool_getref(pool);
-
-       CDEBUG(level, "pool "LOV_POOLNAMEF" has %d members\n",
-              pool->pool_name, pool->pool_obds.op_count);
-       down_read(&pool_tgt_rw_sem(pool));
-
-       for (i = 0; i < pool_tgt_count(pool) ; i++) {
-               if (!pool_tgt(pool, i) || !(pool_tgt(pool, i))->ltd_exp)
-                       continue;
-               CDEBUG(level, "pool "LOV_POOLNAMEF"[%d] = %s\n",
-                      pool->pool_name, i,
-                      obd_uuid2str(&((pool_tgt(pool, i))->ltd_uuid)));
-       }
-
-       up_read(&pool_tgt_rw_sem(pool));
-       lov_pool_putref(pool);
-}
-
 #define LOV_POOL_INIT_COUNT 2
 int lov_ost_pool_init(struct ost_pool *op, unsigned int count)
 {