]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
block: add a lower-level bio_add_page interface
authorChristoph Hellwig <hch@lst.de>
Tue, 9 Oct 2018 16:04:00 +0000 (18:04 +0200)
committerStefan Bader <stefan.bader@canonical.com>
Wed, 10 Oct 2018 08:32:40 +0000 (10:32 +0200)
commita5db5c8fa08b4bab5e9f41de5575adf753e4bb86
tree187ca89da9465f8f477d3b5b4ec07f8c56c43939
parent21f7cfa0d392d55f7c9e018c0a1a933b0bd855cd
block: add a lower-level bio_add_page interface

BugLink: https://bugs.launchpad.net/bugs/1796542
For the upcoming removal of buffer heads in XFS we need to keep track of
the number of outstanding writeback requests per page.  For this we need
to know if bio_add_page merged a region with the previous bvec or not.
Instead of adding additional arguments this refactors bio_add_page to
be implemented using three lower level helpers which users like XFS can
use directly if they care about the merge decisions.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jens Axboe <axboe@kernel.dk>
Reviewed-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
(cherry picked from commit 0aa69fd32a5f766e997ca8ab4723c5a1146efa8b)
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Stefan Bader <stefan.bader@canonical.com>
Acked-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
block/bio.c
include/linux/bio.h