[PATCH 1/2] btrfs-progs: Add block group check funtion.

2013-05-21 Thread Qu Wenruo
From: Cheng Yang chenyang.f...@cn.fujitsu.com This patch adds the function to check correspondence between block group, chunk and device extent. Signed-off-by: Cheng Yang chenyang.f...@cn.fujitsu.com Signed-off-by: Wang Shilong wangsl-f...@cn.fujitsu.com Signed-off-by: Qu Wenruo quwen

[PATCH] btrfs-progs: Add chunk corrupt funtion to btrfs-corrupt-block

2013-06-06 Thread Qu Wenruo
be disabled and edit leaf without changing generation. Which makes btrfs_commit_transation giving some ignorable warning. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- btrfs-corrupt-block.c | 218 ++ 1 file changed, 201 insertions(+), 17 deletions

[PATCH] btrfs-progs: Cleanup for using BTRFS_SETGET_STACK instead of raw convert

2013-06-25 Thread Qu Wenruo
Some codes still use the cpu_to_lexx instead of the BTRFS_SETGET_STACK_FUNCS declared in ctree.h. Also added some BTRFS_SETGET_STACK_FUNCS for btrfs_header and btrfs_super. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- btrfs-convert.c| 2 +- btrfs-find-root.c | 6 +++--- btrfs

[PATCH] btrfs-progs: Cleanup unneeded extra variant in btrfs_read_sys_array

2013-06-27 Thread Qu Wenruo
The btrfs_read_sys_array function uses 3 variants to read data from super block. But the three variants are related to each other, so the patch removes unneeded extra variants and make code a little simpler. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Reviewed-by: Miao Xie mi

[PATCH] btrfs: Cleanup unneeded extra variant in btrfs_read_sys_array

2013-06-27 Thread Qu Wenruo
The btrfs_read_sys_array function uses 3 variants to read data from super block. But the three variants are related to each other, so the patch removes unneeded extra variants and make code a little simpler. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Reviewed-by: Miao Xie mi

Re: [PATCH] btrfs-progs: Cleanup for using BTRFS_SETGET_STACK instead of raw convert

2013-07-02 Thread Qu Wenruo
于 2013年07月03日 01:36, David Sterba 写道: On Wed, Jun 26, 2013 at 01:27:08PM +0800, Qu Wenruo wrote: --- a/btrfs-convert.c +++ b/btrfs-convert.c @@ -1802,7 +1802,7 @@ static int prepare_system_chunk_sb(struct btrfs_super_block *super) btrfs_set_stack_chunk_num_stripes(chunk, 1

Re: [PATCH] btrfs-progs: Cleanup for using BTRFS_SETGET_STACK instead of raw convert

2013-07-02 Thread Qu Wenruo
于 2013年07月03日 01:26, David Sterba 写道: That's a good cleanup, please send the kernel version as well. david I'll send the kernel patch asap. -- - Qu Wenruo Development Dept.I Nanjing Fujitsu Nanda Software Tech. Co., Ltd.(FNST) No. 6 Wenzhu

[PATCH] btrfs: Cleanup for using BTRFS_SETGET_STACK instead of raw convert

2013-07-04 Thread Qu Wenruo
Some codes still use the cpu_to_lexx instead of the BTRFS_SETGET_STACK_FUNCS declared in ctree.h. Also added some BTRFS_SETGET_STACK_FUNCS for btrfs_header btrfs_timespec and other structures. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Reviewed-by: Miao Xie miao...@cn.fujitsu.com --- fs

Re: [PATCH] btrfs: Cleanup for using BTRFS_SETGET_STACK instead of raw convert

2013-07-08 Thread Qu Wenruo
于 2013年07月08日 21:24, David Sterba 写道: On Fri, Jul 05, 2013 at 10:01:30AM +0800, Qu Wenruo wrote: --- a/fs/btrfs/ctree.h +++ b/fs/btrfs/ctree.h @@ -2807,6 +2846,14 @@ static inline unsigned long btrfs_leaf_data(struct extent_buffer *l) /* struct btrfs_file_extent_item

[PATCH v2] btrfs: Cleanup for using BTRFS_SETGET_STACK instead of raw convert

2013-07-09 Thread Qu Wenruo
Some codes still use the cpu_to_lexx instead of the BTRFS_SETGET_STACK_FUNCS declared in ctree.h. Also added some BTRFS_SETGET_STACK_FUNCS for btrfs_header btrfs_timespec and other structures. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Reviewed-by: Miao Xie miao...@cn.fujitsu.com Reviewed

[PATCH v3] btrfs: Cleanup for using BTRFS_SETGET_STACK instead of raw convert

2013-07-15 Thread Qu Wenruo
Some codes still use the cpu_to_lexx instead of the BTRFS_SETGET_STACK_FUNCS declared in ctree.h. Also added some BTRFS_SETGET_STACK_FUNCS for btrfs_header btrfs_timespec and other structures. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Reviewed-by: Miao Xie miao...@cn.fujitsu.com Reviewed

Re: [PATCH] btrfs-progs: Add chunk corrupt funtion to btrfs-corrupt-block

2013-07-16 Thread Qu Wenruo
Since the new chunk recovery patches are merged, what about merging this patch to add chunk corruption function? :) Qu 于 2013年06月07日 10:25, Qu Wenruo 写道: Add chunk corrupt function to btrfs-corrupt-block. This funtion can be used to delete or corrupt a given chunk or the whole chunk tree

[PATCH 1/2] btrfs-progs: Update the usage strings of some cmds

2013-07-22 Thread Qu Wenruo
Update the usage strings of some cmds to keep the them consistent with the source. Also some minor changes are done to fit the man page syntax. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- btrfs.c | 2 +- cmds-chunk.c | 2 +- cmds-filesystem.c | 2 +- cmds-inspect.c

[PATCH 2/2] btrfs-progs: Update the man page of btrfs

2013-07-22 Thread Qu Wenruo
@@ .TH BTRFS 8 btrfs btrfs .\ .\ Man page written by Goffredo Baroncelli kreij...@inwind.it (Feb 2010) +.\ Modified by Qu Wenruo quwen...@cn.fujitsu.com (Jun 2013) .\ .SH NAME btrfs \- control a btrfs filesystem .SH SYNOPSIS -\fBbtrfs\fP \fBsubvolume snapshot\fP\fI [-r] source [dest/]name\fP

Re: [PATCH 2/2] btrfs-progs: Update the man page of btrfs

2013-09-01 Thread Qu Wenruo
Sorry for the late reply. I checked the new man page, which seems OK for me. Thank you. Qu Wenruo 于 2013年08月06日 07:28, David Sterba 写道: On Tue, Jul 23, 2013 at 10:43:22AM +0800, Qu Wenruo wrote: Update the man page of btrfs command to keep up with new commands. Thanks. Please check if I

[PATCH 0/9] btrfs: Replace the btrfs_workers with kernel workqueue

2013-09-11 Thread Qu Wenruo
: -2.27% seq_del +0.94% Other changes are smaller than 0.5% and can be ignored. Since the tests are not enough and maybe unstable, any further tests are welcome. Qu Wenruo (9): btrfs: Cleanup the unused struct async_sched. btrfs: use kernel workqueue to replace

[PATCH 3/9] btrfs: Added btrfs_workqueue_struct implemented ordered execution based on kernel workqueue

2013-09-11 Thread Qu Wenruo
btrfs_workqueue use 2 workqueues to implement the original btrfs_worker, one for the normal work and one for ordered work. At this patch, high priority work queue is not added yet. The high priority feature will be added in the following patches. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com

[PATCH 4/9] btrfs: Add high priority workqueue support for btrfs_workqueue_struct

2013-09-11 Thread Qu Wenruo
Add high priority workqueue, which added a new workqueue to btrfs_workqueue_struct. Whether using the high priority workqueue must be decided at initialization. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- fs/btrfs/bwq.c | 29 - fs/btrfs/bwq.h | 8

[PATCH 5/9] btrfs: Use btrfs_workqueue_struct to replace the fs_info-workers

2013-09-11 Thread Qu Wenruo
Use the newly created btrfs_workqueue_struct to replace the original fs_info-workers Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- fs/btrfs/ctree.h | 2 +- fs/btrfs/disk-io.c | 36 +++- fs/btrfs/super.c | 3 ++- 3 files changed, 18 insertions(+), 23

[PATCH 8/9] btrfs: Cleanup the old btrfs workqueue

2013-09-11 Thread Qu Wenruo
Since the patches before implemented the new kernel workqueue based btrfs_worqueue_struct, the old btrfs workqueue(btrfs_worker) can be removed without any problem. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- fs/btrfs/Makefile | 2 +- fs/btrfs/async-thread.c | 714

[PATCH 1/9] btrfs: Cleanup the unused struct async_sched.

2013-09-11 Thread Qu Wenruo
The struct async_sched is not used by any codes and can be removed. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- fs/btrfs/volumes.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 78b8717..12eaf89 100644 --- a/fs/btrfs/volumes.c

[PATCH 6/9] btrfs: Use btrfs_workqueue_struct to replace the fs_info-delalloc_workers

2013-09-11 Thread Qu Wenruo
Much like the fs_info-workers, replace the fs_info-delalloc_workers use the same btrfs_workqueue. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- fs/btrfs/ctree.h | 2 +- fs/btrfs/disk-io.c | 14 +- fs/btrfs/inode.c | 19 +-- fs/btrfs/super.c | 2 +- 4

[PATCH 7/9] btrfs: Replace the fs_info-submit_workers with kernel workqueue.

2013-09-11 Thread Qu Wenruo
to be queued. Besides this, not much to worry about. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- fs/btrfs/ctree.h | 2 +- fs/btrfs/disk-io.c | 10 -- fs/btrfs/super.c | 2 +- fs/btrfs/volumes.c | 17 + fs/btrfs/volumes.h | 2 +- 5 files changed, 16

[PATCH 2/9] btrfs: use kernel workqueue to replace the btrfs_workers functions

2013-09-11 Thread Qu Wenruo
. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- fs/btrfs/ctree.h | 39 +-- fs/btrfs/delayed-inode.c | 9 ++- fs/btrfs/disk-io.c | 164 ++- fs/btrfs/extent-tree.c | 6 +- fs/btrfs/inode.c | 38 +-- fs/btrfs

[PATCH 9/9] btrfs: Replace thread_pool_size with workqueue default value

2013-09-11 Thread Qu Wenruo
the default value. Since the thread_pool_size algorithm is not used, related codes should also be changed. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- fs/btrfs/disk-io.c | 12 +++- fs/btrfs/super.c | 3 +-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/fs/btrfs

Re: [PATCH 2/9] btrfs: use kernel workqueue to replace the btrfs_workers functions

2013-09-11 Thread Qu Wenruo
于 2013年09月11日 21:02, Stefan Behrens 写道: On Wed, 11 Sep 2013 16:52:31 +0800, Qu Wenruo wrote: Use the kernel workqueue to replace the btrfs_workers which are only used as normal workqueue. Other btrfs_workers will use some extra functions like requeue, high priority and ordered work

[PATCH v2 1/9] btrfs: Cleanup the unused struct async_sched.

2013-09-12 Thread Qu Wenruo
The struct async_sched is not used by any codes and can be removed. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- fs/btrfs/volumes.c | 7 --- 1 file changed, 7 deletions(-) diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c index 78b8717..12eaf89 100644 --- a/fs/btrfs/volumes.c

[PATCH v2 0/9] btrfs: Replace the btrfs_workers with kernel workqueue

2013-09-12 Thread Qu Wenruo
qgroup_rescan_workers allocation check. -- Qu Wenruo (9): btrfs: Cleanup the unused struct async_sched. btrfs: use kernel workqueue to replace the btrfs_workers functions btrfs: Added btrfs_workqueue_struct implemented ordered execution based on kernel workqueue btrfs: Add high priority

[PATCH v2 9/9] btrfs: Replace thread_pool_size with workqueue default value

2013-09-12 Thread Qu Wenruo
the default value. Since the thread_pool_size algorithm is not used, related codes should also be changed. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- fs/btrfs/disk-io.c | 12 +++- fs/btrfs/super.c | 3 +-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/fs/btrfs

[PATCH v2 8/9] btrfs: Cleanup the old btrfs workqueue

2013-09-12 Thread Qu Wenruo
Since the patches before implemented the new kernel workqueue based btrfs_worqueue_struct, the old btrfs workqueue(btrfs_worker) can be removed without any problem. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- fs/btrfs/Makefile | 2 +- fs/btrfs/async-thread.c | 714

[PATCH v2 3/9] btrfs: Added btrfs_workqueue_struct implemented ordered execution based on kernel workqueue

2013-09-12 Thread Qu Wenruo
btrfs_workqueue use 2 workqueues to implement the original btrfs_worker, one for the normal work and one for ordered work. At this patch, high priority work queue is not added yet. The high priority feature will be added in the following patches. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com

[PATCH v2 2/9] btrfs: use kernel workqueue to replace the btrfs_workers functions

2013-09-12 Thread Qu Wenruo
. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- fs/btrfs/ctree.h | 39 +-- fs/btrfs/delayed-inode.c | 9 ++- fs/btrfs/disk-io.c | 164 ++- fs/btrfs/extent-tree.c | 6 +- fs/btrfs/inode.c | 38 +-- fs/btrfs

[PATCH v2 5/9] btrfs: Use btrfs_workqueue_struct to replace the fs_info-workers

2013-09-12 Thread Qu Wenruo
Use the newly created btrfs_workqueue_struct to replace the original fs_info-workers Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- fs/btrfs/ctree.h | 2 +- fs/btrfs/disk-io.c | 36 +++- fs/btrfs/super.c | 3 ++- 3 files changed, 18 insertions(+), 23

[PATCH v2 6/9] btrfs: Use btrfs_workqueue_struct to replace the fs_info-delalloc_workers

2013-09-12 Thread Qu Wenruo
Much like the fs_info-workers, replace the fs_info-delalloc_workers use the same btrfs_workqueue. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- fs/btrfs/ctree.h | 2 +- fs/btrfs/disk-io.c | 13 + fs/btrfs/inode.c | 19 +-- fs/btrfs/super.c | 2 +- 4

[PATCH v2 4/9] btrfs: Add high priority workqueue support for btrfs_workqueue_struct

2013-09-12 Thread Qu Wenruo
Add high priority workqueue, which added a new workqueue to btrfs_workqueue_struct. Whether using the high priority workqueue must be decided at initialization. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- fs/btrfs/bwq.c | 29 - fs/btrfs/bwq.h | 8

Re: [PATCH v2 2/9] btrfs: use kernel workqueue to replace the btrfs_workers functions

2013-09-12 Thread Qu Wenruo
于 2013年09月13日 09:29, Liu Bo 写道: On Thu, Sep 12, 2013 at 04:08:17PM +0800, Qu Wenruo wrote: Use the kernel workqueue to replace the btrfs_workers which are only used as normal workqueue. Other btrfs_workers will use some extra functions like requeue, high priority and ordered work

Re: [PATCH v2 0/9] btrfs: Replace the btrfs_workers with kernel workqueue

2013-09-12 Thread Qu Wenruo
于 2013年09月13日 01:37, David Sterba 写道: On Thu, Sep 12, 2013 at 04:08:15PM +0800, Qu Wenruo wrote: Use kernel workqueue and kernel workqueue based new btrfs_workqueue_struct to replace the old btrfs_workers. The main goal is to reduce the redundant codes(800 lines vs 200 lines) and try to get

Re: [PATCH v2 9/9] btrfs: Replace thread_pool_size with workqueue default value

2013-09-12 Thread Qu Wenruo
于 2013年09月13日 09:47, Liu Bo 写道: On Thu, Sep 12, 2013 at 04:08:24PM +0800, Qu Wenruo wrote: The original btrfs_workers uses the fs_info-thread_pool_size as the max_active, and the previous patches followed this way. But the kernel workqueue has the default value(0) for workqueue, and workqueue

Re: [PATCH v2 9/9] btrfs: Replace thread_pool_size with workqueue default value

2013-09-16 Thread Qu Wenruo
于 2013年09月13日 11:15, Qu Wenruo 写道: 于 2013年09月13日 09:47, Liu Bo 写道: On Thu, Sep 12, 2013 at 04:08:24PM +0800, Qu Wenruo wrote: The original btrfs_workers uses the fs_info-thread_pool_size as the max_active, and the previous patches followed this way. But the kernel workqueue has the default

Re: [PATCH v2 0/9] btrfs: Replace the btrfs_workers with kernel workqueue

2013-09-20 Thread Qu Wenruo
On thu, 12 Sep 2013 19:37:18 +0200, David Sterba wrote: On Thu, Sep 12, 2013 at 04:08:15PM +0800, Qu Wenruo wrote: Use kernel workqueue and kernel workqueue based new btrfs_workqueue_struct to replace the old btrfs_workers. The main goal is to reduce the redundant codes(800 lines vs 200 lines

Re: [PATCH v2 0/9] btrfs: Replace the btrfs_workers with kernel workqueue

2013-10-01 Thread Qu Wenruo
On Tue, 1 Oct 2013 16:50:50 +0200, David Sterba wrote: On Fri, Sep 20, 2013 at 02:13:08PM +0800, Qu Wenruo wrote: * WQ_MEM_RECLAIM for the scrub thread does not seem right I think scrub_workers,scrub_wr_completion_workers still need WQ_MEM_RECLAIM. However scrub_nocow_workers does not need

[PATCH] btrfs-progs: Add test for btrfsck on --init-csum/extent-tree

2014-02-25 Thread Qu Wenruo
Before this patchset btrfsck with --init-csum-tree --extent-tree will corrupt the btrfs fs. This patch will add test case for the bug. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- tests/fsck-tests.sh | 49 + 1 file changed, 41 insertions

[PATCH] btrfs-progs: Remove the get_fslist error message.

2014-02-25 Thread Qu Wenruo
. Also other error message in get_fslist is not needed since the functions in utils.c should not print any thing and caller will handle the error. This patch just remove the unneeded perror messages. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- utils.c | 6 +- 1 file changed, 1 insertion

[PATCH] btrfs-progs: Init root_item to avoid gcc 4.8.2 warning

2014-02-26 Thread Qu Wenruo
When using gcc 4.8.2, -Wmaybe-uninitialized will report root_item may be used uninitialized. Since root_item_valid variant is used to determine the root_item valid, it's a false alert and to avoid the warning, just init it on allocation. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- send

[PATCH v5 00/18] Replace btrfs_workers with kernel workqueue based btrfs_workqueue

2014-02-27 Thread Qu Wenruo
an independent high workqueue without starving problem. - Simplify the btrfs_alloc_workqueue parameters. - Coding style cleanup. - Remove the redundant _struct suffix. v4-v5: - Fix a multithread free-and-use bug reported by Josef and David. Qu Wenruo (18): btrfs: Cleanup the unused struct

[PATCH v5 16/18] btrfs: Replace fs_info-scrub_* workqueue with btrfs_workqueue.

2014-02-27 Thread Qu Wenruo
Replace the fs_info-scrub_* with the newly created btrfs_workqueue. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Tested-by: David Sterba dste...@suse.cz --- Changelog: v1-v2: None v2-v3: - Use the btrfs_workqueue_struct to replace submit_workers. v3-v4: - Use the simplified

[PATCH v5 17/18] btrfs: Cleanup the old btrfs_worker.

2014-02-27 Thread Qu Wenruo
Since all the btrfs_worker is replaced with the newly created btrfs_workqueue, the old codes can be easily remove. Signed-off-by: Quwenruo quwen...@cn.fujitsu.com Tested-by: David Sterba dste...@suse.cz --- Changelog: v1-v2: None v2-v3: - Reuse the old async-thred.[ch] files. v3-v4: - Reuse

[PATCH v5 01/18] btrfs: Cleanup the unused struct async_sched.

2014-02-27 Thread Qu Wenruo
The struct async_sched is not used by any codes and can be removed. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Reviewed-by: Josef Bacik jba...@fusionio.com Tested-by: David Sterba dste...@suse.cz --- Changelog: v1-v2: None. v2-v3: None. v3-v4: None: v4-v5: None --- fs/btrfs

[PATCH v5 12/18] btrfs: Replace fs_info-readahead_workers workqueue with btrfs_workqueue.

2014-02-27 Thread Qu Wenruo
Replace the fs_info-readahead_workers with the newly created btrfs_workqueue. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Tested-by: David Sterba dste...@suse.cz --- Changelog: v1-v2: None v2-v3: - Use the btrfs_workqueue_struct to replace submit_workers. v3-v4: - Use the simplified

[PATCH v5 10/18] btrfs: Replace fs_info-rmw_workers workqueue with btrfs_workqueue.

2014-02-27 Thread Qu Wenruo
Replace the fs_info-rmw_workers with the newly created btrfs_workqueue. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Tested-by: David Sterba dste...@suse.cz --- Changelog: v1-v2: None v2-v3: - Use the btrfs_workqueue_struct to replace submit_workers. v3-v4: - Use the simplified

[PATCH v5 15/18] btrfs: Replace fs_info-qgroup_rescan_worker workqueue with btrfs_workqueue.

2014-02-27 Thread Qu Wenruo
Replace the fs_info-qgroup_rescan_worker with the newly created btrfs_workqueue. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Tested-by: David Sterba dste...@suse.cz --- Changelog: v1-v2: None v2-v3: - Use the btrfs_workqueue_struct to replace submit_workers. v3-v4: - Use the simplified

[PATCH v5 02/18] btrfs: Added btrfs_workqueue_struct implemented ordered execution based on kernel workqueue

2014-02-27 Thread Qu Wenruo
as many ordered work as possible in the sequence they were queued. At this patch, high priority work queue or thresholding is not added yet. The high priority feature and thresholding will be added in the following patches. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Signed-off-by: Lai

[PATCH v5 18/18] btrfs: Cleanup the _struct suffix in btrfs_workequeue

2014-02-27 Thread Qu Wenruo
long _struct suffix. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Tested-by: David Sterba dste...@suse.cz --- Changelog: v3-v4: - Remove the _struct suffix. v4-v5: None --- fs/btrfs/async-thread.c | 66 fs/btrfs/async-thread.h | 34

[PATCH v5 13/18] btrfs: Replace fs_info-fixup_workers workqueue with btrfs_workqueue.

2014-02-27 Thread Qu Wenruo
Replace the fs_info-fixup_workers with the newly created btrfs_workqueue. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Tested-by: David Sterba dste...@suse.cz --- Changelog: v1-v2: None v2-v3: - Use the btrfs_workqueue_struct to replace submit_workers. v3-v4: - Use the simplified

[PATCH v5 06/18] btrfs: Replace fs_info-delalloc_workers with btrfs_workqueue

2014-02-27 Thread Qu Wenruo
Much like the fs_info-workers, replace the fs_info-delalloc_workers use the same btrfs_workqueue. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Tested-by: David Sterba dste...@suse.cz --- Changelog: v1-v2: None v2-v3: None v3-v4: - Use the simplified btrfs_alloc_workqueue API. v4-v5

[PATCH v5 07/18] btrfs: Replace fs_info-submit_workers with btrfs_workqueue.

2014-02-27 Thread Qu Wenruo
Much like the fs_info-workers, replace the fs_info-submit_workers use the same btrfs_workqueue. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Tested-by: David Sterba dste...@suse.cz --- Changelog: v1-v2: None v2-v3: None v3-v4: - Use the simplified btrfs_alloc_workqueue API. v4-v5

[PATCH v5 14/18] btrfs: Replace fs_info-delayed_workers workqueue with btrfs_workqueue.

2014-02-27 Thread Qu Wenruo
Replace the fs_info-delayed_workers with the newly created btrfs_workqueue. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Tested-by: David Sterba dste...@suse.cz --- Changelog: v1-v2: None v2-v3: - Use the btrfs_workqueue_struct to replace submit_workers. v3-v4: - Use the simplified

[PATCH v5 11/18] btrfs: Replace fs_info-cache_workers workqueue with btrfs_workqueue.

2014-02-27 Thread Qu Wenruo
Replace the fs_info-cache_workers with the newly created btrfs_workqueue. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Tested-by: David Sterba dste...@suse.cz --- Changelog: v1-v2: None v2-v3: - Use the btrfs_workqueue_struct to replace submit_workers. v3-v4: - Use the simplified

[PATCH v5 08/18] btrfs: Replace fs_info-flush_workers with btrfs_workqueue.

2014-02-27 Thread Qu Wenruo
Replace the fs_info-submit_workers with the newly created btrfs_workqueue. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Tested-by: David Sterba dste...@suse.cz --- Changelog: v1-v2: None v2-v3: - Use the btrfs_workqueue_struct to replace submit_workers. v3-v4: - Use the simplified

[PATCH v5 05/18] btrfs: Replace fs_info-workers with btrfs_workqueue.

2014-02-27 Thread Qu Wenruo
Use the newly created btrfs_workqueue_struct to replace the original fs_info-workers Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Tested-by: David Sterba dste...@suse.cz --- Changelog: v1-v2: None v2-v3: None v3-v4: - Use the simplified btrfs_alloc_workqueue API. v4-v5: None --- fs

[PATCH v5 09/18] btrfs: Replace fs_info-endio_* workqueue with btrfs_workqueue.

2014-02-27 Thread Qu Wenruo
Replace the fs_info-endio_* workqueues with the newly created btrfs_workqueue. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Tested-by: David Sterba dste...@suse.cz --- Changelog: v1-v2: None v2-v3: - Use the btrfs_workqueue_struct to replace submit_workers. v3-v4: - Use the simplified

[PATCH v5 04/18] btrfs: Add threshold workqueue based on kernel workqueue

2014-02-27 Thread Qu Wenruo
on HDD. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Tested-by: David Sterba dste...@suse.cz --- Changelog: v2-v3: - Add thresholding mechanism to simulate the old thresholding mechanism. - Will not enable thresholding when thresh is set to small value. v3-v4: None v4-v5: None --- fs

[PATCH 02/27] btrfs-progs: Convert man page for btrfs-subvolume

2014-04-02 Thread Qu Wenruo
Convert man page for btrfs-subvolume. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile| 2 +- Documentation/btrfs-subvolume.txt | 172 ++ 2 files changed, 173 insertions(+), 1 deletion(-) create mode 100644

[PATCH 05/27] btrfs-progs: Convert man page for btrfs-device subcommand.

2014-04-02 Thread Qu Wenruo
Convert man page for btrfs-device subcommand. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile | 2 +- Documentation/btrfs-device.txt | 75 ++ 2 files changed, 76 insertions(+), 1 deletion(-) create mode 100644

[PATCH 01/27] btrfs-progs: Introduce asciidoc based man page and btrfs man page.

2014-04-02 Thread Qu Wenruo
for 'btrfs(8)'. This time, man page will be written in human-friendly asciidoc grammar and each commands of btrfs will have a separate man page, which I hope can reduce the effort to maintain the man page. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- .gitignore

[PATCH 23/27] btrfs-progs: Convert man page for btrfstune.

2014-04-02 Thread Qu Wenruo
Convert man page for btrfstune. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile | 2 +- Documentation/btrfstune.txt | 47 + 2 files changed, 48 insertions(+), 1 deletion(-) create mode 100644 Documentation

[PATCH 21/27] btrfs-progs: Convert man page for btrfs-map-logical.

2014-04-02 Thread Qu Wenruo
Convert man page for btrfs-map-logical. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile | 2 +- Documentation/btrfs-map-logical.txt | 49 + 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644

[PATCH 26/27] btrfs-progs: Convert man page for mkfs.btrfs.

2014-04-02 Thread Qu Wenruo
Convert man page for mkfs.btrfs. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile | 2 +- Documentation/mkfs.btrfs.txt | 133 +++ 2 files changed, 134 insertions(+), 1 deletion(-) create mode 100644 Documentation

[PATCH 22/27] btrfs-progs: Convert man page for btrfs-show-super.

2014-04-02 Thread Qu Wenruo
Convert man page for btrfs-show-super. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile | 2 +- Documentation/btrfs-show-super.txt | 53 ++ 2 files changed, 54 insertions(+), 1 deletion(-) create mode 100644

[PATCH 16/27] btrfs-progs: Convert man page for btrfsck

2014-04-02 Thread Qu Wenruo
Convert man page for btrfsck. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile| 2 +- Documentation/btrfsck.txt | 55 +++ 2 files changed, 56 insertions(+), 1 deletion(-) create mode 100644 Documentation/btrfsck.txt

[PATCH 25/27] btrfs-progs: Convert man page for fsck.btrfs.

2014-04-02 Thread Qu Wenruo
Convert man page for fsck.btrfs. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile | 2 +- Documentation/fsck.btrfs.txt | 51 2 files changed, 52 insertions(+), 1 deletion(-) create mode 100644 Documentation

[PATCH 27/27] btrfs-progs: Switch to the new asciidoc Documentation.

2014-04-02 Thread Qu Wenruo
Since all man page are converted to the new asciidoc, the old man page can be removed. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Makefile | 4 +- man/Makefile | 31 -- man/btrfs-convert.8.in | 33 -- man/btrfs-debug-tree.8.in | 35 -- man

[PATCH 24/27] btrfs-progs: Convert man page for btrfs-zero-log

2014-04-02 Thread Qu Wenruo
Convert man page for btrfs-zero-log Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile | 2 +- Documentation/btrfs-zero-log.txt | 39 +++ 2 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 Documentation

[PATCH 20/27] btrfs-progs: Convert man page for btrfs-image.

2014-04-02 Thread Qu Wenruo
Convert man page for btrfs-image. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile| 2 +- Documentation/btrfs-image.txt | 70 +++ 2 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 Documentation/btrfs

[PATCH 14/27] btrfs-progs: Convert man page for btrfs-replace.

2014-04-02 Thread Qu Wenruo
Convert man page for btrfs-replace. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile | 2 +- Documentation/btrfs-replace.txt | 76 + 2 files changed, 77 insertions(+), 1 deletion(-) create mode 100644 Documentation

[PATCH 07/27] btrfs-progs: Convert man page for btrfs-check.

2014-04-02 Thread Qu Wenruo
Convert man page for btrfs-check. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile| 2 +- Documentation/btrfs-check.txt | 45 +++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 Documentation/btrfs

[PATCH 17/27] btrfs-progs: Convert man page for btrfs-convert.

2014-04-02 Thread Qu Wenruo
Convert man page for btrfs-convert. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile | 2 +- Documentation/btrfs-convert.txt | 49 + 2 files changed, 50 insertions(+), 1 deletion(-) create mode 100644 Documentation

[PATCH 19/27] btrfs-progs: Convert man page for btrfs-find-root.

2014-04-02 Thread Qu Wenruo
Convert man page for btrfs-find-root. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile| 2 +- Documentation/btrfs-find-root.txt | 45 +++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 Documentation

[PATCH 18/27] btrfs-progs: Convert man page for btrfs-debug-tree.

2014-04-02 Thread Qu Wenruo
Convert man page for btrfs-debug-tree. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile | 2 +- Documentation/btrfs-debug-tree.txt | 50 ++ 2 files changed, 51 insertions(+), 1 deletion(-) create mode 100644

[PATCH 09/27] btrfs-progs: Convert man page for btrfs-inspect-internal

2014-04-02 Thread Qu Wenruo
Convert man page for btrfs-inspect-internal. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile | 2 +- Documentation/btrfs-inspect-internal.txt | 69 2 files changed, 70 insertions(+), 1 deletion(-) create mode 100644

[PATCH 08/27] btrfs-progs: Convert man page for btrfs-rescue

2014-04-02 Thread Qu Wenruo
Convert man page for btrfs-rescue. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile | 2 +- Documentation/btrfs-rescue.txt | 60 ++ 2 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 Documentation/btrfs

[PATCH 11/27] btrfs-progs: Convert man page for btrfs-receive.

2014-04-02 Thread Qu Wenruo
Convert man page for btrfs-receive. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile | 2 +- Documentation/btrfs-receive.txt | 58 + 2 files changed, 59 insertions(+), 1 deletion(-) create mode 100644 Documentation

[PATCH 10/27] btrfs-progs: Convert man page for btrfs-send.

2014-04-02 Thread Qu Wenruo
Convert man page for btrfs-send. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile | 2 +- Documentation/btrfs-send.txt | 60 2 files changed, 61 insertions(+), 1 deletion(-) create mode 100644 Documentation/btrfs

[PATCH 15/27] btrfs-progs: Convert man page for btrfs-dedup.

2014-04-02 Thread Qu Wenruo
Although the btrfs-dedup function is not available in mainline kernel, add the man page any way and add a warning into it. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile| 2 +- Documentation/btrfs-dedup.txt | 51 +++ 2

[PATCH 04/27] btrfs-progs: Convert man page for btrfs-balance.

2014-04-02 Thread Qu Wenruo
Convert man page for btrfs-balance. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile | 2 +- Documentation/btrfs-balance.txt | 77 + 2 files changed, 78 insertions(+), 1 deletion(-) create mode 100644 Documentation

[PATCH 03/27] btrfs-progs: Convert man page for filesystem subcommand.

2014-04-02 Thread Qu Wenruo
Convert man page for filesystem subcommand. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile | 2 +- Documentation/btrfs-filesystem.txt | 163 + 2 files changed, 164 insertions(+), 1 deletion(-) create mode 100644

[PATCH 13/27] btrfs-progs: Convert and enhance the man page of btrfs-qgroup.

2014-04-02 Thread Qu Wenruo
Convert and enhance the man page of btrfs-qgroup. The original man page for btrfs-qgroup subcommand is almost useless for new user(like me), so adds more information on it. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile | 1 + Documentation/btrfs

[PATCH 06/27] btrfs-progs: Convert man page for btrfs-scrub

2014-04-02 Thread Qu Wenruo
Convert man page for btrfs-scrub. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile| 2 +- Documentation/btrfs-scrub.txt | 98 +++ 2 files changed, 99 insertions(+), 1 deletion(-) create mode 100644 Documentation/btrfs

[PATCH 12/27] btrfs-progs: Convert man page for btrfs-quota.

2014-04-02 Thread Qu Wenruo
Convert man page for btrfs-quota. Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile| 2 +- Documentation/btrfs-quota.txt | 59 +++ 2 files changed, 60 insertions(+), 1 deletion(-) create mode 100644 Documentation/btrfs

Re: [PATCH 14/27] btrfs-progs: Convert man page for btrfs-replace.

2014-04-07 Thread Qu Wenruo
于 2014年04月05日 04:29, Marc MERLIN 写道: On Wed, Apr 02, 2014 at 04:29:25PM +0800, Qu Wenruo wrote: +If the source device is not available anymore, or if the -r option is set, +the data is built only using the RAID redundancy mechanisms. +After completion of the operation, the source device

Re: [PATCH] btrfs: fix crash in remount(thread_pool=) case

2014-04-07 Thread Qu Wenruo
); with fs_info-scrub_wr_completion_workers = NULL; as scrub wqs get created only on user's demand. Patch skips not-created-yet workqueues. Signed-off-by: Sergei Trofimovich sly...@gentoo.org CC: Qu Wenruo quwen...@cn.fujitsu.com CC: Chris Mason c...@fb.com CC: Josef Bacik jba...@fb.com CC

Re: [PATCH 24/27] btrfs-progs: Convert man page for btrfs-zero-log

2014-04-07 Thread Qu Wenruo
于 2014年04月05日 02:46, Marc MERLIN 写道: On Wed, Apr 02, 2014 at 04:29:35PM +0800, Qu Wenruo wrote: Convert man page for btrfs-zero-log Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/Makefile | 2 +- Documentation/btrfs-zero-log.txt | 39

[PATCH] btrfs-progs: Fix the return value of btrfs_scan_kernel()

2014-04-08 Thread Qu Wenruo
Itoh t-i...@jp.fujitsu.com Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com Cc: Anand Jain anand.j...@oracle.com --- cmds-filesystem.c | 9 +++-- 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/cmds-filesystem.c b/cmds-filesystem.c index b81768b..49d3aa7 100644 --- a/cmds

Re: [PATCH] btrfs-progs: Fix the return value of btrfs_scan_kernel()

2014-04-08 Thread Qu Wenruo
, however below fix has a problem - when there is no search item you would return fail (1) always. Since btrfs_scan_kernel() has limited usage as you mention as well. So I will leave it to David to decide. Thanks, Anand On 08/04/2014 17:16, Qu Wenruo wrote: btrfs_scan_kernel() is only used

Re: [PATCH 1/2] btrfs-progs: Add missing devices check for mounted btrfs.

2014-04-09 Thread Qu Wenruo
the disk remove test in btrfs/003 first. (Though I think it could be much harder to archieve it) If xfstests devs can be persuaded and NOTE added to btrfs-progs document, I'll be completely OK for the revert of this patch. On 09/04/2014 11:26, Qu Wenruo wrote: Yes, the deleted device scan

[PATCH] btrfs-progs: Force 'btrfs dev scan' not using old libblkid cache

2014-04-10 Thread Qu Wenruo
, a error message, which can be avoided and is unneeded, is output. This patch will force scan_for_btrfs() not to use cache to avoid the problem. Reported-by: Tsutomu Itoh t-i...@jp.fujitsu.com Singed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- utils.c | 3 ++- 1 file changed, 2 insertions(+), 1

[PATCH 1/2] btrfs-progs: Add device management related paragraph.

2014-04-10 Thread Qu Wenruo
Add device management related paragraph to better explain btrfs device management. Cc: Marc MERLIN m...@merlins.org Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/btrfs-balance.txt | 3 +++ Documentation/btrfs-device.txt | 42

[PATCH 2/2] btrfs-progs: Add explain on btrfs-zero-log.

2014-04-10 Thread Qu Wenruo
Add more explain on btrfs-zero-log about when to use it. Cc: Marc MERLIN m...@merlins.org Signed-off-by: Qu Wenruo quwen...@cn.fujitsu.com --- Documentation/btrfs-zero-log.txt | 18 ++ 1 file changed, 18 insertions(+) diff --git a/Documentation/btrfs-zero-log.txt b/Documentation

Re: [PATCH 1/2] btrfs-progs: Add device management related paragraph.

2014-04-11 Thread Qu Wenruo
Original Message Subject: Re: [PATCH 1/2] btrfs-progs: Add device management related paragraph. From: Marc MERLIN m...@merlins.org To: Qu Wenruo quwen...@cn.fujitsu.com Date: 2014年04月11日 14:10 On Fri, Apr 11, 2014 at 10:43:52AM +0800, Qu Wenruo wrote: Add device management

Re: [PATCH 1/2] btrfs-progs: Add device management related paragraph.

2014-04-13 Thread Qu Wenruo
Thanks for fixing the problems. Qu Original Message Subject: Re: [PATCH 1/2] btrfs-progs: Add device management related paragraph. From: David Sterba dste...@suse.cz To: Liu Bo bo.li@oracle.com Date: 2014年04月12日 01:34 On Fri, Apr 11, 2014 at 05:16:22PM +0800, Liu Bo

  1   2   3   4   5   6   7   8   9   10   >