X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fosd-zfs%2Fosd_handler.c;h=10ef06c3e0bac9678a036ce30a0c9f1446524b9b;hb=0098396983e1075668414aa5298a4990e61ffbda;hp=4e23ba181bd7b920839f2e87e26567adf5a759ce;hpb=6c6ca1fbfb1b2be0e6a9675f9214f98e59bc8088;p=fs%2Flustre-release.git diff --git a/lustre/osd-zfs/osd_handler.c b/lustre/osd-zfs/osd_handler.c index 4e23ba1..10ef06c 100644 --- a/lustre/osd-zfs/osd_handler.c +++ b/lustre/osd-zfs/osd_handler.c @@ -280,13 +280,12 @@ static int osd_trans_stop(const struct lu_env *env, struct dt_device *dt, struct osd_device *osd = osd_dt_dev(th->th_dev); bool sync = (th->th_sync != 0); struct osd_thandle *oh; - struct list_head unlinked; + LIST_HEAD(unlinked); uint64_t txg; int rc; ENTRY; oh = container_of0(th, struct osd_thandle, ot_super); - INIT_LIST_HEAD(&unlinked); list_splice_init(&oh->ot_unlinked_list, &unlinked); osd_oti_get(env)->oti_ins_cache_depth--; @@ -1614,7 +1613,7 @@ static struct lu_device_type osd_device_type = { }; -static struct obd_ops osd_obd_device_ops = { +static const struct obd_ops osd_obd_device_ops = { .o_owner = THIS_MODULE, .o_connect = osd_obd_connect, .o_disconnect = osd_obd_disconnect,