Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

block: remove BIO_PAGE_REFFED

Now that all block direct I/O helpers use page pinning, this flag is
unused.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: David Howells <dhowells@redhat.com>
Link: https://lore.kernel.org/r/20230614140341.521331-4-hch@lst.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Hellwig and committed by
Jens Axboe
e4cc6465 2e82f6c3

+1 -5
-2
block/blk.h
··· 445 445 { 446 446 if (bio_flagged(bio, BIO_PAGE_PINNED)) 447 447 unpin_user_page(page); 448 - else if (bio_flagged(bio, BIO_PAGE_REFFED)) 449 - put_page(page); 450 448 } 451 449 452 450 struct request_queue *blk_alloc_queue(int node_id);
+1 -2
include/linux/bio.h
··· 492 492 493 493 static inline void bio_release_pages(struct bio *bio, bool mark_dirty) 494 494 { 495 - if (bio_flagged(bio, BIO_PAGE_REFFED) || 496 - bio_flagged(bio, BIO_PAGE_PINNED)) 495 + if (bio_flagged(bio, BIO_PAGE_PINNED)) 497 496 __bio_release_pages(bio, mark_dirty); 498 497 } 499 498
-1
include/linux/blk_types.h
··· 326 326 */ 327 327 enum { 328 328 BIO_PAGE_PINNED, /* Unpin pages in bio_release_pages() */ 329 - BIO_PAGE_REFFED, /* put pages in bio_release_pages() */ 330 329 BIO_CLONED, /* doesn't own data */ 331 330 BIO_BOUNCED, /* bio is a bounce bio */ 332 331 BIO_QUIET, /* Make BIO Quiet */