mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-17 20:54:10 +00:00
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>
This commit is contained in:
parent
2e82f6c3bf
commit
e4cc64657b
3 changed files with 1 additions and 5 deletions
|
@ -445,8 +445,6 @@ static inline void bio_release_page(struct bio *bio, struct page *page)
|
||||||
{
|
{
|
||||||
if (bio_flagged(bio, BIO_PAGE_PINNED))
|
if (bio_flagged(bio, BIO_PAGE_PINNED))
|
||||||
unpin_user_page(page);
|
unpin_user_page(page);
|
||||||
else if (bio_flagged(bio, BIO_PAGE_REFFED))
|
|
||||||
put_page(page);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
struct request_queue *blk_alloc_queue(int node_id);
|
struct request_queue *blk_alloc_queue(int node_id);
|
||||||
|
|
|
@ -492,8 +492,7 @@ void zero_fill_bio(struct bio *bio);
|
||||||
|
|
||||||
static inline void bio_release_pages(struct bio *bio, bool mark_dirty)
|
static inline void bio_release_pages(struct bio *bio, bool mark_dirty)
|
||||||
{
|
{
|
||||||
if (bio_flagged(bio, BIO_PAGE_REFFED) ||
|
if (bio_flagged(bio, BIO_PAGE_PINNED))
|
||||||
bio_flagged(bio, BIO_PAGE_PINNED))
|
|
||||||
__bio_release_pages(bio, mark_dirty);
|
__bio_release_pages(bio, mark_dirty);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -326,7 +326,6 @@ struct bio {
|
||||||
*/
|
*/
|
||||||
enum {
|
enum {
|
||||||
BIO_PAGE_PINNED, /* Unpin pages in bio_release_pages() */
|
BIO_PAGE_PINNED, /* Unpin pages in bio_release_pages() */
|
||||||
BIO_PAGE_REFFED, /* put pages in bio_release_pages() */
|
|
||||||
BIO_CLONED, /* doesn't own data */
|
BIO_CLONED, /* doesn't own data */
|
||||||
BIO_BOUNCED, /* bio is a bounce bio */
|
BIO_BOUNCED, /* bio is a bounce bio */
|
||||||
BIO_QUIET, /* Make BIO Quiet */
|
BIO_QUIET, /* Make BIO Quiet */
|
||||||
|
|
Loading…
Add table
Reference in a new issue