From: Richard Kennedy Date: Wed, 3 Dec 2008 11:41:40 +0000 (+0100) Subject: block: reorder struct bio to remove padding on 64bit X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ba744d5e290055d171c68067259fcc1e2721f542;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: Jens Axboe --- 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)