[lkml]   [2020]   [Mar]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [Patch v2] mm/swap_slots.c: assign|reset cache slot by value directly
On 3/10/20 10:53 PM, Wei Yang wrote:
> Currently we use a tmp pointer, pentry, to transfer and reset swap cache
> slot, which is a little redundant. Swap cache slot stores the entry
> value directly, assign and reset it by value would be straight forward.
> Also this patch merges the else and if, since this is the only case we
> refill and repeat swap cache.
> Signed-off-by: Wei Yang <>
> CC: Tim Chen <>

Acked-by: Tim Chen <>

> ---
> v2: keep the reset step after use, but remove the tmp pointer
> ---

 \ /
  Last update: 2020-03-11 17:11    [W:0.025 / U:27.828 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site