summaryrefslogtreecommitdiffstats
path: root/fs/direct-io.c
diff options
context:
space:
mode:
authorJens Axboe2015-07-28 21:14:32 +0200
committerJens Axboe2015-07-29 16:55:25 +0200
commit2c68f6dc6e621153a708bef6c569805762da2020 (patch)
treef5232fa96a9049981479daf8e2d5818f70878a28 /fs/direct-io.c
parentblock: manipulate bio->bi_flags through helpers (diff)
downloadkernel-qcow2-linux-2c68f6dc6e621153a708bef6c569805762da2020.tar.gz
kernel-qcow2-linux-2c68f6dc6e621153a708bef6c569805762da2020.tar.xz
kernel-qcow2-linux-2c68f6dc6e621153a708bef6c569805762da2020.zip
block: shrink struct bio down to 2 cache lines again
Commit bcf2843b3f8f added ->bi_error to cleanup the error passing for struct bio, but that ended up adding 4 bytes and a 4 byte hole to the size of struct bio. For a clean config, that bumped it from 128 bytes, to 136 bytes, on x86-64. The ->bi_flags member is currently an unsigned long, but it fits easily within an int. Change it to an unsigned int, adjust the the pool offset code, and move ->bi_error into the new hole. Then we end up with a 128 byte bio again. Change the bio flag set/clear to use cmpxchg to ensure we don't lose any flags when manipulating them. Signed-off-by: Jens Axboe <axboe@fb.com>
Diffstat (limited to 'fs/direct-io.c')
0 files changed, 0 insertions, 0 deletions