Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp3071820imm; Sun, 3 Jun 2018 18:59:49 -0700 (PDT) X-Google-Smtp-Source: ADUXVKID/v6HZXh1bseOkmJ/zZ+QoeNHNwwsbKz7V7ksNQUN+vrqwpXmhdGuom8iI9xoSe1vRoqS X-Received: by 2002:a62:ec6:: with SMTP id 67-v6mr19491616pfo.36.1528077589079; Sun, 03 Jun 2018 18:59:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528077589; cv=none; d=google.com; s=arc-20160816; b=Ct1BodRbIoHnHoOibQ94aDegMSXRxLPvF+k1K6TjI9Xe/Od9YITTEm38pg/78HIsh5 QJGjJFGkQV+l+YdNMqx+LkYOkaMN3FVlJkpUUQTIvEEtJK57wJlJ6EfOP+CwhiDIFGkB WabH3Po2ACwWh7xiO8xeFtwiFW+hsVSxdIAgZnLg6qQYJXXMNndKDzlwt+/T6k74zXDQ wXMsuEstyCmFk3aWFzHwwwn6EAFuPQKVVUlcN+n7LhynZANusRuYnbUPB+O5HL9Ya9AQ uKZoXL0lXW50ja2NauhMQ1fJeXxojU6to7hLE6+I334wIWLk21jLfroH//n5v/tjEBWn o2nQ== 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 :arc-authentication-results; bh=LmToZHjzLtydmYo4M3e+vb2F8XeI6MIp91mQ0hoq7IE=; b=Q5hCqArqfRFQB32Itqq9QyOTooWmCqSKhH5SlXqiR26Qbvl7piDR3XCWrBiYeYO1SD klhEpjE7bf3ZPoxo70m1xQj8DX+EijVP9PizduQhdzQKFt7WCV9AXbWGeSD6nWwiLhci vlPKnA/+zQ40XHzowBU7S72q+GYmgY5uSJMgPpB5VkON52ghThEhcYwcwjNP5P8F6WAW BM+qQ30KSLJvxkkC0hhJY1QGZAXOP5bxeB+n1Y8GK8FqevTbiHEGSsSnlODYcBDjm8Fb 7YiB9vrp0SGmj8R/T7XwDannVW9EoVOOM3OLF2dshERbRPsq+8FCKjHufw2+7k/pPYD2 ng2g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=Sk8iZMuB; 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 5-v6si17931689pgb.430.2018.06.03.18.59.34; Sun, 03 Jun 2018 18:59:49 -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=Sk8iZMuB; 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 S1751603AbeFDB7J (ORCPT + 99 others); Sun, 3 Jun 2018 21:59:09 -0400 Received: from mail-lf0-f66.google.com ([209.85.215.66]:39693 "EHLO mail-lf0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751300AbeFDB7I (ORCPT ); Sun, 3 Jun 2018 21:59:08 -0400 Received: by mail-lf0-f66.google.com with SMTP id t134-v6so22640890lff.6 for ; Sun, 03 Jun 2018 18:59:07 -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=LmToZHjzLtydmYo4M3e+vb2F8XeI6MIp91mQ0hoq7IE=; b=Sk8iZMuB6Cp3y2CsnalzbIJHCEu8Og6fmaABf9L6wuCPAC2nwz29RJAmjr/3JLtlBV w34fkbiw26XpaIEZHyS+/Ajm0dl8lj0YCiIel+hvt9CE+9pauNe9Xa9ZDf9lnTQ35egf RRD7mT3tqrEF+FzwdcWPHWLnVajvJ/uUZMRCL5Aa5szVmLpwpR0vopuZoGfmjMM8axff i0/VRG5t6dLVUZRSK95gjWCISckQYeZQn7T/I7deG2m330aEHUdppDOI4bPID0TJKwb3 8OT0Vl7SO+MP0riXesHg6Vs6UwB96p4jz8lf0M8fYyY8QlCb8w9aIJFqq+q3qDNEMYRc eb+w== 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=LmToZHjzLtydmYo4M3e+vb2F8XeI6MIp91mQ0hoq7IE=; b=gsucUXCzKe27ZngCmvkeaG4Yrq2CCNRrm7Ix2EgVWHo4IJN12kLrPnT8imiHA0Y2M8 VxGK5v+Amyint4x5LbPljV9UVXE5OD73QdH147aHwCdbrQ2js/aTT/ynLhyzy1s9kVnZ UdSapSN6XrdqLLAtK2FIqJ8/YXG7FoynnGg38Su8wjoQPd9e8MO6Hbq0V4zHkx+vYMjJ p3MywiX7UB0aVUGR6QQAXgXzZEHueuS4ZdXPHVmgqbRIP51NDpmGvmRICmvwssfhx9A8 EAhUWrkO2o5IWAlmTzaeEuCUg3PtfgcmTwpP0TjWc7kyaWf9pB7ebnZR6jvku953N6Rl WkDQ== X-Gm-Message-State: ALKqPwdKHGXfZthh52rmoqDUYozas6V+23apWn9AMF+ppmpM3VZk+Ll1 UpjF0PhY8893mSytgi8qAQdTw6LkmE/IdVGxNlg= X-Received: by 2002:a19:1714:: with SMTP id n20-v6mr11272040lfi.54.1528077546924; Sun, 03 Jun 2018 18:59:06 -0700 (PDT) MIME-Version: 1.0 References: <1527940734-35161-1-git-send-email-ufo19890607@gmail.com> <1527940734-35161-2-git-send-email-ufo19890607@gmail.com> <20180603124941.GA29497@rapoport-lnx> In-Reply-To: <20180603124941.GA29497@rapoport-lnx> From: =?UTF-8?B?56a56Iif6ZSu?= Date: Mon, 4 Jun 2018 09:58:55 +0800 Message-ID: Subject: Re: [PATCH v7 2/2] Refactor part of the oom report in dump_header To: rppt@linux.vnet.ibm.com Cc: akpm@linux-foundation.org, mhocko@suse.com, rientjes@google.com, kirill.shutemov@linux.intel.com, aarcange@redhat.com, penguin-kernel@i-love.sakura.ne.jp, guro@fb.com, yang.s@alibaba-inc.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org, Wind Yu 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 Hi Mike > Please keep the brief description of the function actually brief and move the detailed explanation after the parameters description. Thanks for your advice. > The allocation constraint is detected by the dump_header() callers, why not just use it here? David suggest that constraint need to be printed in the oom report, so I add the enum variable in this function. Thanks Wind