diff options
author | Nikolay Borisov <nborisov@suse.com> | 2018-05-10 19:22:11 +0300 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-06-07 16:37:38 +0200 |
commit | 9e2bf8c8abecf878ea5928f2751e92433af124c7 (patch) | |
tree | 75f7d294bcfa8bc1fa50ea2aec1ae64f0711313a /qgroup-verify.c | |
parent | 6386ae4d8c6644630ab3f9aa1c92d8aed3b81aea (diff) |
btrfs-progs: Use symbolic names for read ahead behavior
Presently btrfs-progs haven't pulled the enum defining the symbolic
names of read ahead constants. This commit adds the enum and
simultaneously converts all usages to respective symbolic name.
No functional change, just making the code human readable.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'qgroup-verify.c')
-rw-r--r-- | qgroup-verify.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qgroup-verify.c b/qgroup-verify.c index 4deb9879..e2332be2 100644 --- a/qgroup-verify.c +++ b/qgroup-verify.c @@ -622,7 +622,7 @@ static void free_tree_blocks(void) ULIST_ITER_INIT(&uiter); while ((unode = ulist_next(tree_blocks, &uiter))) free(unode_tree_block(unode)); - ulist_free(tree_blocks); + ulist_free(tree_blocks); tree_blocks = NULL; } @@ -1160,7 +1160,7 @@ static int scan_extents(struct btrfs_fs_info *info, fprintf(stderr, "ERROR: Couldn't search slot: %d\n", ret); goto out; } - path.reada = 1; + path.reada = READA_BACK; while (1) { leaf = path.nodes[0]; |