summaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2023-06-14 16:03:40 +0200
committerJens Axboe <axboe@kernel.dk>2023-06-16 10:08:09 -0600
commite4cc64657becbd073c3ecc9d5938a1fe0d59913f (patch)
tree2d47e97574d2182e8845381940af9cc2d9728f50 /block
parent2e82f6c3bfd1acde2610dd9feb4f2b264c4ef742 (diff)
downloadlinux-stable-e4cc64657becbd073c3ecc9d5938a1fe0d59913f.tar.gz
linux-stable-e4cc64657becbd073c3ecc9d5938a1fe0d59913f.tar.bz2
linux-stable-e4cc64657becbd073c3ecc9d5938a1fe0d59913f.zip
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>
Diffstat (limited to 'block')
-rw-r--r--block/blk.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/block/blk.h b/block/blk.h
index 768852a84fef..608c5dcc516b 100644
--- a/block/blk.h
+++ b/block/blk.h
@@ -445,8 +445,6 @@ static inline void bio_release_page(struct bio *bio, struct page *page)
{
if (bio_flagged(bio, BIO_PAGE_PINNED))
unpin_user_page(page);
- else if (bio_flagged(bio, BIO_PAGE_REFFED))
- put_page(page);
}
struct request_queue *blk_alloc_queue(int node_id);