Whamcloud - gitweb
LU-10175 ldlm: handle lock converts in cancel handler
[fs/lustre-release.git] / lustre / include / lustre_export.h
index 6c5a08a..5ead593 100644 (file)
@@ -450,6 +450,11 @@ static inline int exp_connect_flr(struct obd_export *exp)
        return !!(exp_connect_flags2(exp) & OBD_CONNECT2_FLR);
 }
 
+static inline int exp_connect_lock_convert(struct obd_export *exp)
+{
+       return !!(exp_connect_flags2(exp) & OBD_CONNECT2_LOCK_CONVERT);
+}
+
 extern struct obd_export *class_conn2export(struct lustre_handle *conn);
 extern struct obd_device *class_conn2obd(struct lustre_handle *conn);