Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp33116rwb; Wed, 17 Aug 2022 22:06:41 -0700 (PDT) X-Google-Smtp-Source: AA6agR4/nGRRqGHBskq4QIsfpWlhbxIYYZJpYbQVaDMGcfazo9bxrffphQsNhwqeCOixyn3KUUH5 X-Received: by 2002:a17:907:7282:b0:730:ec0f:fd86 with SMTP id dt2-20020a170907728200b00730ec0ffd86mr807456ejc.134.1660799201692; Wed, 17 Aug 2022 22:06:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660799201; cv=none; d=google.com; s=arc-20160816; b=F2QGlUb3BgeTdDmTo2cQmsxtxCVaRQJLNz9C3q/f2T/dW2vL517hD4zVO5vZTn98G3 Uvcidx2/XK5zhoorQDKF613rS/qaTUqWAG3qbmD+z9SIRt90qsZ9sRRTLIkH3vMjPoIt HKJTmWWtW/xDFu6RHYr9gP9FF1uwohGCArN9pJLBpIjXRg0xWmO5zTZSgx5wIREgdIYA sSOk5Eur71yq5QjQw/IOSztz+13iNwPAJn1b3ZmGRkmfJ3Gux0CvmZYvUP8itIJigIGO 6bo4AAYN1Fkh9rUPaWixsv+vG2INHoYfBrG7TSMcZFdnameOQC0AuPb8NLkw5g2sw3S5 +pMQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=vBRqm9P3PucMWPQft7rdPQr1jzE78rWkm5My0QOmYqo=; b=WiofDZi+ikX4M2AUS9hsUAQCewJ/ukIYhJNVq5iXhnG+lSAD/DnY3f1Aq/zIIv83Y5 FVIoWjeE6VUYnHHH2obBKoWi5Xqo6wl41qJqk3bwvulXWHfVMfGOpFa6s+W0wzIqwNLY m7Vq+3EHjRwvhyMc+E34l4WATgeCiPh9V4/btuxq2EW4SyvlpJC3LoVeNpdZCyMOx2kb lnzkA2tzFCrlV+ejWJO4uonaPuf1kku00SX813lqWFOS+u3LBJ1ag0JBfgFdamJOiCo6 H1ujP+91qrTcCBVE0xrC2Yw+Nne43hpDi4z3rxwFUSs0no9enkwbAmUU31/aRPZ1VEGV ogrg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UCQPCkZx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i12-20020a170906250c00b0072ee50dd4e6si315884ejb.470.2022.08.17.22.05.55; Wed, 17 Aug 2022 22:06:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=UCQPCkZx; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S243461AbiHREld (ORCPT + 99 others); Thu, 18 Aug 2022 00:41:33 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42324 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243449AbiHREla (ORCPT ); Thu, 18 Aug 2022 00:41:30 -0400 Received: from mail-pg1-x52e.google.com (mail-pg1-x52e.google.com [IPv6:2607:f8b0:4864:20::52e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C3BA33204B for ; Wed, 17 Aug 2022 21:41:29 -0700 (PDT) Received: by mail-pg1-x52e.google.com with SMTP id s206so410146pgs.3 for ; Wed, 17 Aug 2022 21:41:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc; bh=vBRqm9P3PucMWPQft7rdPQr1jzE78rWkm5My0QOmYqo=; b=UCQPCkZxgSVgVfRvBD0lBiCJunMG+AZUrfKK6u3u6vnAu8eN28E04dT7SORQZDT/VM geGH1MvNA8tLwbmpRVGFoYKnjvPZwZC5qqcwyGIc9K4Qur/gDNaayEpYMhGFdnxYfWxF eQ/VY6GbHcM2BV3Zl1TwZFSNOAWDstV+t2e3HMxeSbbtAQYAAIC6gWlk8t7RX+H8MKWq AjuvHOKJO/KH9jqWv1uwDRKFw6yCvW/qsEjgb3Kcri68s4VYK664rvNBFtgAubzsUut+ QoD4UyyjK+RFDsMPOokQ2YSz4OnQ9a7r/9/G7bAil8/StmX0pYp8aLW5CnHvmbOSTxZN t+jA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc; bh=vBRqm9P3PucMWPQft7rdPQr1jzE78rWkm5My0QOmYqo=; b=E5FgGwWEL3hWSjWHiScmuFf2VqxjqPLanqu7QxOk9m3waMqiIcaEdvK24bC3/QtAyf NmGY+VUnBcFTjxMeu91Uytr5koT2SaGUzZTsQYnzVQm44XfHlU9hl8G1JabLBAjC/m5W 54Vx4h4ij26cWGllMcOZU2j4SK6cKK6jN+gue4CqbIbzi+QyVE/HOGdZhyrOMnd04rX3 5oHuGojdIe/J5H9bMP1hlnPDgcntEzDpivgLu25eGU/cR8LCF0CBoO9OxLlYNiA306dP YkyJElPeZruZczjLxa6YgOiyW8GoiSZlrUcAd8JW8OHlS3d6xDKC9b2jibAH53oAcdu9 QBsw== X-Gm-Message-State: ACgBeo385dSVbkER+WC7y2p2IjY4u0AjY6w1koo7Z0fax8LNJi04xTP0 7s+RqfhY1SZ8hZ4HMNfjXzM= X-Received: by 2002:a63:6b81:0:b0:41c:3a8c:b4fe with SMTP id g123-20020a636b81000000b0041c3a8cb4femr1186114pgc.84.1660797689286; Wed, 17 Aug 2022 21:41:29 -0700 (PDT) Received: from localhost ([2406:7400:63:e947:599c:6cd1:507f:801e]) by smtp.gmail.com with ESMTPSA id r12-20020aa7962c000000b0052e988c1630sm411044pfg.138.2022.08.17.21.41.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 17 Aug 2022 21:41:28 -0700 (PDT) Date: Thu, 18 Aug 2022 10:11:23 +0530 From: Ritesh Harjani To: Alexander Atanasov Cc: Michael Ellerman , Nicholas Piggin , Christophe Leroy , Nadav Amit , VMware PV-Drivers Reviewers , Arnd Bergmann , Greg Kroah-Hartman , "Michael S. Tsirkin" , David Hildenbrand , Jason Wang , Andrew Morton , kernel@openvz.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, virtualization@lists.linux-foundation.org, linux-mm@kvack.org Subject: Re: [PATCH v2 1/4] Make place for common balloon code Message-ID: <20220818044123.q5yzdaszcxl7mcl6@riteshh-domain> References: <20220816094117.3144881-1-alexander.atanasov@virtuozzo.com> <20220816094117.3144881-2-alexander.atanasov@virtuozzo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220816094117.3144881-2-alexander.atanasov@virtuozzo.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 22/08/16 12:41PM, Alexander Atanasov wrote: > File already contains code that is common along balloon > drivers so rename it to reflect its contents. > mm/balloon_compaction.c -> mm/balloon_common.c > > Signed-off-by: Alexander Atanasov > --- > MAINTAINERS | 4 ++-- > arch/powerpc/platforms/pseries/cmm.c | 2 +- > drivers/misc/vmw_balloon.c | 2 +- > drivers/virtio/virtio_balloon.c | 2 +- > include/linux/{balloon_compaction.h => balloon_common.h} | 2 +- > mm/Makefile | 2 +- > mm/{balloon_compaction.c => balloon_common.c} | 4 ++-- > mm/migrate.c | 2 +- > mm/vmscan.c | 2 +- I think we don't need balloon headers in above two files at all. I don't see any references of balloon functions in them. I guess this commit removed it - commit b1123ea6d3b3da25af5c8a9d843bd07ab63213f4 Author: Minchan Kim Date: Tue Jul 26 15:23:09 2016 -0700 mm: balloon: use general non-lru movable page feature Now, VM has a feature to migrate non-lru movable pages so balloon doesn't need custom migration hooks in migrate.c and compaction.c. Instead, this patch implements the page->mapping->a_ops-> {isolate|migrate|putback} functions. With that, we could remove hooks for ballooning in general migration functions and make balloon compaction simple. Since I don't often look into this side of code, it's better to confirm :) -ritesh