diff options
author | 2024-08-07 20:35:25 +0100 | |
---|---|---|
committer | 2024-09-01 20:26:04 -0700 | |
commit | 420e05d0de18df907ba1c5c077af69e6ae469c9a (patch) | |
tree | 7ca84eb796ab0e5df914f2b7a4be81d9a2eb7779 /mm/filemap.c | |
parent | mm: kfence: print the elapsed time for allocated/freed track (diff) | |
download | linux-rng-420e05d0de18df907ba1c5c077af69e6ae469c9a.tar.xz linux-rng-420e05d0de18df907ba1c5c077af69e6ae469c9a.zip |
fs: remove calls to set and clear the folio error flag
Nobody checks the folio error flag any more, so we can stop setting and
clearing it. Also remove the documentation suggesting to not bother
setting the error bit.
Link: https://lkml.kernel.org/r/20240807193528.1865100-1-willy@infradead.org
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/filemap.c')
-rw-r--r-- | mm/filemap.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/mm/filemap.c b/mm/filemap.c index 4130be74f6fd..7665f2398d45 100644 --- a/mm/filemap.c +++ b/mm/filemap.c @@ -530,7 +530,6 @@ static void __filemap_fdatawait_range(struct address_space *mapping, struct folio *folio = fbatch.folios[i]; folio_wait_writeback(folio); - folio_clear_error(folio); } folio_batch_release(&fbatch); cond_resched(); @@ -2342,13 +2341,6 @@ static int filemap_read_folio(struct file *file, filler_t filler, unsigned long pflags; int error; - /* - * A previous I/O error may have been due to temporary failures, - * eg. multipath errors. PG_error will be set again if read_folio - * fails. - */ - folio_clear_error(folio); - /* Start the actual read. The read will unlock the page. */ if (unlikely(workingset)) psi_memstall_enter(&pflags); |