Displaying 4 results from an estimated 4 matches for "btrfs_comp_keys_type".
2015 Dec 27
1
[PATCH v2] btrfs: Fix logical to physical block address mapping
...amp;search_key, &path);
> do {
> do {
> + /* skip information about underlying block
> + * devices.
> + */
> + if (!btrfs_comp_keys_type(&ignore_key,
> + &path.item.key))
> + goto skip_dev_item;
Why not just a continue rather than a goto to an empty label?
> if (btrfs_comp_keys_type(&se...
2015 Dec 24
4
[PATCH] btrfs: Fix logical to physical block address mapping
...fo *fs)
clear_path(&path);
search_tree(fs, bfs->sb.chunk_root, &search_key, &path);
do {
+ ignore_key.objectid = BTRFS_DEV_ITEMS_OBJECTID;
+ ignore_key.type = BTRFS_DEV_ITEM_KEY;
do {
+ /* skip information about underlying block
+ * devices.
+ */
+ if (!btrfs_comp_keys_type(&ignore_key,
+ &path.item.key))
+ goto skip_dev_item;
if (btrfs_comp_keys_type(&search_key,
- &path.item.key))
+ &path.item.key))
break;
+
chunk = (struct btrfs_chunk *)(path.data);
- /* insert to mapping table, ignore stripes */
-...
2015 Dec 24
0
[PATCH v2] btrfs: Fix logical to physical block address mapping
...BJECTID;
search_key.type = BTRFS_CHUNK_ITEM_KEY;
@@ -371,16 +386,21 @@ static void btrfs_read_chunk_tree(struct fs_info *fs)
search_tree(fs, bfs->sb.chunk_root, &search_key, &path);
do {
do {
+ /* skip information about underlying block
+ * devices.
+ */
+ if (!btrfs_comp_keys_type(&ignore_key,
+ &path.item.key))
+ goto skip_dev_item;
if (btrfs_comp_keys_type(&search_key,
- &path.item.key))
+ &path.item.key))
break;
+
chunk = (struct btrfs_chunk *)(path.data);
- /* insert to mapping table, ignore stripes */
-...
2015 Dec 27
0
[PATCH v3] btrfs: Fix logical to physical block address mapping
...BJECTID;
search_key.type = BTRFS_CHUNK_ITEM_KEY;
@@ -371,16 +386,18 @@ static void btrfs_read_chunk_tree(struct fs_info *fs)
search_tree(fs, bfs->sb.chunk_root, &search_key, &path);
do {
do {
+ /* skip information about underlying block
+ * devices.
+ */
+ if (!btrfs_comp_keys_type(&ignore_key,
+ &path.item.key))
+ continue;
if (btrfs_comp_keys_type(&search_key,
- &path.item.key))
+ &path.item.key))
break;
+
chunk = (struct btrfs_chunk *)(path.data);
- /* insert to mapping table, ignore stripes */
- item.logic...