search for: skip_dev_item

Displaying 3 results from an estimated 3 matches for "skip_dev_item".

2015 Dec 27
1
[PATCH v2] btrfs: Fix logical to physical block address mapping
...+ * 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(&search_key, > - &path.item.key)) > + &path.i...
2015 Dec 24
4
[PATCH] btrfs: Fix logical to physical block address mapping
...;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 */ - item.logical = path.item.key.offset; - item.length = chunk->length;...
2015 Dec 24
0
[PATCH v2] btrfs: Fix logical to physical block address mapping
...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 */ - item.logical = path.item.key.offset; - item.length = chunk->length;...