]> 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>
Sat, 18 Dec 2021 05:06:08 +0000 (00:06 -0500)
commit81d4782a741b21c101eb368c120f65f7d624c219
treede7ba07ccf5d7e68ebfb90e7eb0fbd26a2708251
parent926550362d609bba6aa3f8cab99ae324adadc343
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