aboutsummaryrefslogtreecommitdiff
path: root/block/blk-merge.c
diff options
context:
space:
mode:
authorGravatar Ming Lei <ming.lei@redhat.com> 2019-03-17 18:01:08 +0800
committerGravatar Jens Axboe <axboe@kernel.dk> 2019-04-01 12:11:34 -0600
commit190470871ae28da7bdb3909f6124385c8472fc97 (patch)
tree6af7ea3cda825066245aedd136a40cd4a31b3c64 /block/blk-merge.c
parentblock: check if page is mergeable in one helper (diff)
downloadlinux-190470871ae28da7bdb3909f6124385c8472fc97.tar.gz
linux-190470871ae28da7bdb3909f6124385c8472fc97.tar.bz2
linux-190470871ae28da7bdb3909f6124385c8472fc97.zip
block: put the same page when adding it to bio
When the added page is merged to last same page in bio_add_pc_page(), the user may need to put this page for avoiding page leak. bio_map_user_iov() needs this kind of handling, and now it deals with it by itself in hack style. Moves the handling of put page into __bio_add_pc_page(), so bio_map_user_iov() may be simplified a bit, and maybe more users can benefit from this change. Cc: Omar Sandoval <osandov@fb.com> Cc: Christoph Hellwig <hch@lst.de> Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'block/blk-merge.c')
0 files changed, 0 insertions, 0 deletions