kernel/fs/btrfs/raid56.h
.. .. @@ -7,7 +7,7 @@ 7 7 #ifndef BTRFS_RAID56_H 8 8 #define BTRFS_RAID56_H 9 9 10 -static inline int nr_parity_stripes(struct map_lookup *map)10 +static inline int nr_parity_stripes(const struct map_lookup *map)11 11 { 12 12 if (map->type & BTRFS_BLOCK_GROUP_RAID5) 13 13 return 1; .. .. @@ -17,7 +17,7 @@ 17 17 return 0; 18 18 } 19 19 20 -static inline int nr_data_stripes(struct map_lookup *map)20 +static inline int nr_data_stripes(const struct map_lookup *map)21 21 { 22 22 return map->num_stripes - nr_parity_stripes(map); 23 23 }