Re: [PATCH] kernfs: move the last knowledge of sysfs out from kernfs

From: Tejun Heo
Date: Wed Apr 16 2014 - 13:27:07 EST


On Thu, Apr 17, 2014 at 01:24:18AM +0800, Jianyu Zhan wrote:
> On Thu, Apr 17, 2014 at 12:46 AM, Tejun Heo <tj@xxxxxxxxxx> wrote:
> > Please put it before @new_sb_created.
>
> Ok.
>
> > Also, why isn't it unsigned long magic?
>
> I just thought there may be more private data in the future, so I made
> it a void pointer. But now I think this is overskill and meaningless.
>
> Renewed patch here:
>
> There is still one residue of sysfs remaining: the sb_magic
> SYSFS_MAGIC. However this should be kernfs user specific,
> so this patch moves it out. Kerrnfs user should specify their
> magic number while mouting.
>
> Signed-off-by: Jianyu Zhan <nasa4836@xxxxxxxxx>

Acked-by: Tejun Heo <tj@xxxxxxxxxx>

Thanks.

--
tejun
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/