block, fs: Restore the per-bio/request data lifetime fields
Restore support for passing data lifetime information from filesystems to block drivers. This patch reverts commit b179c98f ("block: Remove request.write_hint") and commit c75e707f ("block: remove the per-bio/request write hint"). This patch does not modify the size of struct bio because the new bi_write_hint member fills a hole in struct bio. pahole reports the following for struct bio on an x86_64 system with this patch applied: /* size: 112, cachelines: 2, members: 20 */ /* sum members: 110, holes: 1, sum holes: 2 */ /* last cacheline: 48 bytes */ Reviewed-by:Kanchan Joshi <joshi.k@samsung.com> Cc: Jens Axboe <axboe@kernel.dk> Cc: Christoph Hellwig <hch@lst.de> Signed-off-by:
Bart Van Assche <bvanassche@acm.org> Link: https://lore.kernel.org/r/20240202203926.2478590-7-bvanassche@acm.org Signed-off-by:
Christian Brauner <brauner@kernel.org>
Showing
- block/bio.c 2 additions, 0 deletionsblock/bio.c
- block/blk-crypto-fallback.c 1 addition, 0 deletionsblock/blk-crypto-fallback.c
- block/blk-merge.c 8 additions, 0 deletionsblock/blk-merge.c
- block/blk-mq.c 2 additions, 0 deletionsblock/blk-mq.c
- block/bounce.c 1 addition, 0 deletionsblock/bounce.c
- block/fops.c 3 additions, 0 deletionsblock/fops.c
- fs/buffer.c 8 additions, 4 deletionsfs/buffer.c
- fs/direct-io.c 2 additions, 0 deletionsfs/direct-io.c
- fs/iomap/buffered-io.c 1 addition, 0 deletionsfs/iomap/buffered-io.c
- fs/iomap/direct-io.c 1 addition, 0 deletionsfs/iomap/direct-io.c
- fs/mpage.c 1 addition, 0 deletionsfs/mpage.c
- include/linux/blk-mq.h 2 additions, 0 deletionsinclude/linux/blk-mq.h
- include/linux/blk_types.h 2 additions, 0 deletionsinclude/linux/blk_types.h
Please register or sign in to comment