Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp215369ybt; Thu, 9 Jul 2020 20:26:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxkHVjGwpoKEzyX0mtuuAxt67FvB0ZZ4qIO/v7HOKSoes0ue7Hr1wxk2gA9yj8FShjhHTf4 X-Received: by 2002:a50:e047:: with SMTP id g7mr73699842edl.290.1594351618736; Thu, 09 Jul 2020 20:26:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594351618; cv=none; d=google.com; s=arc-20160816; b=JkVxq3NSgM/K1zCj0F6DgRvPDux3Ni8AWwKIr2z68kBwmRvRnafrafTJPVsDxEUUNY 09HQEZbV1XXGO+PUfGpfV9C4iRpP5/b5OQHyc+ofCK+rtNnUhKd/P3KwAV0qTtMA7DTj z1NyN5LWuXRYHb0KGlSsb7vToM2exfFpBsDkLc1hdU4kVMPj9DZo9Lv9L0UYxF6Ai82G AiuyuaRFkkqHQfW4XrlUu4mywojMyPZBNcuN0kch9UWFRWqF7Boe1DBuxB1AXLe9sF4Y YOkawkPTdm4lioxfwBLf128ndynyEhut0ZfKwlkhBwDsLj3KbohiexlA1DQBnW7+/Y+e Aaig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=eFy7G8MFh5j0dWXgNTfhYT55Z/WQldbqa04KvJF1NIk=; b=CMcjcdKDYfQ/QuY836WtKiuDkieuJxdBjIAa7brkcolVd+Bzt1wbFNzLmxdT/4Uf3L Otj3OPnTeYMU8Nt0MkoOV2zYB4jxxAiKQ+bVDvKjD5mk8/P6WtnXpurPwrUXsNyrRbzT rGgtG8fYEp/BVWjafz/x2J0TJ82o+k9KhLRa7wp5GRkP1l1RX/+yT7VUfN2wT4TeOQfI y8ZdCuDECIWe/WNqB5YzW9aeXvEj9YVWUiA28RTcaYaLv6TduY2PsAvDT+CHKRy3H72U Pt/BJD4ECam5cWFTcp6n1aTI0kBIGCID+FZhHpl2jwKEqx66K6C46mB6iknNZShscch8 1Igg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=QK7mXTa+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id mj26si3155687ejb.416.2020.07.09.20.26.35; Thu, 09 Jul 2020 20:26:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=QK7mXTa+; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726832AbgGJD0H (ORCPT + 99 others); Thu, 9 Jul 2020 23:26:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726495AbgGJD0G (ORCPT ); Thu, 9 Jul 2020 23:26:06 -0400 Received: from mail-qv1-xf2c.google.com (mail-qv1-xf2c.google.com [IPv6:2607:f8b0:4864:20::f2c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F243C08C5CE for ; Thu, 9 Jul 2020 20:26:06 -0700 (PDT) Received: by mail-qv1-xf2c.google.com with SMTP id t11so1987249qvk.1 for ; Thu, 09 Jul 2020 20:26:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=eFy7G8MFh5j0dWXgNTfhYT55Z/WQldbqa04KvJF1NIk=; b=QK7mXTa+VJP3XCY/WLX/zRxgMT0Ii7iOBVxRxjXH1puvNbSdonlAYLgfylTKR/h69b ZS0KjOAejKEYw9VVZWy1xRSR2L+6xIdQiUbEK+8GwTUvf/qTyxPPgj5+eV9bgQoDoGe+ hzJb4L62Ysd18Fam+KcjOm8SxE3S3qqRinec+dFfiJhZp0QbSj6PdaYyQZibjI637Aad e0MrJaRDenfU0H4k4Vf7RqoGSILBdjSfSkTW+rWdY0c/fT9sBh/ZpaSTZNUr5RVpSzrI gzF6w0XY6tjfvLbU3qopm4SdEiOpVDuMtYLzJ9N4JY1331WI0Zfefknn3QrRDvwulK0H kpZQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=eFy7G8MFh5j0dWXgNTfhYT55Z/WQldbqa04KvJF1NIk=; b=PN1mOnFbXkUWdXkd60ZE/wzWDs375Gxiod9D6lhAYpIdc0/ebTKzvxKCwYDBNdVKC/ NOJ3GuZhgYmiwJkX/AW4V8CNwzadqqNSLwBb+HwtahCCjVKF9Sk0SNzGMCsy+GpF5mpI phXpMWdNDStQ4eg/x0V2wN9+/KoOQyQKlEUaGP1LaFDqOhjnXz1eyOkax6NIW0YdnL3e /iHtRgq3he4zgmX4O0ZW/w+eTIf7o1czCe+CtWrD7P9+HdHeCCb2N4f64TtRKMjwFCRo PGR4gylqvwCByZx6sVPCyxILobfJu+pdZws1a+Mv3ntdQETMJ6hzrHRUUhTlQLOJasv8 8C5g== X-Gm-Message-State: AOAM532T849w/1dFGxSpzzBpk9xr3fMxNFRezegTEBKT6DDtsiGc4n3i qMUjFEThD7mgFjAu628NKgIV8w== X-Received: by 2002:a0c:bd88:: with SMTP id n8mr67662598qvg.194.1594351563883; Thu, 09 Jul 2020 20:26:03 -0700 (PDT) Received: from [192.168.1.183] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id u20sm6442583qtj.39.2020.07.09.20.26.03 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 09 Jul 2020 20:26:03 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Qian Cai Mime-Version: 1.0 (1.0) Subject: Re: [mm] 4e2c82a409: ltp.overcommit_memory01.fail Date: Thu, 9 Jul 2020 23:26:02 -0400 Message-Id: <6F39E573-C325-4D94-ABBE-E869E146B05E@lca.pw> References: <20200710013852.GB81727@shbuild999.sh.intel.com> Cc: "Huang, Ying" , Andi Kleen , Andrew Morton , Michal Hocko , Dennis Zhou , Tejun Heo , Christoph Lameter , kernel test robot , Johannes Weiner , Matthew Wilcox , Mel Gorman , Kees Cook , Luis Chamberlain , Iurii Zaikin , tim.c.chen@intel.com, dave.hansen@intel.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, lkp@lists.01.org In-Reply-To: <20200710013852.GB81727@shbuild999.sh.intel.com> To: Feng Tang X-Mailer: iPhone Mail (17F80) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Jul 9, 2020, at 9:38 PM, Feng Tang wrote: >=20 > Give it a second thought, my previous way has more indents and lines, > but it is easier to be understood that we have special handling for > 'write' case. So I would prefer using it.=20 >=20 > Thoughts? I don=E2=80=99t feel it is easier to understand. I generally prefer to bail o= ut early if possible to also make code a bit more solid for future extension= s (once the indentation reached 3+ levels, we will need to rework it). But, I realize that I have spent too much time debugging than actually writi= ng code those days, so my taste is probably not all that good. Thus, feel fr= ee to submit what style you prefer, so other people have more experience cod= ing could review them more.=