Re: [RFC v4+ hot_track 10/19] vfs: introduce hot func register framework

2012-11-07 Thread Zhi Yong Wu
On Wed, Nov 7, 2012 at 7:30 AM, Darrick J. Wong darrick.w...@oracle.com wrote: On Mon, Oct 29, 2012 at 12:30:52PM +0800, zwu.ker...@gmail.com wrote: From: Zhi Yong Wu wu...@linux.vnet.ibm.com Introduce one framwork to enable that specific FS can register its own hot tracking functions.

Re: [RFC v4+ hot_track 10/19] vfs: introduce hot func register framework

2012-11-07 Thread Darrick J. Wong
On Wed, Nov 07, 2012 at 04:34:35PM +0800, Zhi Yong Wu wrote: On Wed, Nov 7, 2012 at 7:30 AM, Darrick J. Wong darrick.w...@oracle.com wrote: On Mon, Oct 29, 2012 at 12:30:52PM +0800, zwu.ker...@gmail.com wrote: From: Zhi Yong Wu wu...@linux.vnet.ibm.com Introduce one framwork to enable

Re: [RFC v4+ hot_track 10/19] vfs: introduce hot func register framework

2012-11-07 Thread Zhi Yong Wu
On Thu, Nov 8, 2012 at 2:58 AM, Darrick J. Wong darrick.w...@oracle.com wrote: On Wed, Nov 07, 2012 at 04:34:35PM +0800, Zhi Yong Wu wrote: On Wed, Nov 7, 2012 at 7:30 AM, Darrick J. Wong darrick.w...@oracle.com wrote: On Mon, Oct 29, 2012 at 12:30:52PM +0800, zwu.ker...@gmail.com wrote:

Re: [RFC v4+ hot_track 10/19] vfs: introduce hot func register framework

2012-11-06 Thread David Sterba
On Mon, Oct 29, 2012 at 12:30:52PM +0800, zwu.ker...@gmail.com wrote: +static struct hot_func_type *hot_func_get(const char *name) +{ + struct hot_func_type *f, *h = hot_func_def; + + spin_lock(hot_func_list_lock); + list_for_each_entry(f, hot_func_list, list) { + if

Re: [RFC v4+ hot_track 10/19] vfs: introduce hot func register framework

2012-11-06 Thread Darrick J. Wong
On Mon, Oct 29, 2012 at 12:30:52PM +0800, zwu.ker...@gmail.com wrote: From: Zhi Yong Wu wu...@linux.vnet.ibm.com Introduce one framwork to enable that specific FS can register its own hot tracking functions. Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- fs/hot_tracking.c

Re: [RFC v4+ hot_track 10/19] vfs: introduce hot func register framework

2012-11-06 Thread Zhi Yong Wu
On Wed, Nov 7, 2012 at 7:14 AM, David Sterba d...@jikos.cz wrote: On Mon, Oct 29, 2012 at 12:30:52PM +0800, zwu.ker...@gmail.com wrote: +static struct hot_func_type *hot_func_get(const char *name) +{ + struct hot_func_type *f, *h = hot_func_def; + + spin_lock(hot_func_list_lock); +

[RFC v4+ hot_track 10/19] vfs: introduce hot func register framework

2012-10-28 Thread zwu . kernel
From: Zhi Yong Wu wu...@linux.vnet.ibm.com Introduce one framwork to enable that specific FS can register its own hot tracking functions. Signed-off-by: Zhi Yong Wu wu...@linux.vnet.ibm.com --- fs/hot_tracking.c| 78 ++