Whamcloud - gitweb
LU-6014 mdt: remove unused function
[fs/lustre-release.git] / lustre / lov / lov_ea.c
index 075c491..2e2357c 100644 (file)
@@ -27,7 +27,7 @@
  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  *
- * Copyright (c) 2011, 2013, Intel Corporation.
+ * Copyright (c) 2011, 2014, Intel Corporation.
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
@@ -138,18 +138,18 @@ static void lsm_unpackmd_common(struct lov_stripe_md *lsm,
 
 static void
 lsm_stripe_by_index_plain(struct lov_stripe_md *lsm, int *stripeno,
-                           obd_off *lov_off, obd_off *swidth)
+                         loff_t *lov_off, loff_t *swidth)
 {
-        if (swidth)
-                *swidth = (obd_off)lsm->lsm_stripe_size * lsm->lsm_stripe_count;
+       if (swidth != NULL)
+               *swidth = (loff_t)lsm->lsm_stripe_size * lsm->lsm_stripe_count;
 }
 
 static void
 lsm_stripe_by_offset_plain(struct lov_stripe_md *lsm, int *stripeno,
-                           obd_off *lov_off, obd_off *swidth)
+                          loff_t *lov_off, loff_t *swidth)
 {
-        if (swidth)
-                *swidth = (obd_off)lsm->lsm_stripe_size * lsm->lsm_stripe_count;
+       if (swidth != NULL)
+               *swidth = (loff_t)lsm->lsm_stripe_size * lsm->lsm_stripe_count;
 }
 
 /* Find minimum stripe maxbytes value.  For inactive or
@@ -198,8 +198,8 @@ static int lsm_lmm_verify_v1(struct lov_mds_md_v1 *lmm, int lmm_bytes,
        return lsm_lmm_verify_common(lmm, lmm_bytes, *stripe_count);
 }
 
-int lsm_unpackmd_v1(struct lov_obd *lov, struct lov_stripe_md *lsm,
-                    struct lov_mds_md_v1 *lmm)
+static int lsm_unpackmd_v1(struct lov_obd *lov, struct lov_stripe_md *lsm,
+                          struct lov_mds_md_v1 *lmm)
 {
         struct lov_oinfo *loi;
         int i;
@@ -278,8 +278,8 @@ static int lsm_lmm_verify_v3(struct lov_mds_md *lmmv1, int lmm_bytes,
                                     *stripe_count);
 }
 
-int lsm_unpackmd_v3(struct lov_obd *lov, struct lov_stripe_md *lsm,
-                    struct lov_mds_md *lmmv1)
+static int lsm_unpackmd_v3(struct lov_obd *lov, struct lov_stripe_md *lsm,
+                          struct lov_mds_md *lmmv1)
 {
         struct lov_mds_md_v3 *lmm;
         struct lov_oinfo *loi;