|
|
| version 1.312, 2007/03/30 04:04:14 | version 1.313, 2007/04/16 06:06:47 |
|---|---|
| Line 62 | Line 62 |
| #include "xfs_quota.h" | #include "xfs_quota.h" |
| #include "quota/xfs_qm.h" | #include "quota/xfs_qm.h" |
| #include "xfs_iomap.h" | #include "xfs_iomap.h" |
| #include "xfs_buf.h" | |
| MODULE_AUTHOR("Silicon Graphics, Inc."); | MODULE_AUTHOR("Silicon Graphics, Inc."); |
| MODULE_DESCRIPTION("Additional kdb commands for debugging XFS"); | MODULE_DESCRIPTION("Additional kdb commands for debugging XFS"); |
| Line 2350 kdbm_bp(int argc, const char **argv) | Line 2351 kdbm_bp(int argc, const char **argv) |
| static int | static int |
| kdbm_bpdelay(int argc, const char **argv) | kdbm_bpdelay(int argc, const char **argv) |
| { | { |
| #ifdef DEBUG | struct list_head *xfs_buftarg_list = xfs_get_buftarg_list(); |
| extern struct list_head xfs_buftarg_list; | |
| struct list_head *curr, *next; | struct list_head *curr, *next; |
| xfs_buftarg_t *tp, *n; | xfs_buftarg_t *tp, *n; |
| xfs_buf_t bp; | xfs_buf_t bp; |
| Line 2372 kdbm_bpdelay(int argc, const char **argv | Line 2372 kdbm_bpdelay(int argc, const char **argv |
| } | } |
| list_for_each_entry_safe(tp, n, &xfs_buftarg_list, bt_list) { | list_for_each_entry_safe(tp, n, xfs_buftarg_list, bt_list) { |
| list_for_each_safe(curr, next, &tp->bt_delwrite_queue) { | list_for_each_safe(curr, next, &tp->bt_delwrite_queue) { |
| addr = (unsigned long)list_entry(curr, xfs_buf_t, b_list); | addr = (unsigned long)list_entry(curr, xfs_buf_t, b_list); |
| if ((diag = kdb_getarea(bp, addr))) | if ((diag = kdb_getarea(bp, addr))) |
| Line 2388 kdbm_bpdelay(int argc, const char **argv | Line 2388 kdbm_bpdelay(int argc, const char **argv |
| } | } |
| } | } |
| } | } |
| #else | |
| kdb_printf("bt_delwrite_queue inaccessible (non-debug)\n"); | |
| #endif | |
| return 0; | return 0; |
| } | } |