Whamcloud - gitweb
patches related to bug 13377 (CMD small fixes), 2+4 patch and fid_unpack patch
[fs/lustre-release.git] / lustre / fid / fid_handler.c
index 0aa64b2..45e1ebb 100644 (file)
@@ -356,27 +356,7 @@ static int seq_req_handle(struct ptlrpc_request *req,
         RETURN(rc);
 }
 
-static void *seq_key_init(const struct lu_context *ctx,
-                          struct lu_context_key *key)
-{
-        struct seq_thread_info *info;
-
-        /*
-         * check that no high order allocations are incurred.
-         */
-        CLASSERT(CFS_PAGE_SIZE >= sizeof *info);
-        OBD_ALLOC_PTR(info);
-        if (info == NULL)
-                info = ERR_PTR(-ENOMEM);
-        return info;
-}
-
-static void seq_key_fini(const struct lu_context *ctx,
-                         struct lu_context_key *key, void *data)
-{
-        struct seq_thread_info *info = data;
-        OBD_FREE_PTR(info);
-}
+LU_KEY_INIT_FINI(seq, struct seq_thread_info);
 
 struct lu_context_key seq_thread_key = {
         .lct_tags = LCT_MD_THREAD,