X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Fosc%2Fosc_request.c;h=0e0092dbbb01d1a125956b6594ac673e659eab01;hp=1c4e26df38069b3d1c27b1b645151729423fb4fe;hb=546993d587c5fc380e9745eae98f863e02e68575;hpb=b19b318b5e74e76b3fc5b15c796666d04df62466 diff --git a/lustre/osc/osc_request.c b/lustre/osc/osc_request.c index 1c4e26d..0e0092d 100644 --- a/lustre/osc/osc_request.c +++ b/lustre/osc/osc_request.c @@ -577,7 +577,7 @@ static int osc_destroy(const struct lu_env *env, struct obd_export *exp, struct client_obd *cli = &exp->exp_obd->u.cli; struct ptlrpc_request *req; struct ost_body *body; - struct list_head cancels = LIST_HEAD_INIT(cancels); + LIST_HEAD(cancels); int rc, count; ENTRY; @@ -2204,7 +2204,7 @@ int osc_build_rpc(const struct lu_env *env, struct client_obd *cli, int grant = 0; int rc; __u32 layout_version = 0; - struct list_head rpc_list = LIST_HEAD_INIT(rpc_list); + LIST_HEAD(rpc_list); struct ost_body *body; ENTRY; LASSERT(!list_empty(ext_list)); @@ -3370,7 +3370,7 @@ static struct obd_ops osc_obd_ops = { }; static struct shrinker *osc_cache_shrinker; -struct list_head osc_shrink_list = LIST_HEAD_INIT(osc_shrink_list); +LIST_HEAD(osc_shrink_list); DEFINE_SPINLOCK(osc_shrink_lock); #ifndef HAVE_SHRINKER_COUNT