Re: [PATCH 0/13] maps: pagemap, kpagemap, and related cleanups

Christoph Hellwig
2007-04-13T09:46:17Z

On Fri, Apr 13, 2007 at 06:25:46PM +1000, Nick Piggin wrote:
> But at least make it into its own module with a debugfs interface or
> something. I mean, exposing a PG_name-to-nr and page count pfn and flags
> as a supposedly formal proc interface doesn't sound nice to me. Page
> flags does not tell you what is going on in the VM, it gives you a tiny
> window into "something". Between reading a /proc/pid/ pfn and finding
> the pfn's page flags, it could be used for something completely different
> anyway.

I agree that exposing numerical values of page flags is not a very good
idea at all. If we really want to expose this information it should
at least be in string form, although that is quite a bit of a maintaince
horror aswell.