From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id DC0B8C433DF for ; Thu, 25 Jun 2020 12:08:37 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id A1BDB2076E for ; Thu, 25 Jun 2020 12:08:37 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A1BDB2076E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id 4728C6B000E; Thu, 25 Jun 2020 08:08:37 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 4246C6B002D; Thu, 25 Jun 2020 08:08:37 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 3398C8D0002; Thu, 25 Jun 2020 08:08:37 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0046.hostedemail.com [216.40.44.46]) by kanga.kvack.org (Postfix) with ESMTP id 185966B000E for ; Thu, 25 Jun 2020 08:08:37 -0400 (EDT) Received: from smtpin17.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay03.hostedemail.com (Postfix) with ESMTP id 7609D824556B for ; Thu, 25 Jun 2020 12:08:36 +0000 (UTC) X-FDA: 76967612232.17.push42_3707ed826e4c Received: from filter.hostedemail.com (10.5.16.251.rfc1918.com [10.5.16.251]) by smtpin17.hostedemail.com (Postfix) with ESMTP id 3DCBE180D0194 for ; Thu, 25 Jun 2020 12:08:33 +0000 (UTC) X-HE-Tag: push42_3707ed826e4c X-Filterd-Recvd-Size: 3100 Received: from mail-ej1-f66.google.com (mail-ej1-f66.google.com [209.85.218.66]) by imf43.hostedemail.com (Postfix) with ESMTP for ; Thu, 25 Jun 2020 12:08:32 +0000 (UTC) Received: by mail-ej1-f66.google.com with SMTP id rk21so5710561ejb.2 for ; Thu, 25 Jun 2020 05:08:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=UKCFODb5/EwXV72SoexoF57zFObV5cMgCmwfT5dAPbA=; b=n9cS5A7BpLii/oFqcYioSctyvaJPF/w57i9KDSkjZe+pR3xosDMPMkw5L/V/Uead3s MTrp0G2tTeHZiVoXDJCfRSkuvPWKK+y+pPP9sTZMLT5qG44gz2tKHzcYUf/vGBUnrCfQ D5KlULdbAjkWrB1Rc0JEFLV+CoXADPQ3UhXzOWYqh1DvAEOcBql6Ase6pDqGOodnqy2O 2XQh1wwoh4DALtUJSSPTpeOjsJqfbYjluQ3KW/rfXkdO7YOo2pQBh1b6K7U+XyV/h8SF jKjJfYHmLcOgTXEjj0ItYglNMnhJ3PYFbPtMq8/qXC59UqKnAACNRqRVJ/ZT83kr7zak 6Exg== X-Gm-Message-State: AOAM53215LIdkU09maP2lr8MCtGoe5mvvloc7Q7YB05AvTgezh/cFOu9 HAm5BIWHB3rsWYj/OH2/EaQ= X-Google-Smtp-Source: ABdhPJyIfSv0VZbZMw3M3h0u082IqoTwW1GoIrLB4k0XxcfIY0wyn5fnLFwQVwhzWD9F/bd4ew1YGA== X-Received: by 2002:a17:906:c672:: with SMTP id ew18mr30511084ejb.404.1593086911908; Thu, 25 Jun 2020 05:08:31 -0700 (PDT) Received: from localhost (ip-37-188-168-3.eurotel.cz. [37.188.168.3]) by smtp.gmail.com with ESMTPSA id v24sm3012701eja.29.2020.06.25.05.08.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 25 Jun 2020 05:08:31 -0700 (PDT) Date: Thu, 25 Jun 2020 14:08:30 +0200 From: Michal Hocko To: js1304@gmail.com Cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kernel-team@lge.com, Vlastimil Babka , Christoph Hellwig , Roman Gushchin , Mike Kravetz , Naoya Horiguchi , Joonsoo Kim Subject: Re: [PATCH v3 6/8] mm/gup: use a standard migration target allocation callback Message-ID: <20200625120830.GG1320@dhcp22.suse.cz> References: <1592892828-1934-1-git-send-email-iamjoonsoo.kim@lge.com> <1592892828-1934-7-git-send-email-iamjoonsoo.kim@lge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1592892828-1934-7-git-send-email-iamjoonsoo.kim@lge.com> X-Rspamd-Queue-Id: 3DCBE180D0194 X-Spamd-Result: default: False [0.00 / 100.00] X-Rspamd-Server: rspam04 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: On Tue 23-06-20 15:13:46, Joonsoo Kim wrote: > From: Joonsoo Kim > > There is a well-defined migration target allocation callback. > It's mostly similar with new_non_cma_page() except considering CMA pages. > > This patch adds a CMA consideration to the standard migration target > allocation callback and use it on gup.c. We already can express that by a missing __GFP_MOVABLE so I would rather not introduce a duplication in form of another flag. -- Michal Hocko SUSE Labs