#define ldlm_set_cancel_on_block(_l) LDLM_SET_FLAG(( _l), 1ULL << 23)
#define ldlm_clear_cancel_on_block(_l) LDLM_CLEAR_FLAG((_l), 1ULL << 23)
-/** Flag whether a lock is enqueued from a distributed transaction, and the
- * requesting lock mode is PW/EX, if so, it will check compatibility with COS
- * locks, and different from original COS semantic, transactions from the same
- * client is also treated as lock conflict. */
-#define LDLM_FL_COS_INCOMPAT 0x0000000001000000ULL /* bit 24 */
-#define ldlm_is_cos_incompat(_l) LDLM_TEST_FLAG((_l), 1ULL << 24)
-#define ldlm_set_cos_incompat(_l) LDLM_SET_FLAG((_l), 1ULL << 24)
-#define ldlm_clear_cos_incompat(_l) LDLM_CLEAR_FLAG((_l), 1ULL << 24)
-
/*
* Flag indicates that lock is being converted (downgraded) during the blocking
* AST instead of cancelling. Used for IBITS locks now and drops conflicting
#define ldlm_clear_converting(_l) LDLM_CLEAR_FLAG((_l), 1ULL << 25)
/**
- * Part of original lockahead implementation, OBD_CONNECT_LOCKAHEAD_OLD.
- * Reserved temporarily to allow those implementations to keep working.
- * Will be removed after 2.12 release.
- * */
-#define LDLM_FL_LOCKAHEAD_OLD_RESERVED 0x0000000010000000ULL /* bit 28 */
-#define ldlm_is_do_not_expand_io(_l) LDLM_TEST_FLAG((_l), 1ULL << 28)
-#define ldlm_set_do_not_expand_io(_l) LDLM_SET_FLAG((_l), 1ULL << 28)
-#define ldlm_clear_do_not_expand_io(_l) LDLM_CLEAR_FLAG((_l), 1ULL << 28)
-
-/**
* Do not expand this lock. Grant it only on the extent requested.
* Used for manually requested locks from the client (LU_LADVISE_LOCKAHEAD).
* */
#define ldlm_set_destroyed(_l) LDLM_SET_FLAG(( _l), 1ULL << 50)
#define ldlm_clear_destroyed(_l) LDLM_CLEAR_FLAG((_l), 1ULL << 50)
-/** flag whether this is a server namespace lock */
-#define LDLM_FL_SERVER_LOCK 0x0008000000000000ULL // bit 51
-#define ldlm_is_server_lock(_l) LDLM_TEST_FLAG(( _l), 1ULL << 51)
-#define ldlm_set_server_lock(_l) LDLM_SET_FLAG(( _l), 1ULL << 51)
-#define ldlm_clear_server_lock(_l) LDLM_CLEAR_FLAG((_l), 1ULL << 51)
-
/**
* It's set in lock_res_and_lock() and unset in unlock_res_and_lock().
*
/** Flag whether a lock is found on server for re-sent RPC. */
#define LDLM_FL_RESENT 0x0100000000000000ULL // bit 56
-/** Flag whether Commit-on-Sharing is enabled, if LDLM_FL_COS_INCOMPAT is set
- * this flag may not be set because once the former is set this flag won't be
- * checked, and for cross-MDT lock COS_INCOMPAT is always set but ast handle is
- * in ldlm context which doesn't know whether COS is enabled or not. */
-#define LDLM_FL_COS_ENABLED 0x0200000000000000ULL /* bit 57 */
-#define ldlm_is_cos_enabled(_l) LDLM_TEST_FLAG((_l), 1ULL << 57)
-#define ldlm_set_cos_enabled(_l) LDLM_SET_FLAG((_l), 1ULL << 57)
-
/**
* This flags means to use non-delay RPC to send dlm request RPC.
*/
#define ldlm_is_ndelay(_l) LDLM_TEST_FLAG((_l), 1ULL << 58)
#define ldlm_set_ndelay(_l) LDLM_SET_FLAG((_l), 1ULL << 58)
+/**
+ * LVB from this lock is cached in osc object
+ */
+#define LDLM_FL_LVB_CACHED 0x0800000000000000ULL /* bit 59 */
+#define ldlm_is_lvb_cached(_l) LDLM_TEST_FLAG((_l), 1ULL << 59)
+#define ldlm_set_lvb_cached(_l) LDLM_SET_FLAG((_l), 1ULL << 59)
+#define ldlm_clear_lvb_cached(_l) LDLM_CLEAR_FLAG((_l), 1ULL << 59)
+
/** l_flags bits marked as "ast" bits */
#define LDLM_FL_AST_MASK (LDLM_FL_FLOCK_DEADLOCK |\
LDLM_FL_DISCARD_DATA)