summaryrefslogtreecommitdiff
path: root/check/mode-lowmem.c
diff options
context:
space:
mode:
authorSu Yue <suy.fnst@cn.fujitsu.com>2018-05-08 16:30:11 +0800
committerDavid Sterba <dsterba@suse.com>2018-06-07 16:37:32 +0200
commit04855a16d2cd6dbf01bab5a14efe085827478f13 (patch)
treea6e158c6b2f78921cd27b23a280605e4e737d2b9 /check/mode-lowmem.c
parentea8763bd05c26a14b7236cd5a4e9fef88d8f0ce4 (diff)
btrfs-progs: check: lowmem: end of removing parameters @trans in lowmem
Remove @trans in check_chunks_and_extents_lowmem(). After this patch, lowmem repair works again. Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'check/mode-lowmem.c')
-rw-r--r--check/mode-lowmem.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/check/mode-lowmem.c b/check/mode-lowmem.c
index ea6163a6..56eb9545 100644
--- a/check/mode-lowmem.c
+++ b/check/mode-lowmem.c
@@ -4933,7 +4933,6 @@ out:
*/
int check_chunks_and_extents_lowmem(struct btrfs_fs_info *fs_info)
{
- struct btrfs_trans_handle *trans = NULL;
struct btrfs_path path;
struct btrfs_key old_key;
struct btrfs_key key;
@@ -4945,14 +4944,6 @@ int check_chunks_and_extents_lowmem(struct btrfs_fs_info *fs_info)
root = fs_info->fs_root;
- if (repair) {
- trans = btrfs_start_transaction(fs_info->extent_root, 1);
- if (IS_ERR(trans)) {
- error("failed to start transaction before check");
- return PTR_ERR(trans);
- }
- }
-
root1 = root->fs_info->chunk_root;
ret = check_btrfs_root(root1, 0, 1);
err |= ret;
@@ -5022,10 +5013,6 @@ out:
err &= ~BG_ACCOUNTING_ERROR;
}
- if (trans)
- btrfs_commit_transaction(trans, root->fs_info->extent_root);
-
btrfs_release_path(&path);
-
return err;
}