Re: [PATCH 08/35] dmem: show some statistic in debugfs

From: yulei zhang
Date: Fri Oct 09 2020 - 07:49:16 EST


Thanks, Randy. I will follow the instructions to modify the patches.

On Fri, Oct 9, 2020 at 4:23 AM Randy Dunlap <rdunlap@xxxxxxxxxxxxx> wrote:
>
> On 10/8/20 12:53 AM, yulei.kernel@xxxxxxxxx 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
>