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_release_page

Merge bio_release_page into the only remaining caller.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: Damien Le Moal <dlemoal@kernel.org>
Reviewed-by: Johannes Thumshirn <johannes.thumshirn@wdc.com>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
Tested-by: Anuj Gupta <anuj20.g@samsung.com>
Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>

authored by

Christoph Hellwig and committed by
Jens Axboe
301f5356 91b73c45

+3 -12
+3 -1
block/bio.c
··· 1195 1195 break; 1196 1196 } 1197 1197 1198 - bio_release_page(bio, bv->bv_page); 1198 + if (bio_flagged(bio, BIO_PAGE_PINNED)) 1199 + unpin_user_page(bv->bv_page); 1200 + 1199 1201 bio->bi_vcnt--; 1200 1202 nbytes -= bv->bv_len; 1201 1203 } while (nbytes);
-11
block/blk.h
··· 595 595 596 596 struct gendisk *__alloc_disk_node(struct request_queue *q, int node_id, 597 597 struct lock_class_key *lkclass); 598 - 599 - /* 600 - * Clean up a page appropriately, where the page may be pinned, may have a 601 - * ref taken on it or neither. 602 - */ 603 - static inline void bio_release_page(struct bio *bio, struct page *page) 604 - { 605 - if (bio_flagged(bio, BIO_PAGE_PINNED)) 606 - unpin_user_page(page); 607 - } 608 - 609 598 struct request_queue *blk_alloc_queue(struct queue_limits *lim, int node_id); 610 599 611 600 int disk_scan_partitions(struct gendisk *disk, blk_mode_t mode);