* [PATCH 1/1] mm: fix mapping_set_error call in me_pagecache_dirty
@ 2017-03-05 13:20 Jeff Layton
0 siblings, 0 replies; only message in thread
From: Jeff Layton @ 2017-03-05 13:20 UTC (permalink / raw)
To: linux-mm; +Cc: linux-kernel
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.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
---
mm/memory-failure.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/memory-failure.c b/mm/memory-failure.c
index f283c7e0a2a3..f6512c953f9b 100644
--- a/mm/memory-failure.c
+++ b/mm/memory-failure.c
@@ -673,7 +673,7 @@ static int me_pagecache_dirty(struct page *p, unsigned long pfn)
* 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);
--
2.9.3
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2017-03-05 13:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-05 13:20 [PATCH 1/1] mm: fix mapping_set_error call in me_pagecache_dirty Jeff Layton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).