MAX_LOCKDEP_KEYS
struct lock_class lock_classes[MAX_LOCKDEP_KEYS];
DECLARE_BITMAP(lock_classes_in_use, MAX_LOCKDEP_KEYS);
static DEFINE_PER_CPU(struct lock_class_stats[MAX_LOCKDEP_KEYS], cpu_lock_stats);
BUILD_BUG_ON((MAX_LOCKDEP_KEYS-1) & CHAIN_BLK_FLAG);
return hlock_id & (MAX_LOCKDEP_KEYS - 1);
pr_info("... MAX_LOCKDEP_KEYS: %lu\n", MAX_LOCKDEP_KEYS);
extern struct lock_class lock_classes[MAX_LOCKDEP_KEYS];
unsigned long lock_class_ops[MAX_LOCKDEP_KEYS];
nr_lock_classes, MAX_LOCKDEP_KEYS);
struct lock_stat_data stats[MAX_LOCKDEP_KEYS];