X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fcmm%2Fmdc_device.c;h=8c75a6c1dc7f4d94cc376490d3042d66890a7e32;hb=86a06098ea05b37f5bb5e7ac59f3d6f1972abbe4;hp=568d6082cb91cebb71a9470443badc7fc07dcda2;hpb=0ad352cfebf46499bf9d3162e6c388f47e65f25d;p=fs%2Flustre-release.git diff --git a/lustre/cmm/mdc_device.c b/lustre/cmm/mdc_device.c index 568d608..8c75a6c 100644 --- a/lustre/cmm/mdc_device.c +++ b/lustre/cmm/mdc_device.c @@ -52,7 +52,7 @@ #include "cmm_internal.h" #include "mdc_internal.h" -static struct lu_device_operations mdc_lu_ops; +static const struct lu_device_operations mdc_lu_ops; static inline int lu_device_is_mdc(struct lu_device *ld) { @@ -60,7 +60,7 @@ static inline int lu_device_is_mdc(struct lu_device *ld) ld->ld_ops == &mdc_lu_ops); } -static struct md_device_operations mdc_md_ops = { 0 }; +static const struct md_device_operations mdc_md_ops = { 0 }; static int mdc_obd_update(struct obd_device *host, struct obd_device *watched, @@ -245,7 +245,7 @@ static int mdc_process_config(const struct lu_env *env, RETURN(rc); } -static struct lu_device_operations mdc_lu_ops = { +static const struct lu_device_operations mdc_lu_ops = { .ldo_object_alloc = mdc_object_alloc, .ldo_process_config = mdc_process_config }; @@ -321,6 +321,9 @@ static struct lu_device_type_operations mdc_device_type_ops = { .ldto_init = mdc_type_init, .ldto_fini = mdc_type_fini, + .ldto_start = mdc_type_start, + .ldto_stop = mdc_type_stop, + .ldto_device_alloc = mdc_device_alloc, .ldto_device_free = mdc_device_free,