Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1496770rwb; Thu, 8 Dec 2022 11:22:37 -0800 (PST) X-Google-Smtp-Source: AA0mqf7tOvwmH5ZAtVwx0GLHffA3pg3BGSmga++Ib4K1Eetn9cJ/BvKG6h4q7JTl+PvIEL3GIJ1l X-Received: by 2002:a63:e104:0:b0:43c:756:eb71 with SMTP id z4-20020a63e104000000b0043c0756eb71mr66741014pgh.480.1670527357496; Thu, 08 Dec 2022 11:22:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1670527357; cv=none; d=google.com; s=arc-20160816; b=VUBpD0Rgw/lhCyZjllhjupIoyeymAWNjSQeELQS6cFaOy3038AMTOyJ6oq6qwCHW8A 9eTjUWoVKRjrFKxLNkUci1F6HkW+FRCww+/cw7Fu7Js0fr9WqUXKEd+qCkTO6WVbNwa7 DlTlKwPaQd7DYYrOxV3RUSkEwf3H16eGcD4WGFBrm2D46klVwPYjjymPE3KyB6h/F82l 7H96RERORCmVNsT4DR8O2xgRFBCS0q8k3Cy2tJSXpLqCJU9CblDfaalIlvgA8qUkeVkz Pe8ZX8QSOPtOyI330VeFucAw+7idtp88OtYSsRHcI4tvQSDM/yzxAowtDzpX/03HJn1I VByA== 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=0BpgFcTykCUCdNZRtCyOHoFGbH5EWy6ZB0yXQQsP7Ic=; b=il7e8s/sOEgbdXRcNGw/jn9GKqkzGES+P9o+J5tnylm12KgClKp5Wd/y0vzkcng4Oz MpWilkJQbjNuP6DpypEC3dvVdn0rX04WcHB0ZAwZTU/RvFbYKkjP5R+NlsP8KKhEsSSL ZD5OwBrvCqXQCEhOM+uZ/dkyV3CCq9Vnw2gvl1A68J9F+mY0NHNoXQlmoL0dhtM3GcyM DmeAM0vAqJ1f/uUGPXNuyIa/Du0tQpBVO0zlPhXimQHdgQi9UMl/iMk7Erxxi6THnRqj tI87gWKG8WlcQfMjr3Sgie/eYg7YaU1N+5/vHV7xXyZbencB6b/TpAoPke8SP0V1arLk nmHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=OizC4Mlp; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c14-20020a170902848e00b00188f3b1d0d0si15376626plo.376.2022.12.08.11.22.19; Thu, 08 Dec 2022 11:22:37 -0800 (PST) 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=@infradead.org header.s=casper.20170209 header.b=OizC4Mlp; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229976AbiLHTJQ (ORCPT + 72 others); Thu, 8 Dec 2022 14:09:16 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39526 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229892AbiLHTJN (ORCPT ); Thu, 8 Dec 2022 14:09:13 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0D3C2DBB for ; Thu, 8 Dec 2022 11:09:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=0BpgFcTykCUCdNZRtCyOHoFGbH5EWy6ZB0yXQQsP7Ic=; b=OizC4MlpzR1c9dp0FY5822u9OF rFkKvAgpEo31ALaS+ERQtjvTkTiSxS8d8Ub7gTgyY2RWqcYeHiDnz2xE83b6N/p4oyezjrb0cEATV X+JaX6SN7ZsDNpeKDlNtJI3XisP8L1yEuAPUCtAMlDnRrHBaC2FGeJ1Y2oH5NMJ6lR5CT6IF7Dmuu h44a7RzR0JOVWzwnljif3iKDT78hpcMgsyEP3AsKx0FlTJtPdKcDQoUN2wIt/C3TFKOGmJKbUE4zy BRiILkwLPxJnCYBsWx2E8/2ROLC8AYV9P2M0E8ODvwajIhlyk81AfMOhpGAld9+/sLkkyy5VGK5JO QtgckbEA==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1p3MGM-007ERl-AY; Thu, 08 Dec 2022 19:08:54 +0000 Date: Thu, 8 Dec 2022 19:08:54 +0000 From: Matthew Wilcox To: Kairui Song Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org, Andrew Morton , Miaohe Lin , David Hildenbrand , "Huang, Ying" , Hugh Dickins Subject: Re: [PATCH 3/5] swap: fold swap_ra_clamp_pfn into swap_ra_info Message-ID: References: <20221208180209.50845-1-ryncsn@gmail.com> <20221208180209.50845-4-ryncsn@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221208180209.50845-4-ryncsn@gmail.com> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE 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 Fri, Dec 09, 2022 at 02:02:07AM +0800, Kairui Song wrote: > From: Kairui Song > > This make the code cleaner. This helper is made of only two line of > self explanational code and not reused anywhere else. > > And this actually make the compiled object smaller by a bit: > > text data bss dec hex filename > Before: 9502 976 12 10490 28fa mm/swap_state.o > After: 9470 976 12 10458 28da mm/swap_state.o FYI, you can use scripts/bloat-o-meter to get a slightly more useful analysis of object code changes.