You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
lockdep: Add statistics info for max bfs queue depth
Add BFS statistics to the existing lockdep stats. Signed-off-by: Ming Lei <tom.leiming@gmail.com> Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl> LKML-Reference: <1246201486-7308-10-git-send-email-tom.leiming@gmail.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
@@ -138,6 +138,7 @@ extern atomic_t nr_find_usage_backwards_recursions;
|
||||
#endif
|
||||
|
||||
|
||||
extern unsigned int max_bfs_queue_depth;
|
||||
extern unsigned long nr_list_entries;
|
||||
extern struct lock_list list_entries[MAX_LOCKDEP_ENTRIES];
|
||||
extern unsigned long bfs_accessed[];
|
||||
@@ -191,7 +192,7 @@ static inline int __cq_dequeue(struct circular_queue *cq, unsigned long *elem)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int __cq_get_elem_count(struct circular_queue *cq)
|
||||
static inline unsigned int __cq_get_elem_count(struct circular_queue *cq)
|
||||
{
|
||||
return (cq->rear - cq->front)&(MAX_CIRCULAR_QUE_SIZE-1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user