diff options
Diffstat (limited to 'btrfs-calc-size.c')
-rw-r--r-- | btrfs-calc-size.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/btrfs-calc-size.c b/btrfs-calc-size.c index a832ee0b..5eabdfc2 100644 --- a/btrfs-calc-size.c +++ b/btrfs-calc-size.c @@ -326,7 +326,7 @@ static int calc_root_size(struct btrfs_root *tree_root, struct btrfs_key *key, int size_fail = 0; root = btrfs_read_fs_root(tree_root->fs_info, key); - if (!root) { + if (IS_ERR(root)) { fprintf(stderr, "Failed to read root %Lu\n", key->objectid); return 1; } |