Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11211301ybi; Thu, 25 Jul 2019 11:59:45 -0700 (PDT) X-Google-Smtp-Source: APXvYqz5uFtDNTJJ4En7PQ67x4SP+po2yE1JRJA8B5RQJnXji1kDGYRbDjiZPutbgDIh/gMUgNft X-Received: by 2002:a65:5183:: with SMTP id h3mr87406965pgq.250.1564081185729; Thu, 25 Jul 2019 11:59:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564081185; cv=none; d=google.com; s=arc-20160816; b=lh/dPrRWU2g/CIqFy4V8yblJCx3uCez2rxilAQe1BbB3207av+YsPF9AxyyYbby24i E2k/0fl6azrrDjuKUYrAL2H7N8mu0549eoWTijcw8oF0C5bihkoj+j4HaVfx5+C1mmZF 1zFoVH8UWk8knJW5vD6VlSU72FfKP6ZThxFvV2+/Be0eoxmdIdU3ZBxns4Qqhgf4rvVO KKA8747PZ3eDiRClAIAy2B9ZHijeJvGxDexNm6QkEovTbM8D4zljYI2YBl6ci/9xnidN yM7oPQPy2mAI0usoUUSppzxLMgOtAVn8CUUlJYD23bRI8PgffJs9ew9YjqmA3kUjoIDS a8rQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=uM1m72nodYHDEUlSsjslsPY2INrx+IqGO9Kqpg6MkME=; b=G+WICjjjb6spQ/Ngz/PeI0TaE7izuS9JL8ssgyt+ATLq1+S5YBHtvVsP4XMLKEdDdK J49Ic7yBIgnu8NDZHugUNZaPm5drzZ0azQ/Ob1jqJrBhDiiSI9FPnBDhosXJ8FJl082G T9Zv7NIhePsMqq8bz0YorsKSV8qxp/8c5J7Pk4xR2uMAWWmVkwmo4T5qXuxAP86oCwg4 6XIEz0gq1i3SIdUbSTV8PqRVuMS1VGt/ZEUSGJVJdNO2nVy2N5RVVcssELlBrfa16EVN kxGUE8IvUKWT+Wli2qDHlpUX6tFWGnnSDG/58OQovmlFjtWvD+Rjj3EOcWp98A/FFBED zwtA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="lopY/BRo"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id bh8si16404542plb.175.2019.07.25.11.59.30; Thu, 25 Jul 2019 11:59:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b="lopY/BRo"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726567AbfGYS6n (ORCPT + 99 others); Thu, 25 Jul 2019 14:58:43 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:53904 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726065AbfGYS6l (ORCPT ); Thu, 25 Jul 2019 14:58:41 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.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:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=uM1m72nodYHDEUlSsjslsPY2INrx+IqGO9Kqpg6MkME=; b=lopY/BRo9oAHx6/JdfjuDyu9Z RMbXMxg4xB9JD+NYF+mRAUKmgCXsDuWmLIj3Hogbw28fXWoV4lzj2niNe8BIFE7DXuibFeiN0cdBE UCfcTVOUloizBGEhRd1Ng4REhVzIeqKYOlKicz1HOKsdZL/wPDBxAtvww+zKrNc1vKtihZZxKhmJu 1jWKI7WPrnq43+9RYoGp9ZLcwucz40YhAeSEbJZjaWlbWXQhqXWIbUfFKCUTxy4HDN2J5a4HKBcTW VZMHVSESwIGnKO9XWRap/PffQi54zOUHP+U4G0juZqRkC6p98l/DBV8JDhUC+Vi4/Q2jIvmvsMRf+ Up7EnRc7Q==; Received: from willy by bombadil.infradead.org with local (Exim 4.92 #3 (Red Hat Linux)) id 1hqiwC-0007WD-Ug; Thu, 25 Jul 2019 18:58:01 +0000 Date: Thu, 25 Jul 2019 11:58:00 -0700 From: Matthew Wilcox To: Pengfei Li Cc: akpm@linux-foundation.org, mgorman@techsingularity.net, mhocko@suse.com, vbabka@suse.cz, cai@lca.pw, aryabinin@virtuozzo.com, osalvador@suse.de, rostedt@goodmis.org, mingo@redhat.com, pavel.tatashin@microsoft.com, rppt@linux.ibm.com, linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH 01/10] mm/page_alloc: use unsigned int for "order" in should_compact_retry() Message-ID: <20190725185800.GC30641@bombadil.infradead.org> References: <20190725184253.21160-1-lpf.vector@gmail.com> <20190725184253.21160-2-lpf.vector@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190725184253.21160-2-lpf.vector@gmail.com> User-Agent: Mutt/1.11.4 (2019-03-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 26, 2019 at 02:42:44AM +0800, Pengfei Li wrote: > static inline bool > -should_compact_retry(struct alloc_context *ac, int order, int alloc_flags, > - enum compact_result compact_result, > - enum compact_priority *compact_priority, > - int *compaction_retries) > +should_compact_retry(struct alloc_context *ac, unsigned int order, > + int alloc_flags, enum compact_result compact_result, > + enum compact_priority *compact_priority, int *compaction_retries) > { > int max_retries = MAX_COMPACT_RETRIES; One tab here is insufficient indentation. It should be at least two. Some parts of the kernel insist on lining up arguments with the opening parenthesis of the function; I don't know if mm really obeys this rule, but you're indenting function arguments to the same level as the opening variables of the function, which is confusing.