X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fobdclass%2Flocal_storage.h;h=63af1946e6095c763bf80458282043bec97b417b;hb=593d02f2245d941f2ea0ac847aa2de215c83187e;hp=7ff6faad2a79705e55ebff218b24de4fdbe842e6;hpb=2b294992edce5af7b79d4300ed3aa1ea6a8db850;p=fs%2Flustre-release.git diff --git a/lustre/obdclass/local_storage.h b/lustre/obdclass/local_storage.h index 7ff6faa..63af194 100644 --- a/lustre/obdclass/local_storage.h +++ b/lustre/obdclass/local_storage.h @@ -52,7 +52,7 @@ struct ls_device { static inline struct ls_device *dt2ls_dev(struct dt_device *d) { - return container_of0(d, struct ls_device, ls_top_dev); + return container_of_safe(d, struct ls_device, ls_top_dev); } struct ls_object { @@ -62,7 +62,7 @@ struct ls_object { static inline struct ls_object *lu2ls_obj(struct lu_object *o) { - return container_of0(o, struct ls_object, ls_obj.do_lu); + return container_of_safe(o, struct ls_object, ls_obj.do_lu); } static inline struct dt_object *ls_locate(const struct lu_env *env,