diff options
author | Paul Bolle <pebolle@tiscali.nl> | 2011-06-02 13:05:02 +0200 |
---|---|---|
committer | Jens Axboe <jaxboe@fusionio.com> | 2011-06-02 13:05:02 +0200 |
commit | e2bd9678fc0085acf540dc4cb48ff961cd4d88c0 (patch) | |
tree | 25fa9535761abdafa1f9de9fc86108d8b178cfef /block/blk-ioc.c | |
parent | 28304f485c3627cc5e1665b92e26eb7fcfe98088 (diff) | |
download | linux-stable-e2bd9678fc0085acf540dc4cb48ff961cd4d88c0.tar.gz linux-stable-e2bd9678fc0085acf540dc4cb48ff961cd4d88c0.tar.bz2 linux-stable-e2bd9678fc0085acf540dc4cb48ff961cd4d88c0.zip |
block: Use hlist_entry() for io_context.cic_list.first
list_entry() and hlist_entry() are both simply aliases for
container_of(), but since io_context.cic_list.first is an hlist_node one
should at least use the correct alias.
Signed-off-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
Diffstat (limited to 'block/blk-ioc.c')
-rw-r--r-- | block/blk-ioc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-ioc.c b/block/blk-ioc.c index c898049dafd5..342eae9b0d3c 100644 --- a/block/blk-ioc.c +++ b/block/blk-ioc.c @@ -21,7 +21,7 @@ static void cfq_dtor(struct io_context *ioc) if (!hlist_empty(&ioc->cic_list)) { struct cfq_io_context *cic; - cic = list_entry(ioc->cic_list.first, struct cfq_io_context, + cic = hlist_entry(ioc->cic_list.first, struct cfq_io_context, cic_list); cic->dtor(ioc); } @@ -57,7 +57,7 @@ static void cfq_exit(struct io_context *ioc) if (!hlist_empty(&ioc->cic_list)) { struct cfq_io_context *cic; - cic = list_entry(ioc->cic_list.first, struct cfq_io_context, + cic = hlist_entry(ioc->cic_list.first, struct cfq_io_context, cic_list); cic->exit(ioc); } |