[PATCH] mm/madvise: Clean up MADV_SOFT_OFFLINE and MADV_HWPOISON

2017-04-10 Thread Anshuman Khandual
This cleans up handling MADV_SOFT_OFFLINE and MADV_HWPOISON called through madvise() system call. * madvise_memory_failure() was misleading to accommodate handling of both memory_failure() as well as soft_offline_page() functions. Basically it handles memory error injection from user space

[PATCH] mm/madvise: Clean up MADV_SOFT_OFFLINE and MADV_HWPOISON

2017-04-10 Thread Anshuman Khandual
This cleans up handling MADV_SOFT_OFFLINE and MADV_HWPOISON called through madvise() system call. * madvise_memory_failure() was misleading to accommodate handling of both memory_failure() as well as soft_offline_page() functions. Basically it handles memory error injection from user space