X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Fdt_object.h;h=9abb6d99beaefe3ba517f975743b176565425d64;hp=edee55ab5b207215b5d443a01fe04037498a7636;hb=c65b502fe9feda61c7ad7137f5022c654c6ba501;hpb=d21876c689b7339132064a3fcc9defdb96dd8501;ds=sidebyside diff --git a/lustre/include/dt_object.h b/lustre/include/dt_object.h index edee55a..9abb6d9 100644 --- a/lustre/include/dt_object.h +++ b/lustre/include/dt_object.h @@ -153,7 +153,7 @@ struct dt_device_operations { * handling device state, mostly for tests */ int (*dt_sync)(const struct lu_env *env, struct dt_device *dev); - void (*dt_ro)(const struct lu_env *env, struct dt_device *dev); + int (*dt_ro)(const struct lu_env *env, struct dt_device *dev); /** * Start a transaction commit asynchronously * @@ -1097,7 +1097,7 @@ static inline int dt_sync(const struct lu_env *env, struct dt_device *dev) return dev->dd_ops->dt_sync(env, dev); } -static inline void dt_ro(const struct lu_env *env, struct dt_device *dev) +static inline int dt_ro(const struct lu_env *env, struct dt_device *dev) { LASSERT(dev); LASSERT(dev->dd_ops);