| From: Jiaqi Yan <jiaqiyan@google.com> |
| Subject: mm-memory-failure-userspace-controls-soft-offlining-pages-v5 |
| Date: Mon, 24 Jun 2024 16:33:46 +0000 |
| |
| update a comment in soft_offline_page() |
| |
| Link: https://lkml.kernel.org/r/20240624163348.1751454-3-jiaqiyan@google.com |
| Signed-off-by: Jiaqi Yan <jiaqiyan@google.com> |
| Acked-by: Miaohe Lin <linmiaohe@huawei.com> |
| Cc: David Rientjes <rientjes@google.com> |
| Cc: Frank van der Linden <fvdl@google.com> |
| Cc: Jane Chu <jane.chu@oracle.com> |
| Cc: Jonathan Corbet <corbet@lwn.net> |
| Cc: Muchun Song <muchun.song@linux.dev> |
| Cc: Naoya Horiguchi <nao.horiguchi@gmail.com> |
| Cc: Oscar Salvador <osalvador@suse.de> |
| Cc: Shuah Khan <shuah@kernel.org> |
| Cc: Andi Kleen <ak@linux.intel.com> |
| Signed-off-by: Andrew Morton <akpm@linux-foundation.org> |
| --- |
| |
| mm/memory-failure.c | 4 ++-- |
| 1 file changed, 2 insertions(+), 2 deletions(-) |
| |
| --- a/mm/memory-failure.c~mm-memory-failure-userspace-controls-soft-offlining-pages-v5 |
| +++ a/mm/memory-failure.c |
| @@ -2770,8 +2770,8 @@ static int soft_offline_in_use_page(stru |
| * @flags: flags. Same as memory_failure(). |
| * |
| * Returns 0 on success, |
| - * -EOPNOTSUPP for hwpoison_filter() filtered the error event, |
| - * -EOPNOTSUPP if disabled by /proc/sys/vm/enable_soft_offline, |
| + * -EOPNOTSUPP for hwpoison_filter() filtered the error event, or |
| + * disabled by /proc/sys/vm/enable_soft_offline, |
| * < 0 otherwise negated errno. |
| * |
| * Soft offline a page, by migration or invalidation, |
| _ |