Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1474223ybi; Sat, 27 Jul 2019 10:28:09 -0700 (PDT) X-Google-Smtp-Source: APXvYqzG6+IAvgUUKncOv+YoExk7W1Hjfb5BEnF3LYHf9g0gaXP0Io+9cop/PHs1LJ2O6ZXb0W9V X-Received: by 2002:a63:b20f:: with SMTP id x15mr99855566pge.453.1564248489002; Sat, 27 Jul 2019 10:28:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564248488; cv=none; d=google.com; s=arc-20160816; b=qkl1Yn/5eExni/z1MinqkFJ/o7cHTRFcTaRfY5JT5xNb+fc4bFXfhyhbpaO+Tr8QmA fsf/Db9aWD3Ihw5hZsUjGIzInWbuWhv5T7YXQTfDusQp5vur81zPDVXkDPu8CCjl/m7P TxQuNo2i+TuBzymFoGKZSjX/x4OLyxeW4qEj/Gt5fuf61KxqL/qU2OLWYIv83iYzFZtP RvSwfPsVKsuaUMMRMt/G2hIWw/IwN6rCfaHdNMGz+Mot2gFa76Nq/g5wyIkE/Bh9h05X iaPYY2XpOqPeo7g07mwg1f4HuVI1sA8akpK2nYRRCP8/453UpfmlW70nIVMgGnVOyNAp 132g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=GnqU0JRhrXBsiEdVfrpxRYhB+jhyBUboMzh3dp1tPvc=; b=RoXVvKloNG6mm6yzVCt6LAvt2wnFBhrEZiyfFbkCOrDieGQYkotSWOYUv1/jzQDpNp S69kw1Y9RQJYwZgzwzDkr/6wrMldKe84fK4GHJeYquQ69mdUZW0WQYSNzSGJEhCGyU/h dZYBnLTiPurza4CGl0NYHyfGE9uFEgg2CL/BzYGhb/zX7mnZm2VGypSH7Xvm2elLkuIe Rp52dapmsqv4WwzCOntYli7UjwQ2SxmZnof3vd+p1KQVFusP8XQk0tQ+p56luhPhcTdg sf8APFmEQZVd4YDargfmTnCxq2kwod5nVDcU1LTWyXUQUGQymP/+ySGTnUWmZUnlW13k iBaA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=t5kSA4pk; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r8si24452642pgr.243.2019.07.27.10.27.53; Sat, 27 Jul 2019 10:28:08 -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=pass header.i=@gmail.com header.s=20161025 header.b=t5kSA4pk; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387841AbfG0RZQ (ORCPT + 99 others); Sat, 27 Jul 2019 13:25:16 -0400 Received: from mail-ot1-f67.google.com ([209.85.210.67]:42939 "EHLO mail-ot1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387665AbfG0RZP (ORCPT ); Sat, 27 Jul 2019 13:25:15 -0400 Received: by mail-ot1-f67.google.com with SMTP id l15so58486421otn.9 for ; Sat, 27 Jul 2019 10:25:15 -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; bh=GnqU0JRhrXBsiEdVfrpxRYhB+jhyBUboMzh3dp1tPvc=; b=t5kSA4pkhco77TShAAaMPIl1DAEIo8hLSMUCCmpXXj9Z8l3AEbxPPtTPHlV27fOVCe +QJQV64yQyneiJ4QqJPMJz3diUQwGaL4/cpogzyHUCg0Sw1VfPAdf7kqhvMlLEZveam+ 7DsthIZxv3KZwo3AhW5msgxhNpyk+tXDIzqCHi2JE2v400wzBomRYOUxc+EhGPpTrFLM hPMyRRpACoOCg/4w0nvsFNxcp9eX0nTVgXYoCqc0bj25txMqcBi0X59HZZ4tV5F26AZY 1NDtFdARA+3mlYVIDc5P1pBt/GoLferKZo6H5ZRD+8DssJMi5hiMQP7iV4cWC6Z0GW7e 2JAw== 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; bh=GnqU0JRhrXBsiEdVfrpxRYhB+jhyBUboMzh3dp1tPvc=; b=WbtlVzRalnjgkoWQO06d4qwyS9oEidaD+BccU+XjrSY9Tisd6xGKmmo+CYNEUxA47w cy0evQ5gv/tEknsFqLQCLmYLofkzy2CYEs8kaFEs7IzW6CoD3USh1OkSdqKbpsaVLx6b lXGOjWmfQ5uPTf3Rw71SkyKh0FYgzf4nVyL7cV7WHZKvBBSHY+AWyGfL3t9LAaC40Daw j9anRsKnnW/0ZOKArN4qCt9pJqRdZa9QQVHwj5q3hpJwT4y+7rbDAF3nbWjkNB4Atqs7 4k95g4pxmiR6KZQKJk0cuBOnSGQuVLoWpHf8EK7zLZ77IDRlwI4fpP51yzt8GABTjuIl eIZA== X-Gm-Message-State: APjAAAWc6pIsXh7ud9V7LojM9z4LvUPg3IpSRMApomXl0AWoFVb3ri+U sgmQfNZ3gvg/Umn1ibdHQO1gqpf8oyjqJi8oNbg= X-Received: by 2002:a9d:460d:: with SMTP id y13mr53509367ote.368.1564248314917; Sat, 27 Jul 2019 10:25:14 -0700 (PDT) MIME-Version: 1.0 References: <20190725184253.21160-1-lpf.vector@gmail.com> <1564080768.11067.22.camel@lca.pw> <20190726071219.GC6142@dhcp22.suse.cz> In-Reply-To: <20190726071219.GC6142@dhcp22.suse.cz> From: Pengfei Li Date: Sun, 28 Jul 2019 01:25:02 +0800 Message-ID: Subject: Re: [PATCH 00/10] make "order" unsigned int To: Michal Hocko Cc: Qian Cai , Andrew Morton , Mel Gorman , vbabka@suse.cz, 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 Content-Type: text/plain; charset="UTF-8" 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 3:12 PM Michal Hocko wrote: > Thank you for your comments. > On Fri 26-07-19 07:48:36, Pengfei Li wrote: > [...] > > For the benefit, "order" may be negative, which is confusing and weird. > > order = -1 has a special meaning. > Yes. But I mean -1 can be replaced by any number greater than MAX_ORDER - 1 and there is no reason to be negative. > > There is no good reason not to do this since it can be avoided. > > "This is good because we can do it" doesn't really sound like a > convincing argument to me. I would understand if this reduced a > generated code, made an overall code readability much better or > something along those lines. Also we only use MAX_ORDER range of values > so I could argue that a smaller data type (e.g. short) should be > sufficient for this data type. > I resend an email to interpret the meaning of my commit, and I would be very grateful if you post some comments on this. > Please note that _any_ change, alebit seemingly small, can introduce a > subtle bug. Also each patch requires a man power to review so you have > to understand that "just because we can" is not a strong motivation for > people to spend their time on such a patch. Sincerely thank you, I will keep these in mind. > -- > Michal Hocko > SUSE Labs -- Pengfei