Commit b29b7b9
btrfs: make btrfs_should_delete_dir_index() return a bool instead
There's no need to return errors and we currently return 1 in case the
index should be deleted and 0 otherwise, so change the return type from
int to bool as this is a boolean function and it's more clear this way.
Reviewed-by: Boris Burkov <boris@bur.io>
Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>1 parent ff8af8f commit b29b7b9
2 files changed
+4
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1734 | 1734 | | |
1735 | 1735 | | |
1736 | 1736 | | |
1737 | | - | |
1738 | | - | |
| 1737 | + | |
1739 | 1738 | | |
1740 | 1739 | | |
1741 | | - | |
| 1740 | + | |
1742 | 1741 | | |
1743 | 1742 | | |
1744 | 1743 | | |
1745 | 1744 | | |
1746 | 1745 | | |
1747 | | - | |
| 1746 | + | |
1748 | 1747 | | |
1749 | 1748 | | |
1750 | 1749 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
150 | 150 | | |
151 | 151 | | |
152 | 152 | | |
153 | | - | |
154 | | - | |
| 153 | + | |
155 | 154 | | |
156 | 155 | | |
157 | 156 | | |
| |||
0 commit comments