diff options
author | David Sterba <dsterba@suse.cz> | 2014-06-04 18:41:45 +0200 |
---|---|---|
committer | Chris Mason <clm@fb.com> | 2014-09-17 13:37:12 -0700 |
commit | 962a298f35110edd8f326814ae41a3dd306ecb64 (patch) | |
tree | 87849276cdc00964137b4fb663eb54ef1a7eea1d /fs/btrfs/scrub.c | |
parent | 3abdbd780e9d75f0648b8a502c3789857b1e92ce (diff) | |
download | linux-stable-962a298f35110edd8f326814ae41a3dd306ecb64.tar.gz linux-stable-962a298f35110edd8f326814ae41a3dd306ecb64.tar.bz2 linux-stable-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/scrub.c')
-rw-r--r-- | fs/btrfs/scrub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/scrub.c b/fs/btrfs/scrub.c index f4a41f37be22..053dd000d4ef 100644 --- a/fs/btrfs/scrub.c +++ b/fs/btrfs/scrub.c @@ -2714,7 +2714,7 @@ int scrub_enumerate_chunks(struct scrub_ctx *sctx, if (found_key.objectid != scrub_dev->devid) break; - if (btrfs_key_type(&found_key) != BTRFS_DEV_EXTENT_KEY) + if (found_key.type != BTRFS_DEV_EXTENT_KEY) break; if (found_key.offset >= end) |