]> www.infradead.org Git - users/willy/linux.git/commit
iomap: Simplify iomap_do_writepage()
authorMatthew Wilcox (Oracle) <willy@infradead.org>
Tue, 2 Nov 2021 15:41:16 +0000 (11:41 -0400)
committerMatthew Wilcox (Oracle) <willy@infradead.org>
Thu, 9 Dec 2021 21:08:13 +0000 (16:08 -0500)
commit80a876bb434323e126e223c799695d57d8d0ac03
treeed02420461e01c3263224bc3fa4c50751838493c
parent066e9e9adfce9899781f56e467b7e0f994244e75
iomap: Simplify iomap_do_writepage()

Rename end_offset to end_pos and offset_into_page to poff to match the
rest of the file.  Simplify the handling of the last page straddling
i_size by doing the EOF check based on the byte granularity i_size
instead of converting to a pgoff prematurely.

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