diff options
author | David Sterba <dsterba@suse.cz> | 2014-06-04 18:41:45 +0200 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-09-17 22:37:12 +0200 |
commit | 962a298f35110edd8f326814ae41a3dd306ecb64 (patch) | |
tree | 87849276cdc00964137b4fb663eb54ef1a7eea1d /fs/btrfs/extent_io.c | |
parent | btrfs: make close_ctree return void (diff) | |
download | linux-962a298f35110edd8f326814ae41a3dd306ecb64.tar.xz linux-962a298f35110edd8f326814ae41a3dd306ecb64.zip |
btrfs: kill the key type accessor helpers
btrfs_set_key_type and btrfs_key_type are used inconsistently along with
open coded variants. Other members of btrfs_key are accessed directly
without any helpers anyway.
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/extent_io.c')
-rw-r--r-- | fs/btrfs/extent_io.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/extent_io.c b/fs/btrfs/extent_io.c index af0359dcf337..1009fa8a08ef 100644 --- a/fs/btrfs/extent_io.c +++ b/fs/btrfs/extent_io.c @@ -4224,7 +4224,7 @@ int extent_fiemap(struct inode *inode, struct fiemap_extent_info *fieinfo, WARN_ON(!ret); path->slots[0]--; btrfs_item_key_to_cpu(path->nodes[0], &found_key, path->slots[0]); - found_type = btrfs_key_type(&found_key); + found_type = found_key.type; /* No extents, but there might be delalloc bits */ if (found_key.objectid != btrfs_ino(inode) || |