[RFC v3 12/13] vfs: add debugfs support

2012-10-10 Thread zwu . kernel
From: Zhi Yong Wu Add a /sys/kernel/debug/hot_track// directory for each volume that contains two files. The first, `inode_data', contains the heat information for inodes that have been brought into the hot data map structures. The second, `range_data', contains similar information for subfile

Re: [RFC v3 12/13] vfs: add debugfs support

2012-10-10 Thread David Sterba
On Wed, Oct 10, 2012 at 06:07:34PM +0800, zwu.ker...@gmail.com wrote: > +static int hot_debugfs_log_init(struct debugfs_vol_data *data) > +{ > + int err = 0; > + struct lstring *debugfs_log = data->debugfs_log; > + > + spin_lock(&data->log_lock); > + debugfs_log->str = vmalloc(INIT_

Re: [RFC v3 12/13] vfs: add debugfs support

2012-10-10 Thread David Sterba
On Wed, Oct 10, 2012 at 06:07:34PM +0800, zwu.ker...@gmail.com wrote: > +static int hot_debugfs_copy(struct debugfs_vol_data *data, char *msg, int > len) > +{ > + struct lstring *debugfs_log = data->debugfs_log; > + uint new_log_alloc_size; > + char *new_log; > + static char err_ms

Re: [RFC v3 12/13] vfs: add debugfs support

2012-10-15 Thread Dave Chinner
On Wed, Oct 10, 2012 at 06:07:34PM +0800, zwu.ker...@gmail.com wrote: > From: Zhi Yong Wu > > Add a /sys/kernel/debug/hot_track// directory for each > volume that contains two files. The first, `inode_data', contains the > heat information for inodes that have been brought into the hot data map

Re: [RFC v3 12/13] vfs: add debugfs support

2012-10-15 Thread Dave Chinner
On Wed, Oct 10, 2012 at 06:07:34PM +0800, zwu.ker...@gmail.com wrote: > From: Zhi Yong Wu > > Add a /sys/kernel/debug/hot_track// directory for each > volume that contains two files. The first, `inode_data', contains the > heat information for inodes that have been brought into the hot data map

Re: [RFC v3 12/13] vfs: add debugfs support

2012-10-15 Thread Zhi Yong Wu
On Mon, Oct 15, 2012 at 3:55 PM, Dave Chinner wrote: > On Wed, Oct 10, 2012 at 06:07:34PM +0800, zwu.ker...@gmail.com wrote: >> From: Zhi Yong Wu >> >> Add a /sys/kernel/debug/hot_track// directory for each >> volume that contains two files. The first, `inode_data', contains the >> heat informa

Re: [RFC v3 12/13] vfs: add debugfs support

2012-10-15 Thread Zhi Yong Wu
On Mon, Oct 15, 2012 at 4:04 PM, Dave Chinner wrote: > On Wed, Oct 10, 2012 at 06:07:34PM +0800, zwu.ker...@gmail.com wrote: >> From: Zhi Yong Wu >> >> Add a /sys/kernel/debug/hot_track// directory for each >> volume that contains two files. The first, `inode_data', contains the >> heat informa