Lines Matching refs:num_stripes
803 u16 num_stripes; in btrfs_check_chunk_valid() local
814 num_stripes = btrfs_chunk_num_stripes(leaf, chunk); in btrfs_check_chunk_valid()
821 if (unlikely(!num_stripes)) { in btrfs_check_chunk_valid()
823 "invalid chunk num_stripes, have %u", num_stripes); in btrfs_check_chunk_valid()
826 if (unlikely(num_stripes < ncopies)) { in btrfs_check_chunk_valid()
829 num_stripes, ncopies); in btrfs_check_chunk_valid()
832 if (unlikely(nparity && num_stripes == nparity)) { in btrfs_check_chunk_valid()
835 num_stripes, nparity); in btrfs_check_chunk_valid()
931 num_stripes != btrfs_raid_array[BTRFS_RAID_RAID1].devs_min) || in btrfs_check_chunk_valid()
933 num_stripes != btrfs_raid_array[BTRFS_RAID_RAID1C3].devs_min) || in btrfs_check_chunk_valid()
935 num_stripes != btrfs_raid_array[BTRFS_RAID_RAID1C4].devs_min) || in btrfs_check_chunk_valid()
937 num_stripes < btrfs_raid_array[BTRFS_RAID_RAID5].devs_min) || in btrfs_check_chunk_valid()
939 num_stripes < btrfs_raid_array[BTRFS_RAID_RAID6].devs_min) || in btrfs_check_chunk_valid()
941 num_stripes != btrfs_raid_array[BTRFS_RAID_DUP].dev_stripes) || in btrfs_check_chunk_valid()
943 num_stripes != btrfs_raid_array[BTRFS_RAID_SINGLE].dev_stripes))) { in btrfs_check_chunk_valid()
946 num_stripes, sub_stripes, in btrfs_check_chunk_valid()
964 int num_stripes; in check_leaf_chunk_item() local
975 num_stripes = btrfs_chunk_num_stripes(leaf, chunk); in check_leaf_chunk_item()
977 if (num_stripes == 0) in check_leaf_chunk_item()
980 if (unlikely(btrfs_chunk_item_size(num_stripes) != in check_leaf_chunk_item()
985 btrfs_chunk_item_size(num_stripes)); in check_leaf_chunk_item()