]> git.baikalelectronics.ru Git - kernel.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>
Sat, 18 Dec 2021 05:06:08 +0000 (00:06 -0500)
commitb80e2971bf1f731156195d7f31303e0b8dc8c00e
tree2e9940e957795e7cff0d0ec762fd82075b1faf2a
parentd77cf173ff533181abbd800efdcf069fc73a7aea
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