mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-23 23:50:51 +07:00
btrfs: constify map parameter for nr_parity_stripes and nr_data_stripes
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
158da513b1
commit
72ad813157
@ -7,7 +7,7 @@
|
||||
#ifndef 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)
|
||||
return 1;
|
||||
@ -17,7 +17,7 @@ static inline int nr_parity_stripes(struct map_lookup *map)
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user