On 5/30/19 7:41 PM, Huang, Ying wrote:
> From: Huang Ying <ying.hu...@intel.com>
> 
> Mike reported the following warning messages
> 
>   get_swap_device: Bad swap file entry 1400000000000001
> 
> This is produced by
> 
> - total_swapcache_pages()
>   - get_swap_device()
> 
> Where get_swap_device() is used to check whether the swap device is
> valid and prevent it from being swapoff if so.  But get_swap_device()
> may produce warning message as above for some invalid swap devices.
> This is fixed via calling swp_swap_info() before get_swap_device() to
> filter out the swap devices that may cause warning messages.
> 
> Fixes: 6a946753dbe6 ("mm/swap_state.c: simplify total_swapcache_pages() with 
> get_swap_device()")
> Signed-off-by: "Huang, Ying" <ying.hu...@intel.com>

Thank you, this eliminates the messages for me:

Tested-by: Mike Kravetz <mike.krav...@oracle.com>

-- 
Mike Kravetz

Reply via email to