path: root/btt/inlines.h
diff options
authorAlan D. Brunelle <>2006-09-15 01:57:24 +0200
committerJens Axboe <>2006-09-15 01:57:24 +0200
commit97d13fb0f2a680668a79e64b7c71f93bd2664b0d (patch)
tree05a48886c246e8a0283f7ca14b5d258e86a7c952 /btt/inlines.h
parent5225e7882fcf560afe419c49e03d6fd1ead60eb1 (diff)
[PATCH] btt: Cleaned up patches for SEEK additions, DM, Q2A and seek fixes
Added changes to handle DM devices: - Used __pad field in struct blk_io_trace_remap to store from device, contains partition device information. Required modification in blkparse_fmt.c:process_default() to handle this change. - To better handle DM devices, noted that REMAP traces can refer to other REMAP traces, and thus added A_A and A_Q types (much like Q_A and Q_X) types. Signed-off-by: Jens Axboe <>
Diffstat (limited to 'btt/inlines.h')
1 files changed, 4 insertions, 0 deletions
diff --git a/btt/inlines.h b/btt/inlines.h
index 4b7f10e..6c7c640 100644
--- a/btt/inlines.h
+++ b/btt/inlines.h
@@ -111,6 +111,10 @@ static inline struct list_head *dip_get_head(struct d_info *dip,
static inline struct list_head *dip_get_head_dev(__u32 dev, enum iop_type type)
+ struct d_info *dip = __dip_find(dev);
+ if (!dip)
+ return NULL;
return dip_get_head(__dip_find(dev), type);