Re: Sysfs one-value-per-file (was Re: [PATCH] vmstat: don't auto expand the sysfs files)

From: Andrew Morton
Date: Wed Dec 27 2023 - 13:42:54 EST


On Tue, 26 Dec 2023 16:53:31 -0800 (PST) David Rientjes <rientjes@xxxxxxxxxx> wrote:

> But for existing files and conventions, I think we should settle it as
> "keep doing what you've been doing for 13+ years" and don't force this
> argument every time a kernel developer wants to just add one more stat.

Absolutely. Let's do what makes most sense. For new things, one value
per file. For stats which logically group with other existing stats,
do whatever the existing other stats are currently doing.