Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp190806ybg; Tue, 9 Jun 2020 20:49:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhu/cOIg+DzZmCs7wnERU48BHTQ5dhyjNbpvMUrwqY50V/+fDVnQj6hIzmhHucKDUKZt+P X-Received: by 2002:aa7:c944:: with SMTP id h4mr764362edt.383.1591760989508; Tue, 09 Jun 2020 20:49:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591760989; cv=none; d=google.com; s=arc-20160816; b=ujjuPKTeddZVgXVscgRSY0l0r/Y9lLKOZbxI8Jqsj1Gv+HBAKrrr+pMVBnDpG75KXK cQtUPNpA5q51+VAJBdQjQHFxIVqYU4leZ+HaF9XJyZHQh1pMo89wfO7SoJAjz+IYUlmQ G9KADEPiOsliddgYXOFvQmaQo51VQk8ynGWXVQiSEJdB5NGv4gk4OErDI5iF8h9olkNA A6kl6SbNKb0iX8ADLcsgD8NqDUxIaSM72qvG17RkYfQ2WCTXJ71uJSQWn5TDW/P6zvvu 012XBZXFVyyrcLZAaMjBHDbS9gL/IbAjPEftvXwQwSrdxal3kymfgY31RnzwFNPCduNF 90gw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=QeqT5hbbPCXDLDKC00+0EjzExFkKZPk0Jl5kbDiCosU=; b=jP0mPlU/i9iIuP5dmRwtkPdE9lNG4ves/dg+2BYhLf2l4051kxRGD215xwce6n0y5t dQODJ0wPSvmC1n9oCOK7sgtaG7R25oaHTqvkANly7cz+2j+Y7tYL++Sjs09OVCbT2BcD 8/FTnqg38ySuXftEKEDXTcbzJmwe18pUl8Ts5+b5f3UYwm0qMs8s8jX+gH18dzAL6ZSU s/ERRinxMBfrk18nsPLSeMDK5Ttz5OhJtSqUBbUP0s8UtboApWD7C5jqLSpPDJq9pUdb zMHRK1a4uu7ta+Vm9ic08mEOrvSejhJhduH3A2KUkPoY0ibgWpjexR5jiauLzlOVhwh+ wPLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=igUkvz8X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y22si370320edw.321.2020.06.09.20.49.26; Tue, 09 Jun 2020 20:49:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=igUkvz8X; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726108AbgFJDpS (ORCPT + 99 others); Tue, 9 Jun 2020 23:45:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48728 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725999AbgFJDpS (ORCPT ); Tue, 9 Jun 2020 23:45:18 -0400 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF5CCC05BD1E for ; Tue, 9 Jun 2020 20:45:17 -0700 (PDT) Received: by mail-qt1-x844.google.com with SMTP id c12so700734qtq.11 for ; Tue, 09 Jun 2020 20:45:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=QeqT5hbbPCXDLDKC00+0EjzExFkKZPk0Jl5kbDiCosU=; b=igUkvz8X8Uk89MLtNxKGshq/2w56i97N+2FRmWU6ob9cC6gD0Q/A8wPlt9Y6QLTzNk 28pA7cT1NJjK0IpOTFQQt3PiUEsA0pixyRls3VBotHazk9h3LOJrDqCA/0KddxTj9T1Q UWdd6tC1gRSP9nG/0zWcrFwCbYONkEEWlM2WdFGjgOF61FrgtYH3JwHf8wzT+4kUTwny gCWJPuySZuxs0sBvOGhyAxh4XQqphUKgDMwoo6TtNfzRyxlX8cgtxylZsij2nNxC+fCn 26lmomuLRzY+E7/scdizf46PPHFXRST1MvGVqeSHzrxyn9bJPhSy6Fi0jGaDlk4UfRAs wXhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=QeqT5hbbPCXDLDKC00+0EjzExFkKZPk0Jl5kbDiCosU=; b=M1r7BBdbybzjPScWYyiN5ENldyn1qLADjzZuqkJXCQjAY0ZYm/+JPqVTeYSTZUoCjq //r4OOZX/xjfK/82/pdrYXqDrFyOJJVDRXVqh7G7EjiXOwlXf4xsBizXjzozZxirauZU 8ymwqZVp4mizkkAeWVmeJtCalpw1NcaO6sM8KNzAV7CVeDE2eg4C6J9YsO319g+Wrozd uDuxzYpiWOi4VNbmsiwMfhgR5TMWeCGlLo5X5aTcrjFEOzKTOHvlpxHIyWmQSnJSQ6Bw 6F9AzhfCaDhrsefxSHXfEh4kE1L7N8IuzWVEJTkecA3H2FfBKVWyDLzYB4S0zhn4iBKi OZ3Q== X-Gm-Message-State: AOAM532j3rSnym2RqsmgkeHR20nmYiDqM+9/gaeti1nZg6gSPl0krhwI 0AI92jBZSmAbflU9SUI2pgcFBxBCuddEDy6dbdE= X-Received: by 2002:ac8:70da:: with SMTP id g26mr1097273qtp.333.1591760717196; Tue, 09 Jun 2020 20:45:17 -0700 (PDT) MIME-Version: 1.0 References: <1590561903-13186-1-git-send-email-iamjoonsoo.kim@lge.com> <1590561903-13186-9-git-send-email-iamjoonsoo.kim@lge.com> <20200609140418.GJ22623@dhcp22.suse.cz> In-Reply-To: <20200609140418.GJ22623@dhcp22.suse.cz> From: Joonsoo Kim Date: Wed, 10 Jun 2020 12:45:03 +0900 Message-ID: Subject: Re: [PATCH v2 08/12] mm/migrate: change the interface of the migration target alloc/free functions To: Michal Hocko Cc: Andrew Morton , Linux Memory Management List , LKML , kernel-team@lge.com, Vlastimil Babka , Christoph Hellwig , Roman Gushchin , Mike Kravetz , Naoya Horiguchi , Joonsoo Kim Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2020=EB=85=84 6=EC=9B=94 9=EC=9D=BC (=ED=99=94) =EC=98=A4=ED=9B=84 11:04, M= ichal Hocko =EB=8B=98=EC=9D=B4 =EC=9E=91=EC=84=B1: > > On Wed 27-05-20 15:44:59, Joonsoo Kim wrote: > > From: Joonsoo Kim > > > > To prepare unifying duplicated functions in following patches, this pat= ch > > changes the interface of the migration target alloc/free functions. > > Functions now use struct alloc_control as an argument. > > It also pulls private argument into alloc_control and keeps it that way. > Wouldn't it be better to use explicit types and names in a union? Each > allocation callback has to understant the meaning anyway. I would > consider the resulting code cleaner that way. What do you think? Your suggestion sounds reasonable. Thanks. My plan is that, as Vlastimil suggested, I will keep the private argument i= n migration callback and use the appropriate private argument by the allocation caller. There will be no private field on alloc_control. Thanks.