Re: [PATCHSET driver-core-next] sysfs: separate out kernfs, take #3

Tejun Heo
2013-11-24T14:28:29Z

Hello,

On Sun, Nov 24, 2013 at 01:16:02AM -0800, Christoph Hellwig wrote:
> It would be highly useful if you could explain us what kernfs is
> supposed to do and why we're cheerfully waiting for it. Also given

Oops, sorry about that. It was explained in earlier series but I
probably should carry on a simplified explanation on later ones too.
It's just separating out the core features of sysfs into a separate
filesystem so that it can be used by non-kobject based users too. So,
kernfs implements the core pseudo file functionality and sysfs becomes
kobject-wrapping layer on top of it. I'm gonna convert cgroup to use
kernfs and Greg seems to have some plans for debugfs, IIUC.

> that you touch VFS core files please Cc linux-fsdevel for those and
> explain them in detail.

Does it? Ah, okay, fs/Makefile and fs/namespace.c. The former is
just adding kernfs/ directory and the latter is splitting out
kernfs_init() from sysfs_init() call. Both are trivial. Will cc
linux-fsdevel on those patches.

Thanks.

--
tejun