Re: [PATCH 1/5] fstests: filter: Introduce filter to filter out offset for xfs_io

2018-01-10 Thread Qu Wenruo
On 2018年01月11日 15:23, Eryu Guan wrote: > On Thu, Jan 11, 2018 at 02:55:57PM +0800, Qu Wenruo wrote: >> Some test cases (AFAIK, btrfs RAID recovery test cases) read out certain >> location to verify its data. >> >> Such read is mostly OK, but the golden output contains the on-disk >> offset,

[PATCH v3 03/17] btrfs-progs: lowmem check: assign @parent early in repair_extent_data_item()

2018-01-10 Thread Su Yue
The variable @eb is assigned to leaf in fs_tree before insertion of backref. It will causes wrong parent of new inserted backref. Set @parent in the begin solves the problem. Reviewed-by: Qu Wenruo Signed-off-by: Su Yue --- cmds-check.c | 10 +-

[PATCH v3 00/17] btrfs-progs: lowmem check: avoid extents overwrite

2018-01-10 Thread Su Yue
This patchset can be fetched from my github: https://github.com/Damenly/btrfs-progs/tree/lowmem based on kdave/devel. Thanks to Qu Wenruo's ideas and suggestions first. Patch[1-3] fix minor problems of lowmem repair. Patch[4-8] introduce two ways to avoid extents overwrite: 1) Traverse trees

[PATCH v3 09/17] btrfs-progs: lowmem check: start to remove parameters @trans in lowmem

2018-01-10 Thread Su Yue
Since extents can be avoid overwrite by excluding or new chunk allocation. It's unnessesary to do all repairs in one transaction. This patch removes parameter @trans of repair_extent_data_item(). repair_extent_data_item() calls try_avoid_extents_overwrite() and starts a transaction by itself.

[PATCH v3 08/17] btrfs-progs: lowmem check: exclude extents if init-extent-tree in lowmem

2018-01-10 Thread Su Yue
If options '--init-extent-tree' and '--mode=lowmem' are both input, all metadata blocks will be traversed twice. First one is done by pin_metadata_blocks() in reinit_extent_tree(). Second one is in check_chunks_and_extents_v2(). Excluding instead of pining metadata blocks before reinit extent

[PATCH v3 06/17] btrfs-progs: lowmem check: introduce force_cow_in_new_chunk()

2018-01-10 Thread Su Yue
Introduce create_chunk_and_block_block_group() to allocate new chunk and corresponding block group. The new function force_cow_in_new_chunk() first allocates new chunk and records its start. Then it modifies all metadata block groups cached and full. Finally it marks the new block group uncached

[PATCH v3 11/17] btrfs-progs: lowmem check: remove parameter @trans of repair_chunk_item()

2018-01-10 Thread Su Yue
This patch removes parameter @trans of repair_chunk_item(). It calls try_avoid_extents_overwrite() and starts a transaction by itself. Note: This patch and next patches cause error in lowmem repair like: "Error: Commit_root already set when starting transaction". This error will disappear after

[PATCH v3 10/17] btrfs-progs: lowmem check: remove parameter @trans of delete_extent_item()

2018-01-10 Thread Su Yue
This patch removes the parameter @trans of delete_extent_item(). It calls try_avoid_extents_overwrite() and starts a transaction by itself. Note: This patch and next patches cause error in lowmem repair like: "Error: Commit_root already set when starting transaction". This error will disappear

[PATCH v3 02/17] btrfs-progs: lowmem check: record returned errors after walk_down_tree_v2()

2018-01-10 Thread Su Yue
In lowmem mode with '--repair', check_chunks_and_extents_v2() will fix accounting in block groups and clear the error bit BG_ACCOUNTING_ERROR. However, return value of check_btrfs_root() doesn't contain error bits. If extent tree is on error, lowmem repair always prints error and returns nonzero

[PATCH v3 17/17] btrfs-progs: lowmem check: end of removing parameters @trans in lowmem

2018-01-10 Thread Su Yue
Remove @trans in check_chunks_and_extents. After this patch, Lowmem repair should work again. Signed-off-by: Su Yue --- cmds-check.c | 12 1 file changed, 12 deletions(-) diff --git a/cmds-check.c b/cmds-check.c index 4d6245fa909b..4884d78681ab 100644 ---

[PATCH v3 05/17] btrfs-progs: lowmem check: introduce mark/clear_block_groups_full()

2018-01-10 Thread Su Yue
Excluding or pining all metadata blocks is not time-efficient for large storage filesystems. Here is another way to mark all metadata block groups full and allocate a new chunk for CoW. So new reservered extents never overwrite extents. Introduce modify_block_groups_cache() to modify all blocks

[PATCH v3 01/17] btrfs-progs: lowmem check: release path in repair_extent_data_item()

2018-01-10 Thread Su Yue
In repair_extent_data_item(), path is not be released if some errors occurs which causes extent buffer leak. So release path in end of the function. Reviewed-by: Qu Wenruo Signed-off-by: Su Yue --- cmds-check.c | 1 + 1 file changed, 1 insertion(+)

[PATCH v3 12/17] btrfs-progs: lowmem check: remove parameter @trans of repair_extent_item()

2018-01-10 Thread Su Yue
This patch removes parameter @trans of repair_extent_item(). It calls try_avoid_extents_overwrite() and starts a transaction by itself. Note: This patch and next patches cause error in lowmem repair like: "Error: Commit_root already set when starting transaction". This error will disappear after

[PATCH v3 13/17] btrfs-progs: lowmem check: remove parameter @trans of check_leaf_items()

2018-01-10 Thread Su Yue
This patch removes parameter @trans of check_leaf_items(). Note: This patch and next patches cause error in lowmem repair like: "Error: Commit_root already set when starting transaction". This error will disappear after removing @trans finished. Signed-off-by: Su Yue

[PATCH v3 15/17] btrfs-progs: lowmem check: remove parameter @trans of check_btrfs_root()

2018-01-10 Thread Su Yue
Remove parameters @trans of delete_extent_item() and walk_down_tree_v2(). Signed-off-by: Su Yue --- cmds-check.c | 18 -- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/cmds-check.c b/cmds-check.c index 473d5a13cf3b..1c93b1178b23 100644

[PATCH v3 07/17] btrfs-progs: lowmem check: introduce try_avoid_extents_overwrite()

2018-01-10 Thread Su Yue
Define a global enum extents_operation to record extents are excluded or new chunk is allocated for extents. Another global u64 last_allocated_chunk records the last chunk start allocated by lowmem repair. Although global variable is not so graceful, it simplifies codes much. New function

[PATCH v3 16/17] btrfs-progs: lowmem check: introduce repair_block_accounting()

2018-01-10 Thread Su Yue
Introduce repair_block_accounting() which calls btrfs_fix_block_accounting() to repair block group accouting. Replace btrfs_fix_block_accounting() with the new function. Signed-off-by: Su Yue --- cmds-check.c | 26 +- 1 file changed, 25

[PATCH v3 04/17] btrfs-progs: lowmem check: exclude extents of metadata blocks

2018-01-10 Thread Su Yue
Commit d17d6663c99c ("btrfs-progs: lowmem check: Fix regression which screws up extent allocator") removes pin_metadata_blocks() from lowmem repair. So we have to find another way to exclude extents which should be occupied by tree blocks. Modify pin_down_tree_blocks() only for code reuse. So

[PATCH v3 14/17] btrfs-progs: lowmem check: remove parameter @trans of repair_tree_back_ref()

2018-01-10 Thread Su Yue
This patch removes parameter @trans of repair_tree_back_ref(). It calls try_avoid_extents_overwrite() and starts a transaction by itself. Note: This patch and next patches cause error in lowmem repair like: "Error: Commit_root already set when starting transaction". This error will disappear

Re: [PATCH v2] btrfs: use enum instead of constant value

2018-01-10 Thread Nikolay Borisov
On 11.01.2018 08:59, Gu Jinxiang wrote: > Use enum READA_FORWARD instead of integers value to keep source robust. > > Changelog: > v2->v1: change enum from READA_BACK to READA_FORWARD, since according > to the logic of the source, it should reada_for_search forward, not > backward. > And,

Re: [PATCH 1/5] fstests: filter: Introduce filter to filter out offset for xfs_io

2018-01-10 Thread Eryu Guan
On Thu, Jan 11, 2018 at 02:55:57PM +0800, Qu Wenruo wrote: > Some test cases (AFAIK, btrfs RAID recovery test cases) read out certain > location to verify its data. > > Such read is mostly OK, but the golden output contains the on-disk > offset, which can differ due to underlying chunk change. >

[PATCH v2] btrfs: use enum instead of constant value

2018-01-10 Thread Gu Jinxiang
Use enum READA_FORWARD instead of integers value to keep source robust. Changelog: v2->v1: change enum from READA_BACK to READA_FORWARD, since according to the logic of the source, it should reada_for_search forward, not backward. And, Reference: commit e4058b54d1e4 ("btrfs: cleanup, use enum

[PATCH 4/5] fstests: btrfs/142: Filter out offset to handle mkfs chunk layout change

2018-01-10 Thread Qu Wenruo
Due to recent mkfs.btrfs chunk layout change, offset in golden output is not flex to handle different mkfs chunk layout. So use _filter_xfs_io_offset to filter out offset so golden output can handle any chunk layout. Signed-off-by: Qu Wenruo --- tests/btrfs/142 | 9 ---

[PATCH 5/5] fstests: btrfs/143: Filter out offset to handle mkfs chunk layout change

2018-01-10 Thread Qu Wenruo
Due to recent mkfs.btrfs chunk layout change, offset in golden output is not flex to handle different mkfs chunk layout. So use _filter_xfs_io_offset to filter out offset so golden output can handle any chunk layout. Signed-off-by: Qu Wenruo --- tests/btrfs/143 | 9 ---

[PATCH 2/5] fstests: btrfs/140: Filter out offset to handle mkfs chunk layout change

2018-01-10 Thread Qu Wenruo
Due to recent mkfs.btrfs chunk layout change, offset in golden output is not flex to handle different mkfs chunk layout. So use _filter_xfs_io_offset to filter out offset so golden output can handle any chunk layout. Signed-off-by: Qu Wenruo --- tests/btrfs/140 | 9 ---

[PATCH 1/5] fstests: filter: Introduce filter to filter out offset for xfs_io

2018-01-10 Thread Qu Wenruo
Some test cases (AFAIK, btrfs RAID recovery test cases) read out certain location to verify its data. Such read is mostly OK, but the golden output contains the on-disk offset, which can differ due to underlying chunk change. (This time is mkfs chunk layout change for btrfs) So introduce macro

[PATCH 3/5] fstests: btrfs/141: Filter out offset to handle mkfs chunk layout change

2018-01-10 Thread Qu Wenruo
Due to recent mkfs.btrfs chunk layout change, offset in golden output is not flex enough to handle different mkfs chunk layout. So use _filter_xfs_io_offset to filter out offset so golden output can handle any chunk layout. Signed-off-by: Qu Wenruo --- tests/btrfs/141 | 9

Re: [PATCH v2 00/12] mkfs: Quota support through -R|--runtime quota

2018-01-10 Thread Qu Wenruo
Ping? Or do I need to rebase the patchset? Thanks, Qu On 2017年11月07日 16:42, Qu Wenruo wrote: > Can be fetched from github: > https://github.com/adam900710/btrfs-progs/tree/mkfs_qgroup > > This patchset adds quota support, which means the result fs will have > quota enabled by default, and its

[PATCH 06/67] btrfs-progs: add the stack prefix for disk_key_type set/get function

2018-01-10 Thread Lu Fengqi
The disk_key_type set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- chunk-recover.c | 2 +- cmds-check.c | 4 ++-- convert/common.c | 17 + ctree.c | 3 ++- ctree.h

[PATCH 02/67] btrfs-progs: add the stack prefix for block_group_chunk_objectid set/get function

2018-01-10 Thread Lu Fengqi
The block_group_chunk_objectid set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- chunk-recover.c | 2 +- convert/common.c | 2 +- ctree.h | 2 +- extent-tree.c| 5 +++-- print-tree.c |

[PATCH 15/67] btrfs-progs: add the stack prefix for root_last_snapshot set/get function

2018-01-10 Thread Lu Fengqi
The root_last_snapshot set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-check.c | 2 +- ctree.c | 2 +- ctree.h | 2 +- print-tree.c | 2 +- 4 files changed, 4 insertions(+), 4

[PATCH 17/67] btrfs-progs: add the stack prefix for root_ctransid set/get function

2018-01-10 Thread Lu Fengqi
The root_ctransid set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- ctree.h | 2 +- print-tree.c | 2 +- send-utils.c | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git

[PATCH 03/67] btrfs-progs: add the stack prefix for block_group_flags set/get function

2018-01-10 Thread Lu Fengqi
The block_group_flags set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- btrfs-fragments.c | 2 +- chunk-recover.c | 2 +- cmds-check.c | 6 +++--- convert/common.c | 2 +- ctree.h | 2

[PATCH 13/67] btrfs-progs: add the stack prefix for root_used set/get function

2018-01-10 Thread Lu Fengqi
The root_used set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- convert/common.c | 2 +- ctree.h | 3 ++- extent-tree.c| 4 ++-- mkfs/common.c| 2 +- print-tree.c | 2 +- 5 files

[PATCH 08/67] btrfs-progs: add the stack prefix for root_bytenr set/get function

2018-01-10 Thread Lu Fengqi
The root_bytenr set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-check.c | 12 ++-- cmds-inspect-dump-tree.c | 3 ++- cmds-restore.c | 2 +- convert/common.c

[PATCH 14/67] btrfs-progs: add the stack prefix for root_limit set/get function

2018-01-10 Thread Lu Fengqi
The root_limit set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- ctree.h | 3 ++- print-tree.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ctree.h b/ctree.h index

[PATCH 18/67] btrfs-progs: add the stack prefix for root_otransid set/get function

2018-01-10 Thread Lu Fengqi
The root_otransid set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- btrfs-list.c | 2 +- ctree.h | 2 +- print-tree.c | 2 +- send-utils.c | 5 +++-- 4 files changed, 6 insertions(+), 5

[PATCH 11/67] btrfs-progs: add the stack prefix for root_refs set/get function

2018-01-10 Thread Lu Fengqi
The root_refs set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-check.c | 16 convert/common.c | 2 +- ctree.h | 2 +- mkfs/common.c| 2 +- print-tree.c |

[PATCH 21/67] btrfs-progs: add the stack prefix for backup_tree_root set/get function

2018-01-10 Thread Lu Fengqi
The backup_tree_root set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- cmds-inspect-dump-tree.c | 4 ++-- ctree.h | 2 +- disk-io.c |

[PATCH 16/67] btrfs-progs: add the stack prefix for root_generation_v2 set/get function

2018-01-10 Thread Lu Fengqi
The root_generation_v2 set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- ctree.h | 2 +- root-tree.c | 6 -- send-utils.c | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git

[PATCH 10/67] btrfs-progs: add the stack prefix for root_dirid set/get function

2018-01-10 Thread Lu Fengqi
The root_dirid set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-check.c | 4 ++-- convert/main.c | 4 ++-- ctree.h| 3 ++- inode.c| 2 +- mkfs/main.c| 2 +- print-tree.c |

[PATCH 27/67] btrfs-progs: add the stack prefix for backup_extent_root set/get function

2018-01-10 Thread Lu Fengqi
The backup_extent_root set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- cmds-inspect-dump-tree.c | 4 ++-- ctree.h | 2 +- 3 files changed, 4

[PATCH 41/67] btrfs-progs: add the stack prefix for backup_num_devices set/get function

2018-01-10 Thread Lu Fengqi
The backup_num_devices set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- cmds-inspect-dump-tree.c | 2 +- ctree.h | 2 +- 3 files changed, 3

[PATCH 25/67] btrfs-progs: add the stack prefix for backup_chunk_root_gen set/get function

2018-01-10 Thread Lu Fengqi
The backup_chunk_root_gen set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- cmds-inspect-dump-tree.c | 2 +- ctree.h | 2 +- 3 files changed, 3

[PATCH 24/67] btrfs-progs: add the stack prefix for backup_chunk_root set/get function

2018-01-10 Thread Lu Fengqi
The backup_chunk_root set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- cmds-inspect-dump-tree.c | 4 ++-- ctree.h | 2 +- 3 files changed, 4

[PATCH 20/67] btrfs-progs: add the stack prefix for root_rtransid set/get function

2018-01-10 Thread Lu Fengqi
The root_rtransid set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- ctree.h | 2 +- print-tree.c | 2 +- send-utils.c | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git

[PATCH 39/67] btrfs-progs: add the stack prefix for backup_total_bytes set/get function

2018-01-10 Thread Lu Fengqi
The backup_total_bytes set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- cmds-inspect-dump-tree.c | 6 +++--- ctree.h | 2 +- 3 files changed, 5

[PATCH 19/67] btrfs-progs: add the stack prefix for root_stransid set/get function

2018-01-10 Thread Lu Fengqi
The root_stransid set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- ctree.h | 2 +- print-tree.c | 2 +- send-utils.c | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git

[PATCH 36/67] btrfs-progs: add the stack prefix for backup_csum_root set/get function

2018-01-10 Thread Lu Fengqi
The backup_csum_root set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- cmds-inspect-dump-tree.c | 4 ++-- ctree.h | 2 +- 3 files changed, 4

[PATCH 28/67] btrfs-progs: add the stack prefix for backup_extent_root_gen set/get function

2018-01-10 Thread Lu Fengqi
The backup_extent_root_gen set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- cmds-inspect-dump-tree.c | 2 +- ctree.h | 2 +- 3 files changed, 3

[PATCH 12/67] btrfs-progs: add the stack prefix for root_flags set/get function

2018-01-10 Thread Lu Fengqi
The root_flags set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- btrfs-list.c | 2 +- ctree.h | 2 +- print-tree.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git

[PATCH 38/67] btrfs-progs: add the stack prefix for backup_csum_root_level set/get function

2018-01-10 Thread Lu Fengqi
The backup_csum_root_level set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- ctree.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 09/67] btrfs-progs: add the stack prefix for root_level set/get function

2018-01-10 Thread Lu Fengqi
The root_level set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- backref.c | 2 +- cmds-check.c | 10 +- cmds-restore.c | 2 +- convert/main.c | 2 +- ctree.h| 2 +-

[PATCH 23/67] btrfs-progs: add the stack prefix for backup_tree_root_level set/get function

2018-01-10 Thread Lu Fengqi
The backup_tree_root_level set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- ctree.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 29/67] btrfs-progs: add the stack prefix for backup_extent_root_level set/get function

2018-01-10 Thread Lu Fengqi
The backup_extent_root_level set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- ctree.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff

[PATCH 22/67] btrfs-progs: add the stack prefix for backup_tree_root_gen set/get function

2018-01-10 Thread Lu Fengqi
The backup_tree_root_gen set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- cmds-inspect-dump-tree.c | 2 +- ctree.h | 2 +- disk-io.c

[PATCH 33/67] btrfs-progs: add the stack prefix for backup_dev_root set/get function

2018-01-10 Thread Lu Fengqi
The backup_dev_root set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- cmds-inspect-dump-tree.c | 2 +- ctree.h | 2 +- 3 files changed, 3

[PATCH 37/67] btrfs-progs: add the stack prefix for backup_csum_root_gen set/get function

2018-01-10 Thread Lu Fengqi
The backup_csum_root_gen set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- cmds-inspect-dump-tree.c | 2 +- ctree.h | 2 +- 3 files changed, 3

[PATCH 32/67] btrfs-progs: add the stack prefix for backup_fs_root_level set/get function

2018-01-10 Thread Lu Fengqi
The backup_fs_root_level set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- ctree.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 31/67] btrfs-progs: add the stack prefix for backup_fs_root_gen set/get function

2018-01-10 Thread Lu Fengqi
The backup_fs_root_gen set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- cmds-inspect-dump-tree.c | 4 ++-- ctree.h | 2 +- 3 files changed, 4

[PATCH 42/67] btrfs-progs: add the stack prefix for super_bytenr set/get function

2018-01-10 Thread Lu Fengqi
The super_bytenr set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- convert/common.c | 2 +- convert/main.c| 4 ++-- ctree.h | 3

[PATCH 35/67] btrfs-progs: add the stack prefix for backup_dev_root_level set/get function

2018-01-10 Thread Lu Fengqi
The backup_dev_root_level set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- ctree.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff

[PATCH 50/67] btrfs-progs: add the stack prefix for super_chunk_root_level set/get function

2018-01-10 Thread Lu Fengqi
The super_chunk_root_level set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- btrfs-find-root.c | 2 +- cmds-inspect-dump-super.c | 2 +- ctree.h | 2 +- disk-io.c

[PATCH 47/67] btrfs-progs: add the stack prefix for super_chunk_root_generation set/get function

2018-01-10 Thread Lu Fengqi
The super_chunk_root_generation set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- btrfs-find-root.c | 2 +- chunk-recover.c | 2 +- cmds-inspect-dump-super.c | 2 +- ctree.h

[PATCH 49/67] btrfs-progs: add the stack prefix for super_chunk_root set/get function

2018-01-10 Thread Lu Fengqi
The super_chunk_root set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- convert/common.c | 4 ++-- ctree.h | 2 +- disk-io.c |

[PATCH 62/67] btrfs-progs: add the stack prefix for super_compat_ro_flags set/get function

2018-01-10 Thread Lu Fengqi
The super_compat_ro_flags set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 4 ++-- ctree.h | 4 ++-- disk-io.c | 4 ++-- free-space-tree.c

[PATCH 51/67] btrfs-progs: add the stack prefix for super_log_root set/get function

2018-01-10 Thread Lu Fengqi
The super_log_root set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- btrfs-zero-log.c | 4 ++-- cmds-check.c | 4 ++-- cmds-inspect-dump-super.c | 2 +- cmds-rescue.c |

[PATCH 52/67] btrfs-progs: add the stack prefix for super_log_root_transid set/get function

2018-01-10 Thread Lu Fengqi
The super_log_root_transid set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- btrfs-find-root.c | 2 +- cmds-inspect-dump-super.c | 2 +- ctree.h | 2 +- 3 files changed, 3

[PATCH 66/67] btrfs-progs: add the stack prefix for super_uuid_tree_generation set/get function

2018-01-10 Thread Lu Fengqi
The super_uuid_tree_generation set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- btrfs-find-root.c | 2 +- cmds-inspect-dump-super.c | 2 +- ctree.h | 3 ++- 3 files changed, 4

[PATCH 48/67] btrfs-progs: add the stack prefix for super_root_level set/get function

2018-01-10 Thread Lu Fengqi
The super_root_level set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- btrfs-find-root.c | 2 +- cmds-inspect-dump-super.c | 2 +- ctree.h | 2 +- disk-io.c | 6

[PATCH 44/67] btrfs-progs: add the stack prefix for super_generation set/get function

2018-01-10 Thread Lu Fengqi
The super_generation set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- btrfs-find-root.c | 2 +- chunk-recover.c | 2 +- cmds-check.c | 2 +- cmds-inspect-dump-super.c

[PATCH 45/67] btrfs-progs: add the stack prefix for super_root set/get function

2018-01-10 Thread Lu Fengqi
The super_root set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 3 ++- cmds-restore.c| 3 ++- convert/common.c | 2 +- ctree.h | 2 +-

[PATCH 46/67] btrfs-progs: add the stack prefix for super_sys_array_size set/get function

2018-01-10 Thread Lu Fengqi
The super_sys_array_size set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- chunk-recover.c | 2 +- cmds-inspect-dump-super.c | 4 ++-- convert/common.c | 6 +++--- ctree.h

[PATCH 64/67] btrfs-progs: add the stack prefix for super_csum_type set/get function

2018-01-10 Thread Lu Fengqi
The super_csum_type set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- convert/common.c | 2 +- ctree.h | 4 ++-- disk-io.c |

[PATCH 57/67] btrfs-progs: add the stack prefix for super_nodesize set/get function

2018-01-10 Thread Lu Fengqi
The super_nodesize set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- chunk-recover.c | 4 ++-- cmds-check.c | 6 +++--- cmds-inspect-dump-super.c | 2 +- convert/common.c

[PATCH 43/67] btrfs-progs: add the stack prefix for super_flags set/get function

2018-01-10 Thread Lu Fengqi
The super_flags set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- btrfstune.c | 14 +++--- chunk-recover.c | 2 +- cmds-check.c | 2 +-

[PATCH 59/67] btrfs-progs: add the stack prefix for super_root_dir set/get function

2018-01-10 Thread Lu Fengqi
The super_root_dir set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- convert/main.c| 6 +++--- ctree.h | 2 +- dir-test.c|

[PATCH 54/67] btrfs-progs: add the stack prefix for super_total_bytes set/get function

2018-01-10 Thread Lu Fengqi
The super_total_bytes set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-check.c | 2 +- cmds-inspect-dump-super.c | 2 +- cmds-inspect-dump-tree.c | 2 +- convert/common.c |

[PATCH 61/67] btrfs-progs: add the stack prefix for super_compat_flags set/get function

2018-01-10 Thread Lu Fengqi
The super_compat_flags set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- ctree.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH 67/67] btrfs-progs: add the stack prefix for super_magic set/get function

2018-01-10 Thread Lu Fengqi
The super_magic set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 4 ++-- convert/common.c | 2 +- ctree.h | 3 ++- disk-io.c | 8

[PATCH 56/67] btrfs-progs: add the stack prefix for super_sectorsize set/get function

2018-01-10 Thread Lu Fengqi
The super_sectorsize set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- chunk-recover.c | 4 ++-- cmds-inspect-dump-super.c | 2 +- convert/common.c | 2 +- ctree.h

[PATCH 63/67] btrfs-progs: add the stack prefix for super_incompat_flags set/get function

2018-01-10 Thread Lu Fengqi
The super_incompat_flags set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- btrfstune.c | 4 ++-- cmds-inspect-dump-super.c | 4 ++-- convert/common.c | 2 +- ctree.h

[PATCH 60/67] btrfs-progs: add the stack prefix for super_num_devices set/get function

2018-01-10 Thread Lu Fengqi
The super_num_devices set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- convert/common.c | 2 +- ctree.h | 2 +- disk-io.c

[PATCH 65/67] btrfs-progs: add the stack prefix for super_cache_generation set/get function

2018-01-10 Thread Lu Fengqi
The super_cache_generation set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-check.c | 7 --- cmds-inspect-dump-super.c | 2 +- convert/common.c | 2 +- ctree.h

[PATCH 00/67] btrfs-progs: add the stack prefix for the set/get

2018-01-10 Thread Lu Fengqi
These set/get functions defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. I can't add an extent buffer version set/get function as the result of the function name conflict. To settle a matter once and for all, I have written a script to rename these functions. And, I will

[PATCH 30/67] btrfs-progs: add the stack prefix for backup_fs_root set/get function

2018-01-10 Thread Lu Fengqi
The backup_fs_root set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- cmds-inspect-dump-tree.c | 2 +- ctree.h | 2 +- 3 files changed, 3

[PATCH 07/67] btrfs-progs: add the stack prefix for root_generation set/get function

2018-01-10 Thread Lu Fengqi
The root_generation set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- btrfs-list.c | 4 ++-- cmds-check.c | 14 -- convert/common.c | 2 +- convert/main.c | 2 +- ctree.h

[PATCH 05/67] btrfs-progs: add the stack prefix for disk_key_offset set/get function

2018-01-10 Thread Lu Fengqi
The disk_key_offset set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- chunk-recover.c | 2 +- cmds-check.c | 4 ++-- convert/common.c | 16 ctree.c | 4 ++-- ctree.h

[PATCH 01/67] btrfs-progs: add the stack prefix for block_group_used set/get function

2018-01-10 Thread Lu Fengqi
The block_group_used set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- btrfs-fragments.c | 2 +- chunk-recover.c| 4 ++-- cmds-check.c | 2 +- convert/common.c | 2 +- ctree.h

[PATCH 53/67] btrfs-progs: add the stack prefix for super_log_root_level set/get function

2018-01-10 Thread Lu Fengqi
The super_log_root_level set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- btrfs-find-root.c | 2 +- btrfs-zero-log.c | 4 ++-- cmds-check.c | 2 +-

[PATCH 55/67] btrfs-progs: add the stack prefix for super_bytes_used set/get function

2018-01-10 Thread Lu Fengqi
The super_bytes_used set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- chunk-recover.c | 5 +++-- cmds-inspect-dump-super.c | 2 +- cmds-inspect-dump-tree.c | 2 +- convert/common.c

[PATCH 34/67] btrfs-progs: add the stack prefix for backup_dev_root_gen set/get function

2018-01-10 Thread Lu Fengqi
The backup_dev_root_gen set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- cmds-inspect-dump-tree.c | 4 ++-- ctree.h | 2 +- 3 files changed, 4

[PATCH 04/67] btrfs-progs: add the stack prefix for disk_key_objectid set/get function

2018-01-10 Thread Lu Fengqi
The disk_key_objectid set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- btrfs-list.c | 2 +- chunk-recover.c| 2 +- cmds-check.c | 14 -- convert/common.c | 15

[PATCH 40/67] btrfs-progs: add the stack prefix for backup_bytes_used set/get function

2018-01-10 Thread Lu Fengqi
The backup_bytes_used set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- cmds-inspect-dump-tree.c | 2 +- ctree.h | 2 +- 3 files changed, 3

[PATCH 26/67] btrfs-progs: add the stack prefix for backup_chunk_root_level set/get function

2018-01-10 Thread Lu Fengqi
The backup_chunk_root_level set/get function defined by BTRFS_SETGET_STACK_FUNCS macro is missing the prefix stack. Signed-off-by: Lu Fengqi --- cmds-inspect-dump-super.c | 2 +- ctree.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff

Re: hang in btrfs_async_reclaim_metadata_space

2018-01-10 Thread Adam Borowski
On Sun, Jan 07, 2018 at 01:17:19PM +0200, Nikolay Borisov wrote: > On 6.01.2018 07:10, Adam Borowski wrote: > > Hi! > > I got a reproducible infinite hang, reliably triggered by the testsuite of > > "flatpak"; fails on at least 4.15-rc6, 4.9.75, and on another machine with > > Debian's 4.14.2-1.

Re: [PATCH] btrfs: return 0 for success in btrfs_alloc_data_chunk_ondemand

2018-01-10 Thread Qu Wenruo
On 2018年01月11日 00:55, Josef Bacik wrote: > From: Josef Bacik > > My delayed refs rsv patches uncovered a problem in > btrfs_alloc_data_chunk_ondemand where we don't clear ret before > returning, so we could have whatever left over value we had from trying > to do a chunk

Re: [RFC PATCH] btrfs: Fix slight df misreporting when listing mixed block groups fs

2018-01-10 Thread Qu Wenruo
On 2018年01月10日 23:33, Nikolay Borisov wrote: > > > On 10.01.2018 03:30, Qu Wenruo wrote: >> That system chunk can be relocated by balance, and in that case new >> chunk may start beyond 1M. >> >> So the most reliable method would be manually checking the the first >> device extent of this

[PATCH v6] Add cli and ioctl to forget scanned device(s)

2018-01-10 Thread Anand Jain
v6: Use the changed fn name btrfs_free_stale_devices(). Change in title: Old v5: Cover-letter: [PATCH v5] Add cli and ioctl to ignore a scanned device Kernel: [PATCH v5] btrfs: introduce feature to ignore a btrfs device Progs: [PATCH v5] btrfs-progs: add 'btrfs device ignore' cli

[PATCH 1/1] btrfs-progs: add cli to forget one or all scanned devices

2018-01-10 Thread Anand Jain
This patch adds cli btrfs device forget [dev] which shall remove the relevant device entries in the kernel matching the dev. If no argument is given it shall remove all stale (device which are not mounted) from the kernel. Signed-off-by: Anand Jain --- cmds-device.c |

  1   2   >