lkml.org 
[lkml]   [2018]   [Oct]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH -V6 06/21] swap: Support PMD swap mapping when splitting huge PMD
On Wed, Oct 10, 2018 at 03:19:09PM +0800, Huang Ying wrote:
> +#ifdef CONFIG_THP_SWAP
> +/*
> + * The corresponding page table shouldn't be changed under us, that
> + * is, the page table lock should be held.
> + */
> +int split_swap_cluster_map(swp_entry_t entry)
> +{
> + struct swap_info_struct *si;
> + struct swap_cluster_info *ci;
> + unsigned long offset = swp_offset(entry);
> +
> + VM_BUG_ON(!IS_ALIGNED(offset, SWAPFILE_CLUSTER));
> + si = _swap_info_get(entry);
> + if (!si)
> + return -EBUSY;

I think this return value doesn't get used anywhere?

\
 
 \ /
  Last update: 2018-10-24 19:26    [W:0.162 / U:0.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site