summaryrefslogtreecommitdiff
path: root/mm/migrate.c
diff options
context:
space:
mode:
authorMatthew Wilcox (Oracle) <willy@infradead.org>2024-08-07 22:35:25 +0300
committerAndrew Morton <akpm@linux-foundation.org>2024-09-02 06:26:04 +0300
commit420e05d0de18df907ba1c5c077af69e6ae469c9a (patch)
tree7ca84eb796ab0e5df914f2b7a4be81d9a2eb7779 /mm/migrate.c
parent62e73fd85d7bf63f1dde2bbcc464fe67970f326f (diff)
downloadlinux-420e05d0de18df907ba1c5c077af69e6ae469c9a.tar.xz
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/migrate.c')
-rw-r--r--mm/migrate.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/mm/migrate.c b/mm/migrate.c
index e1383d9cc944..66a5f73ebfdf 100644
--- a/mm/migrate.c
+++ b/mm/migrate.c
@@ -586,8 +586,6 @@ void folio_migrate_flags(struct folio *newfolio, struct folio *folio)
{
int cpupid;
- if (folio_test_error(folio))
- folio_set_error(newfolio);
if (folio_test_referenced(folio))
folio_set_referenced(newfolio);
if (folio_test_uptodate(folio))