]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
block: refactor get_contig_folio_len
authorChristoph Hellwig <hch@lst.de>
Mon, 26 Jan 2026 05:53:33 +0000 (06:53 +0100)
committerJens Axboe <axboe@kernel.dk>
Wed, 28 Jan 2026 12:16:39 +0000 (05:16 -0700)
commit4d77007d42fd4f44c2f5a1555603df53e16a1362
tree515fc61766c4d1388bb4374350fd9671d1a01585
parentfa0bdd45d7e3703826ea75f5fe3359865d75c319
block: refactor get_contig_folio_len

Move all of the logic to find the contigous length inside a folio into
get_contig_folio_len instead of keeping some of it in the caller.

Signed-off-by: Christoph Hellwig <hch@lst.de>
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>
Reviewed-by: Anuj Gupta <anuj20.g@samsung.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c