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-1795 lustre: remove LASSERT in dt_fiemap_get()
[fs/lustre-release.git]
/
lustre
/
include
/
dt_object.h
diff --git
a/lustre/include/dt_object.h
b/lustre/include/dt_object.h
index
f95563a
..
c57fc00
100644
(file)
--- a/
lustre/include/dt_object.h
+++ b/
lustre/include/dt_object.h
@@
-1114,7
+1114,8
@@
static inline int dt_fiemap_get(const struct lu_env *env, struct dt_object *d,
LASSERT(d);
if (d->do_body_ops == NULL)
return -EPROTO;
- LASSERT(d->do_body_ops->dbo_fiemap_get);
+ if (d->do_body_ops->dbo_fiemap_get == NULL)
+ return -EOPNOTSUPP;
return d->do_body_ops->dbo_fiemap_get(env, d, fm);
}