summaryrefslogtreecommitdiff
path: root/volumes.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-09-13 12:00:17 +0200
committerDavid Sterba <dsterba@suse.com>2016-10-03 11:33:15 +0200
commit890f4a61d7f4563af24617e7b2a5002cb2bf04cf (patch)
tree5396da9d1794403f8420f87c2b26c81e3e8ba5e9 /volumes.c
parent555743075b5cc924021dd1e1a4a4697ee91441d8 (diff)
btrfs-progs: cleanup, kill trivial btrfs_key_type helper
Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'volumes.c')
-rw-r--r--volumes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/volumes.c b/volumes.c
index b0edbacb..da797517 100644
--- a/volumes.c
+++ b/volumes.c
@@ -367,7 +367,7 @@ no_more_items:
goto check_pending;
}
}
- if (btrfs_key_type(&key) != BTRFS_DEV_EXTENT_KEY) {
+ if (key.type != BTRFS_DEV_EXTENT_KEY) {
goto next;
}
@@ -741,7 +741,7 @@ static int btrfs_device_avail_bytes(struct btrfs_trans_handle *trans,
goto next;
if (key.objectid > device->devid)
break;
- if (btrfs_key_type(&key) != BTRFS_DEV_EXTENT_KEY)
+ if (key.type != BTRFS_DEV_EXTENT_KEY)
goto next;
if (key.offset > search_end)
break;