Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp2243796pxu; Fri, 9 Oct 2020 11:27:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzpRIlkF8NI3B10A2LWh4/Qqozl5NiX4K4jZJCdamkB9+qwtBmgDPeG6PcmXbCc5ygvPm/Y X-Received: by 2002:a17:906:1953:: with SMTP id b19mr16242584eje.252.1602268021397; Fri, 09 Oct 2020 11:27:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602268021; cv=none; d=google.com; s=arc-20160816; b=H8WajfNyfZkXd9aWi1uH0RCgu0gdjDA+2KCiku928tQR9TwSGFUm1A2UqzSrmi8b9i +zZ68E4rcnAeSdMUC0Db3e7t7OiTUusc5o9EJ41OFawhMEgWLnC1j1vrlE30ZafqE7q9 O7Jpvk3d+JxtuKtKGBdMCOEcWsZXjfHSt01lWFdGLwWPYpL9Oc549Dos3SGKCd+YRb55 eobXVyP3ik9tm3/OSr07cDKLwbANMcQKVg/yE22/L/wRdjPlCML3yU97nr26r4VACnHN cZlinj8yjtLicSegUZ+RySFXTB7MYbq/7lPgW9i+DUiw8ip9QJWEpo+o993fqT3vC2Rc /bvA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=FC42SUkcezRphfcD8WLweSfGw44RXCucv/pNfOMEb2U=; b=w13v681ahXogTl4vHs5QcVIYnx0h14otn84lHElSJeJAaCf36omSpZQ6DJdmAIcSJA PuHMDCN203Y0SLJZOsRlJ8JcTHaBfL4B6W5cTtIGjbCTSBcHUcQzMbhA1xYBfbI95LFc H6K7QaFSVN/NYHtRgfyWkxIGlEJAhoLl6ZDljbrsvDPeYIb4DNIitLK7WJX588eLkj9O WFNf8y2+wpoRSLAXwWYhSGTvIk/gHIyylLouScEXl9sQVnzvivXgDCUNNw6ySdd1Y9M3 efF9Gn3pmCs26BL3O2tI4ui88waz3q8mqlyVk43e6eNDdqrda0ttmZaEZZjOSFwrNb1O nLLg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=RQ2sYXBa; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id rk21si6446717ejb.244.2020.10.09.11.26.36; Fri, 09 Oct 2020 11:27:01 -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=@gmail.com header.s=20161025 header.b=RQ2sYXBa; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2388218AbgJILtN (ORCPT + 99 others); Fri, 9 Oct 2020 07:49:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56778 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388164AbgJILtN (ORCPT ); Fri, 9 Oct 2020 07:49:13 -0400 Received: from mail-ot1-x342.google.com (mail-ot1-x342.google.com [IPv6:2607:f8b0:4864:20::342]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E520DC0613D2; Fri, 9 Oct 2020 04:49:12 -0700 (PDT) Received: by mail-ot1-x342.google.com with SMTP id s66so8734634otb.2; Fri, 09 Oct 2020 04:49:12 -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=FC42SUkcezRphfcD8WLweSfGw44RXCucv/pNfOMEb2U=; b=RQ2sYXBaSgqVdgJSTEM1/zK3srNGSSiELmYM8/efK8uXnyUtSJRXIG6ZL7+KR08Kl9 MHeWHnWGABdcnBzxukCPPQBAfWQo981nSeYjoGEox1rARpa3Zm2ZaZlZfRbhZtyXUWr8 ICuLeEVuyK8gVfxXFfIp/hlhySENB80dFoHRxo0iNVAXdJPx7ETTgEUPxWKo7azIHFAG Z0n2ln5PGy1qjzpesazITQSoLu2Cwd+pdiYiGmPOmKdVrw3uohHOnWkEe5IZS2fVamwK 9FVOOWcqkDiKTeXGtg+pNqsX5Bfax73gC0n+v15J19VC0jofnoCCwTgqhcTggHNo7WqU el/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=FC42SUkcezRphfcD8WLweSfGw44RXCucv/pNfOMEb2U=; b=bMutn07em9EX6IIy94dILwuqX7mWiAR6t9End4OzQE4yCxKVzpwbuxJkHfm7iE2TB1 n3xAcq+iJDopVzK3x842d4pG8vzvu6zhkN+Q80QD7soEKu4CWIdT8TEBa4Y8FHT44Pph p+/KhnhMGgb18Hh2quC4e+J5aFWGHU69q7/opbp3YSk1+IHzMVUTNKV0nro7zdtoVrwG yNcI4VKPFSnjpaG4JupLvj/iRsZSO7AD1nVXQHYHfWi3iYfAZDEb80a14fF4ZKwXpjYp l42O1+dezDhFrbUxrdThmByvTYRjrzMtIMIfbDjwzdCDBUZHOYzYNLT/s7c5Qq+xAnU3 QfRA== X-Gm-Message-State: AOAM5320fi8ZYfspMiNNCknZch+9Ae/L+T6srCiaSvQCkCHHQSweT2bX 69XL7yDn+45+WR8eHmwpSy97323+r5W1OK6zipE= X-Received: by 2002:a9d:7f12:: with SMTP id j18mr4056211otq.304.1602244152286; Fri, 09 Oct 2020 04:49:12 -0700 (PDT) MIME-Version: 1.0 References: <2babfe21-beb8-762b-8ede-15f3467ca841@infradead.org> In-Reply-To: <2babfe21-beb8-762b-8ede-15f3467ca841@infradead.org> From: yulei zhang Date: Fri, 9 Oct 2020 19:49:01 +0800 Message-ID: Subject: Re: [PATCH 08/35] dmem: show some statistic in debugfs To: Randy Dunlap Cc: akpm@linux-foundation.org, naoya.horiguchi@nec.com, viro@zeniv.linux.org.uk, Paolo Bonzini , linux-fsdevel@vger.kernel.org, kvm , LKML , Xiao Guangrong , Wanpeng Li , Haiwei Li , Yulei Zhang , Xiao Guangrong Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Thanks, Randy. I will follow the instructions to modify the patches. On Fri, Oct 9, 2020 at 4:23 AM Randy Dunlap wrote: > > On 10/8/20 12:53 AM, yulei.kernel@gmail.com wrote: > > diff --git a/mm/Kconfig b/mm/Kconfig > > index e1995da11cea..8a67c8933a42 100644 > > --- a/mm/Kconfig > > +++ b/mm/Kconfig > > @@ -235,6 +235,15 @@ config DMEM > > Allow reservation of memory which could be dedicated usage of dmem. > > It's the basics of dmemfs. > > > > +config DMEM_DEBUG_FS > > + bool "Enable debug information for direct memory" > > + depends on DMEM && DEBUG_FS > > + def_bool n > > Drop the def_bool line. 'n' is the default anyway and the symbol is > already of type bool from 2 lines above. > > > + help > > + This option enables showing various statistics of direct memory > > + in debugfs filesystem. > > + > > +# > > > -- > ~Randy >