Re: [RFC 0/5] BTRFS hot relocation support

2013-05-09 Thread Zheng Liu
On Thu, May 09, 2013 at 08:30:12AM +0200, Stefan Behrens wrote: > On 05/09/2013 01:13, Zhi Yong Wu wrote: > >HI, all > > > >I saw that bcache will be merged into kernel upstream soon, so i > >want to know if btrfs hot relocation support is still meanful, if no, > >i will not continue to work on

Re: [PATCH 0/4][RFC] remove duplicated check from ext4, xfs, btrfs, and ocfs2

2012-11-20 Thread Zheng Liu
On Tue, Nov 20, 2012 at 05:14:53AM -0500, Christoph Hellwig wrote: > On Tue, Nov 20, 2012 at 05:29:41PM +0800, Zheng Liu wrote: > > Hi all, > > > > This patch series tries to remove a sanity check in fallocate from specific > > filesystems because vfs has already ch

[PATCH 2/4][RFC] xfs: remove duplicated check from xfs_file_fallocate

2012-11-20 Thread Zheng Liu
From: Zheng Liu Remove a sanity check from xfs_file_fallocate because vfs has already checked it. Reported-by: Guo Chao Signed-off-by: Zheng Liu --- fs/xfs/xfs_file.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index aa473fa..7b50d12 100644

[PATCH 1/4][RFC] ext4: remove duplicated check from ext4_fallocate

2012-11-20 Thread Zheng Liu
From: Zheng Liu Remove a sanity check from ext4_fallocate because vfs has already checked it. Reported-by: Guo Chao Signed-off-by: Zheng Liu --- fs/ext4/extents.c | 4 1 file changed, 4 deletions(-) diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 7011ac9..c2eb409 100644 --- a

[PATCH 3/4][RFC] btrfs: remove duplicated check from btrfs_fallocate

2012-11-20 Thread Zheng Liu
From: Zheng Liu Remove a sanity check from btrfs_fallocate because vfs has already checked it. Reported-by: Guo Chao Signed-off-by: Zheng Liu --- fs/btrfs/file.c | 4 1 file changed, 4 deletions(-) diff --git a/fs/btrfs/file.c b/fs/btrfs/file.c index 9ab1bed..fd260a0 100644 --- a/fs

[PATCH 4/4][RFC] ocfs2: remove duplicated check from ocfs2_fallocate

2012-11-20 Thread Zheng Liu
From: Zheng Liu Remove a sanity check from ocfs2_fallocate because vfs has already checked it. Reported-by: Guo Chao Signed-off-by: Zheng Liu --- fs/ocfs2/file.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/fs/ocfs2/file.c b/fs/ocfs2/file.c index 5a4ee77..2446efa 100644 --- a/fs

[PATCH 0/4][RFC] remove duplicated check from ext4, xfs, btrfs, and ocfs2

2012-11-20 Thread Zheng Liu
, - Zheng --- Zheng Liu(4): ext4: remove dupoicated check from ext4_fallocate xfs: remove duplicated check from xfs_file_fallocate btrfs: remove duplicated check from btrfs_fallocate ocfs2: remove duplicated check from ocfs2_fallocate fs/btrfs/file.c | 4 fs/ext4

Re: [RFC v4 03/15] vfs,hot_track: add the function for collecting I/O frequency

2012-10-28 Thread Zheng Liu
Hi Zhiyong, On Thu, Oct 25, 2012 at 11:08:55PM +0800, zwu.ker...@gmail.com wrote: [snip] > @@ -199,6 +342,54 @@ err: > } > > /* > + * Main function to update access frequency from read/writepage(s) hooks > + */ > +inline void hot_update_freqs(struct inode *inode, u64 start, > +

Re: [RFC v3 09/13] vfs: add one wq to update map info periodically

2012-10-17 Thread Zheng Liu
On Wed, Oct 17, 2012 at 02:34:15PM +0800, Zhi Yong Wu wrote: > >> diff --git a/fs/hot_tracking.h b/fs/hot_tracking.h > >> index d19e64a..7a79a6d 100644 > >> --- a/fs/hot_tracking.h > >> +++ b/fs/hot_tracking.h > >> @@ -36,6 +36,9 @@ > >> */ > >> #define TIME_TO_KICK 400 > >> > >> +/* set how oft

Re: [RFC v3 00/13] vfs: hot data tracking

2012-10-14 Thread Zheng Liu
On Wed, Oct 10, 2012 at 06:07:22PM +0800, zwu.ker...@gmail.com wrote: > From: Zhi Yong Wu > > NOTE: > > The patchset is currently post out mainly to make sure > it is going in the correct direction and hope to get some > helpful comments from other guys. > For more infomation, please check h

Re: [RFC v3 13/13] vfs: add documentation

2012-10-14 Thread Zheng Liu
Hi Zhi Yong, [cut...] > +3. The Design > + > +These include the following parts: > + > +* Hooks in existing vfs functions to track data access frequency > + > +* New rbtrees for tracking access frequency of inodes and sub-file ^^^ s/rbtrees/radix-trees > +ranges (hot_rb.c)

Re: fallocate vs O_(D)SYNC

2011-11-16 Thread Zheng Liu
on (it adds new blocks that return zeroes) that seems like a > fairly nasty surprise for O_SYNC users. Hi all, This patch should be fix this problem in ext4. From: Zheng Liu Make sure the transaction to be commited if O_(D)SYNC flag is set in ext4_fallocate(). Signed-off-by: Zheng Liu ---