]> www.infradead.org Git - users/willy/linux.git/commit
iomap: Simplify iomap_writepage_map()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 2 Nov 2021 14:51:55 +0000 (10:51 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Mon, 29 Nov 2021 13:30:52 +0000 (08:30 -0500)
commitd684e60cea4204552aa4e310c9cac67c709da8d9
tree18baac295357c54e6113607eb810f39407124fe4
parent5a40df078157b5bfe1647bcd7e7bbf8fd6d3a8b7
iomap: Simplify iomap_writepage_map()

Rename end_offset to end_pos and file_offset to pos to match the rest
of the file.  Simplify the loop by calculating nblocks up front instead
of each time around the loop.

Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Darrick J. Wong <djwong@kernel.org>
fs/iomap/buffered-io.c