iomap: move the PF_MEMALLOC check to iomap_writepages
The iomap writepage implementation has been removed in commit 478af190 ("iomap: remove iomap_writepage") and this code is now only called through ->writepages which never happens from memory reclaim. Nove the check from iomap_do_writepage to iomap_writepages so that is only called once per ->writepage invocation. Signed-off-by:Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20231207072710.176093-5-hch@lst.de Signed-off-by:
Christian Brauner <brauner@kernel.org>
Loading
Please register or sign in to comment