@@ -581,7 +581,7 @@ static struct ptlrpc_request *mdc_intent_layout_pack(struct obd_export *exp,
struct md_op_data *op_data)
{
struct obd_device *obd = class_exp2obd(exp);
- struct list_head cancels = LIST_HEAD_INIT(cancels);
+ LIST_HEAD(cancels);
struct ptlrpc_request *req;
struct ldlm_intent *lit;
struct layout_intent *layout;
@@ -470,7 +470,7 @@ int mdc_rename(struct obd_export *exp, struct md_op_data *op_data,
int mdc_file_resync(struct obd_export *exp, struct md_op_data *op_data)
{
- struct list_head cancels = LIST_HEAD_INIT(cancels);
+ LIST_HEAD(cancels);
struct ptlrpc_request *req;
struct ldlm_lock *lock;
struct mdt_rec_resync *rec;
@@ -3382,7 +3382,7 @@ int osc_cleanup_common(struct obd_device *obd)
.quotactl = osc_quotactl,
};
-struct list_head osc_shrink_list = LIST_HEAD_INIT(osc_shrink_list);
+LIST_HEAD(osc_shrink_list);
DEFINE_SPINLOCK(osc_shrink_lock);
static struct shrinker osc_cache_shrinker = {
@@ -43,7 +43,7 @@
struct mutex pinger_mutex;
static LIST_HEAD(pinger_imports);
-static struct list_head timeout_list = LIST_HEAD_INIT(timeout_list);
+static LIST_HEAD(timeout_list);
struct ptlrpc_request *
ptlrpc_prep_ping(struct obd_import *imp)