]> 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, 25 Nov 2021 19:03:11 +0000 (14:03 -0500)
commit40cbd5e9abfea8e555049e997b73c7f1ff7cc71c
treedbab366aaedec443fcdec9f75aaf667d19ec452f
parent3de1202618901160b28bc1ac15663d9e42518d0e
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