summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJosh Soref <jsoref@users.noreply.github.com>2018-11-26 18:09:54 +0100
committerDavid Sterba <dsterba@suse.com>2018-11-26 18:24:49 +0100
commit33d375bc202ab04c268badbf08abc4a152d2c075 (patch)
treee2375f19746f4874e0c352e1c58132ec18b7b088
parent2cd4a76ea9914c35b0fb614ad68aa9aefd7e5dd7 (diff)
btrfs-progs: check: fix typo in device_extent_record::chunk_objectid
This header is exported to /usr/include/btrfs but there are no known users, so the change should be safe. Generated by https://github.com/jsoref/spelling Issue: #154 Author: Josh Soref <jsoref@users.noreply.github.com> Signed-off-by: David Sterba <dsterba@suse.com>
-rw-r--r--btrfsck.h2
-rw-r--r--check/main.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/btrfsck.h b/btrfsck.h
index e16f52f5..020593c9 100644
--- a/btrfsck.h
+++ b/btrfsck.h
@@ -113,7 +113,7 @@ struct device_extent_record {
u8 type;
u64 offset;
- u64 chunk_objecteid;
+ u64 chunk_objectid;
u64 chunk_offset;
u64 length;
};
diff --git a/check/main.c b/check/main.c
index 730d2494..db18827b 100644
--- a/check/main.c
+++ b/check/main.c
@@ -5043,7 +5043,7 @@ btrfs_new_device_extent_record(struct extent_buffer *leaf,
rec->offset = key->offset;
ptr = btrfs_item_ptr(leaf, slot, struct btrfs_dev_extent);
- rec->chunk_objecteid =
+ rec->chunk_objectid =
btrfs_dev_extent_chunk_objectid(leaf, ptr);
rec->chunk_offset =
btrfs_dev_extent_chunk_offset(leaf, ptr);