[PATCH] Btrfs: use slabs for delayed reference allocation

2012-11-20 Thread Miao Xie
The delayed reference allocation is in the fast path of the IO, so use slabs to improve the speed of the allocation. And besides that, it can do check for leaked objects when the module is removed. Signed-off-by: Miao Xie --- fs/btrfs/delayed-ref.c | 74 +

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

2012-11-20 Thread Nehemiah Dacres
I wanted to know if any one else is writing a BTRFS gui other than the writers of BTRFS-GUI (http://carfax.org.uk/btrfs-gui) who haven't updated svn sense 2009 I think. Is there any documentation on communicating with /dev/btrfs-controle ? a command list? I've looked at the source of btrfs.c but

Re: BTRFS Bug

2012-11-20 Thread Liu Bo
On Tue, Nov 20, 2012 at 09:25:02PM +0800, Ross Moore wrote: > Strange. Does that imply a problem with disks or disk cables physically? > Our just the data rather than the metadata? > It seems to be a kernel bug since another user also reported it sometime ago. > I've compiled the latest btrfs-to

Scrub racing with btrfs workers on umount

2012-11-20 Thread Jan Schmidt
I found a race condition in the way scrub interacts with btrfs workers: Please carefully distinguish "workers" as struct btrfs_workers from "worker" as struct btrfs_worker_thread. Process A: umount Process B: scrub-workers Process C: genwork-worker A: close_ctree() A: scr

Re: BTRFS Bug

2012-11-20 Thread Liu Bo
On Tue, Nov 20, 2012 at 05:54:35PM +0800, Ross Moore wrote: > Hi, > Any update on this before I wipe the disks and start again? Hi Ross, Sorry but I failed to reproduce it locally, although I've tried various disk operations like balance, dev add/del etc... So have you also tried the latest btrf

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 checked it. > > > > I am not very

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

2012-11-20 Thread Christoph Hellwig
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 checked it. > > I am not very familiar with why we need to do this duplicated check. Please > let > me know

[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/f

[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/btr

[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/ocfs2

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

2012-11-20 Thread Zheng Liu
Hi all, This patch series tries to remove a sanity check in fallocate from specific filesystems because vfs has already checked it. I am not very familiar with why we need to do this duplicated check. Please let me know if I miss something. Regards,