diff options
author | Richard Kennedy <richard@rsk.demon.co.uk> | 2008-12-03 14:41:40 +0300 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2008-12-29 10:28:44 +0300 |
commit | ba744d5e290055d171c68067259fcc1e2721f542 (patch) | |
tree | 0a242e1ceae3b4ddcac77592819c455c61ff5a24 /include/linux/bio.h | |
parent | 64d01dc9e1927e6535627d73f2336c75d1dd3fe2 (diff) | |
download | linux-ba744d5e290055d171c68067259fcc1e2721f542.tar.xz |
block: reorder struct bio to remove padding on 64bit
Remove 8 bytes of padding from struct bio which also removes 16 bytes from
struct bio_pair to make it 248 bytes. bio_pair then fits into one fewer
cache lines & into a smaller slab.
Signed-off-by: Richard Kennedy <richard@rsk.demon.co.uk>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'include/linux/bio.h')
-rw-r--r-- | include/linux/bio.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h index cf132bfbbacf..3ed714eb54d9 100644 --- a/include/linux/bio.h +++ b/include/linux/bio.h @@ -90,10 +90,11 @@ struct bio { unsigned int bi_comp_cpu; /* completion CPU */ + atomic_t bi_cnt; /* pin count */ + struct bio_vec *bi_io_vec; /* the actual vec list */ bio_end_io_t *bi_end_io; - atomic_t bi_cnt; /* pin count */ void *bi_private; #if defined(CONFIG_BLK_DEV_INTEGRITY) |