diff options
Diffstat (limited to 'fs/btrfs/raid56.h')
-rw-r--r-- | fs/btrfs/raid56.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/btrfs/raid56.h b/fs/btrfs/raid56.h index f5d4c13a8dbc..2503485db859 100644 --- a/fs/btrfs/raid56.h +++ b/fs/btrfs/raid56.h | |||
@@ -7,7 +7,7 @@ | |||
7 | #ifndef BTRFS_RAID56_H | 7 | #ifndef BTRFS_RAID56_H |
8 | #define BTRFS_RAID56_H | 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 | if (map->type & BTRFS_BLOCK_GROUP_RAID5) | 12 | if (map->type & BTRFS_BLOCK_GROUP_RAID5) |
13 | return 1; | 13 | return 1; |
@@ -17,7 +17,7 @@ static inline int nr_parity_stripes(struct map_lookup *map) | |||
17 | return 0; | 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 | return map->num_stripes - nr_parity_stripes(map); | 22 | return map->num_stripes - nr_parity_stripes(map); |
23 | } | 23 | } |