Re: [PATCH v2 2/3] kernfs: introduce kernfs_pin_sb()

2014-06-27 Thread Greg Kroah-Hartman
On Fri, Jun 27, 2014 at 11:01:41AM -0400, Tejun Heo wrote: > On Fri, Jun 27, 2014 at 03:10:48PM +0800, Li Zefan wrote: > > kernfs_pin_sb() tries to get a refcnt of the superblock. > > > > This will be used by cgroupfs. > > Greg, this is pretty much cgroup specific due to the way cgroup >

Re: [PATCH v2 2/3] kernfs: introduce kernfs_pin_sb()

2014-06-27 Thread Tejun Heo
On Fri, Jun 27, 2014 at 03:10:48PM +0800, Li Zefan wrote: > kernfs_pin_sb() tries to get a refcnt of the superblock. > > This will be used by cgroupfs. Greg, this is pretty much cgroup specific due to the way cgroup dynamically manages multiple hierarchies. Can I route this through

[PATCH v2 2/3] kernfs: introduce kernfs_pin_sb()

2014-06-27 Thread Li Zefan
kernfs_pin_sb() tries to get a refcnt of the superblock. This will be used by cgroupfs. v2: - make kernfs_pin_sb() return pointer to the superblock. - drop kernfs_drop_sb(). Signed-off-by: Li Zefan --- fs/kernfs/mount.c | 27 +++ include/linux/kernfs.h | 1 + 2

[PATCH v2 2/3] kernfs: introduce kernfs_pin_sb()

2014-06-27 Thread Li Zefan
kernfs_pin_sb() tries to get a refcnt of the superblock. This will be used by cgroupfs. v2: - make kernfs_pin_sb() return pointer to the superblock. - drop kernfs_drop_sb(). Signed-off-by: Li Zefan lize...@huawei.com --- fs/kernfs/mount.c | 27 +++

Re: [PATCH v2 2/3] kernfs: introduce kernfs_pin_sb()

2014-06-27 Thread Tejun Heo
On Fri, Jun 27, 2014 at 03:10:48PM +0800, Li Zefan wrote: kernfs_pin_sb() tries to get a refcnt of the superblock. This will be used by cgroupfs. Greg, this is pretty much cgroup specific due to the way cgroup dynamically manages multiple hierarchies. Can I route this through

Re: [PATCH v2 2/3] kernfs: introduce kernfs_pin_sb()

2014-06-27 Thread Greg Kroah-Hartman
On Fri, Jun 27, 2014 at 11:01:41AM -0400, Tejun Heo wrote: On Fri, Jun 27, 2014 at 03:10:48PM +0800, Li Zefan wrote: kernfs_pin_sb() tries to get a refcnt of the superblock. This will be used by cgroupfs. Greg, this is pretty much cgroup specific due to the way cgroup dynamically