diff options
| author | Christoph Hellwig <hch@lst.de> | 2024-02-15 07:36:39 +0100 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2024-02-23 17:48:35 -0800 |
| commit | 9810325854a31cdba9917674201616d748178161 (patch) | |
| tree | 6ba5ab349a924a5ac1d29dd608e9c694e4385bf9 /tools/perf/scripts/python/bin/task-analyzer-report | |
| parent | writeback: fix done_index when hitting the wbc->nr_to_write (diff) | |
| download | linux-9810325854a31cdba9917674201616d748178161.tar.gz linux-9810325854a31cdba9917674201616d748178161.zip | |
writeback: also update wbc->nr_to_write on writeback failure
When exiting write_cache_pages early due to a non-integrity write failure,
wbc->nr_to_write currently doesn't account for the folio we just failed to
write. This doesn't matter because the callers always ingore the value on
a failure, but moving the update to common code will allow to simplify the
code, so do it.
Link: https://lkml.kernel.org/r/20240215063649.2164017-5-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>
Acked-by: Dave Chinner <dchinner@redhat.com>
Cc: Christian Brauner <brauner@kernel.org>
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 'tools/perf/scripts/python/bin/task-analyzer-report')
0 files changed, 0 insertions, 0 deletions
