]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
staging: lustre: lmv: remove unused lmv_get_mea function
authorwang di <di.wang@intel.com>
Tue, 16 Aug 2016 20:18:20 +0000 (16:18 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2016 13:57:33 +0000 (15:57 +0200)
The function lmv_get_mea() is not used so remove it.

Signed-off-by: wang di <di.wang@intel.com>
Reviewed-on: http://review.whamcloud.com/7043
Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-3531
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
Signed-off-by: James Simmons <jsimmons@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/lmv/lmv_internal.h

index 471470b6f199155ac631400370d494962ad326ea..ab01560d51dfa16313f0ff4ea9a5ffade3e8624c 100644 (file)
@@ -55,30 +55,6 @@ int __lmv_fid_alloc(struct lmv_obd *lmv, struct lu_fid *fid, u32 mds);
 int lmv_fid_alloc(struct obd_export *exp, struct lu_fid *fid,
                  struct md_op_data *op_data);
 
-static inline struct lmv_stripe_md *lmv_get_mea(struct ptlrpc_request *req)
-{
-       struct mdt_body  *body;
-       struct lmv_stripe_md    *mea;
-
-       LASSERT(req);
-
-       body = req_capsule_server_get(&req->rq_pill, &RMF_MDT_BODY);
-
-       if (!body || !S_ISDIR(body->mode) || !body->eadatasize)
-               return NULL;
-
-       mea = req_capsule_server_sized_get(&req->rq_pill, &RMF_MDT_MD,
-                                          body->eadatasize);
-       if (mea->mea_count == 0)
-               return NULL;
-       if (mea->mea_magic != MEA_MAGIC_LAST_CHAR &&
-           mea->mea_magic != MEA_MAGIC_ALL_CHARS &&
-           mea->mea_magic != MEA_MAGIC_HASH_SEGMENT)
-               return NULL;
-
-       return mea;
-}
-
 static inline int lmv_get_easize(struct lmv_obd *lmv)
 {
        return sizeof(struct lmv_stripe_md) +