summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorjxiong <[email protected]>2016-11-09 13:51:12 -0800
committerBrian Behlendorf <[email protected]>2016-11-09 13:51:12 -0800
commit126ae9f4e9a8e39f65fcd55e3e1cf90d4e9c6f56 (patch)
tree7406f971070d407a514484a5910244a8efd1e1db /include
parent0420c126ce11432590bce1da651334ca07223185 (diff)
Export symbol dmu_objset_userobjspace_upgradable
It's used by Lustre to determine if the objset can be upgraded. The inline version doesn't work because dmu_objset_is_snapshot() is not exported. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Jinshan Xiong <[email protected]> Closes #5385
Diffstat (limited to 'include')
-rw-r--r--include/sys/dmu_objset.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/include/sys/dmu_objset.h b/include/sys/dmu_objset.h
index 2ec1ec87d..ed3cbf498 100644
--- a/include/sys/dmu_objset.h
+++ b/include/sys/dmu_objset.h
@@ -184,17 +184,10 @@ boolean_t dmu_objset_userused_enabled(objset_t *os);
int dmu_objset_userspace_upgrade(objset_t *os);
boolean_t dmu_objset_userspace_present(objset_t *os);
boolean_t dmu_objset_userobjused_enabled(objset_t *os);
+boolean_t dmu_objset_userobjspace_upgradable(objset_t *os);
void dmu_objset_userobjspace_upgrade(objset_t *os);
boolean_t dmu_objset_userobjspace_present(objset_t *os);
-static inline boolean_t dmu_objset_userobjspace_upgradable(objset_t *os)
-{
- return (dmu_objset_type(os) == DMU_OST_ZFS &&
- !dmu_objset_is_snapshot(os) &&
- dmu_objset_userobjused_enabled(os) &&
- !dmu_objset_userobjspace_present(os));
-}
-
int dmu_fsname(const char *snapname, char *buf);
void dmu_objset_evict_done(objset_t *os);