diff options
author | Qu Wenruo <wqu@suse.com> | 2018-09-28 09:53:30 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2018-10-31 18:24:14 +0100 |
commit | 9f6d9ec10cdeb93fefe120417dabd0d43465b2fd (patch) | |
tree | 5297c1eed3d573ca281224ab5e24813b3af9c0f2 /print-tree.h | |
parent | 0bbd407cbbd5746ac2f0f3ec4d89087276cf7510 (diff) |
btrfs-progs: print-tree: Use bool for @follow
Just a minor cleanup to make the parameter easier to read.
Signed-off-by: Qu Wenruo <wqu@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'print-tree.h')
-rw-r--r-- | print-tree.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/print-tree.h b/print-tree.h index 9e041a34..d4721b60 100644 --- a/print-tree.h +++ b/print-tree.h @@ -25,14 +25,14 @@ void btrfs_print_leaf(struct extent_buffer *l); * Print a tree block (applies to both node and leaf). * * @eb: Tree block - * @follow: Set non-zero to print all its children. + * @follow: Set true to print all its children. * @traverse: The traverse order. Support DFS and BFS. * Will fallback to DFS for unknown order. */ #define BTRFS_PRINT_TREE_DFS 0 #define BTRFS_PRINT_TREE_BFS 1 #define BTRFS_PRINT_TREE_DEFAULT BTRFS_PRINT_TREE_DFS -void btrfs_print_tree(struct extent_buffer *eb, int follow, int traverse); +void btrfs_print_tree(struct extent_buffer *eb, bool follow, int traverse); void btrfs_print_key(struct btrfs_disk_key *disk_key); void print_chunk_item(struct extent_buffer *eb, struct btrfs_chunk *chunk); |