Skip to contentSkip to conversation

mm-fix-mapping_set_error-call-in-me_pagecache_dirty.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jun 21, 2017

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: mm: fix mapping_set_error call in me_pagecache_dirty
has been removed from the -mm tree. Its filename was
mm-fix-mapping_set_error-call-in-me_pagecache_dirty.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Jeff Layton <[email protected]>
Subject: mm: fix mapping_set_error call in me_pagecache_dirty

The error code should be negative. Since this ends up in the default case anyway, this is harmless, but it's less confusing to negate it. Also, later patches will require a negative error code here.

---

 mm/memory-failure.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/memory-failure.c renamed from mm/memory-failure.c~mm-fix-mapping_set_error-call-in-me_pagecache_dirty +1 -1
diff -puN mm/memory-failure.c~mm-fix-mapping_set_error-call-in-me_pagecache_dirty mm/memory-failure.c
@@ -684,7 +684,7 @@ static int me_pagecache_dirty(struct pag
 		 * the first EIO, but we're not worse than other parts
 		 * of the kernel.
 		 */
-		mapping_set_error(mapping, EIO);
+		mapping_set_error(mapping, -EIO);
 	}
 
 	return me_pagecache_clean(p, pfn);

_

Patches currently in -mm which might be from [email protected] are