Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-10650 obd: add check to obd_statfs
[fs/lustre-release.git]
/
lustre
/
include
/
obd_class.h
diff --git
a/lustre/include/obd_class.h
b/lustre/include/obd_class.h
index
72da1c8
..
748cc47
100644
(file)
--- a/
lustre/include/obd_class.h
+++ b/
lustre/include/obd_class.h
@@
-1132,6
+1132,8
@@
static inline int obd_statfs(const struct lu_env *env, struct obd_export *exp,
if (obd == NULL)
RETURN(-EINVAL);
+ OBD_CHECK_DEV_ACTIVE(obd);
+
if (!obd->obd_type || !obd->obd_type->typ_dt_ops->o_statfs) {
CERROR("%s: no %s operation\n", obd->obd_name, __func__);
RETURN(-EOPNOTSUPP);