aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/writeback.h
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-02-15 07:36:41 +0100
committerAndrew Morton <akpm@linux-foundation.org>2024-02-23 17:48:36 -0800
commitf946e0d22e22813ef78af000486d1d7332cf14e4 (patch)
tree74719a53de6ae5bf41770205450ca185e519ef53 /include/linux/writeback.h
parentwriteback: only update ->writeback_index for range_cyclic writeback (diff)
downloadlinux-rng-f946e0d22e22813ef78af000486d1d7332cf14e4.tar.xz
linux-rng-f946e0d22e22813ef78af000486d1d7332cf14e4.zip
writeback: rework the loop termination condition in write_cache_pages
Rework the way we deal with the cleanup after the writepage call. First handle the magic AOP_WRITEPAGE_ACTIVATE separately from real error returns to get it out of the way of the actual error handling path. The split the handling on intgrity vs non-integrity branches first, and return early using a goto for the non-ingegrity early loop condition to remove the need for the done and done_index local variables, and for assigning the error to ret when we can just return error directly. Link: https://lkml.kernel.org/r/20240215063649.2164017-7-hch@lst.de Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Brian Foster <bfoster@redhat.com> Reviewed-by: Jan Kara <jack@suse.cz> Cc: Christian Brauner <brauner@kernel.org> Cc: Dave Chinner <dchinner@redhat.com> Cc: David Howells <dhowells@redhat.com> Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/writeback.h')
0 files changed, 0 insertions, 0 deletions