Hi:
On 2021/1/10 1:40, Matthew Wilcox wrote:
> On Sat, Jan 09, 2021 at 03:09:43AM -0500, Miaohe Lin wrote:
>> The cache->slots and cache->slots_ret is already checked before we try to
>> drain it. And kvfree can handle the NULL pointer itself. So remove the
>> NULL pointer check here.
>
>> @@ -178
On Sat, Jan 09, 2021 at 03:09:43AM -0500, Miaohe Lin wrote:
> The cache->slots and cache->slots_ret is already checked before we try to
> drain it. And kvfree can handle the NULL pointer itself. So remove the
> NULL pointer check here.
> @@ -178,7 +178,7 @@ static void drain_slots_cache_cpu(unsign
The cache->slots and cache->slots_ret is already checked before we try to
drain it. And kvfree can handle the NULL pointer itself. So remove the
NULL pointer check here.
Signed-off-by: Miaohe Lin
---
mm/swap_slots.c | 7 +++
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/mm/sw
3 matches
Mail list logo