Loading fs/btrfs/raid56.h +2 −2 Original line number Original line Diff line number Diff line Loading @@ -7,7 +7,7 @@ #ifndef BTRFS_RAID56_H #ifndef BTRFS_RAID56_H #define BTRFS_RAID56_H #define BTRFS_RAID56_H static inline int nr_parity_stripes(struct map_lookup *map) static inline int nr_parity_stripes(const struct map_lookup *map) { { if (map->type & BTRFS_BLOCK_GROUP_RAID5) if (map->type & BTRFS_BLOCK_GROUP_RAID5) return 1; return 1; Loading @@ -17,7 +17,7 @@ static inline int nr_parity_stripes(struct map_lookup *map) return 0; return 0; } } static inline int nr_data_stripes(struct map_lookup *map) static inline int nr_data_stripes(const struct map_lookup *map) { { return map->num_stripes - nr_parity_stripes(map); return map->num_stripes - nr_parity_stripes(map); } } Loading Loading
fs/btrfs/raid56.h +2 −2 Original line number Original line Diff line number Diff line Loading @@ -7,7 +7,7 @@ #ifndef BTRFS_RAID56_H #ifndef BTRFS_RAID56_H #define BTRFS_RAID56_H #define BTRFS_RAID56_H static inline int nr_parity_stripes(struct map_lookup *map) static inline int nr_parity_stripes(const struct map_lookup *map) { { if (map->type & BTRFS_BLOCK_GROUP_RAID5) if (map->type & BTRFS_BLOCK_GROUP_RAID5) return 1; return 1; Loading @@ -17,7 +17,7 @@ static inline int nr_parity_stripes(struct map_lookup *map) return 0; return 0; } } static inline int nr_data_stripes(struct map_lookup *map) static inline int nr_data_stripes(const struct map_lookup *map) { { return map->num_stripes - nr_parity_stripes(map); return map->num_stripes - nr_parity_stripes(map); } } Loading