Re: [RFC v4+ hot_track 12/19] vfs: add one ioctl interface

2012-11-06 Thread Zhi Yong Wu
On Wed, Nov 7, 2012 at 7:30 AM, David Sterba wrote: > On Mon, Oct 29, 2012 at 12:30:54PM +0800, zwu.ker...@gmail.com wrote: >> +static int ioctl_heat_info(struct file *file, void __user *argp) >> +{ >> + struct inode *inode = file->f_dentry->d_inode; >> + struct hot_heat_info *heat_info; >

Re: [RFC v4+ hot_track 12/19] vfs: add one ioctl interface

2012-11-06 Thread David Sterba
On Mon, Oct 29, 2012 at 12:30:54PM +0800, zwu.ker...@gmail.com wrote: > +static int ioctl_heat_info(struct file *file, void __user *argp) > +{ > + struct inode *inode = file->f_dentry->d_inode; > + struct hot_heat_info *heat_info; > + struct hot_inode_item *he; > + int ret = 0; > +

[RFC v4+ hot_track 12/19] vfs: add one ioctl interface

2012-10-28 Thread zwu . kernel
From: Zhi Yong Wu FS_IOC_GET_HEAT_INFO: return a struct containing the various metrics collected in hot_freq_data structs, and also return a calculated data temperature based on those metrics. Optionally, retrieve the temperature from the hot data hash list instead of recalculating it. Signed-