hc
2024-05-10 9999e48639b3cecb08ffb37358bcba3b48161b29
kernel/fs/btrfs/raid56.h
....@@ -7,7 +7,7 @@
77 #ifndef BTRFS_RAID56_H
88 #define BTRFS_RAID56_H
99
10
-static inline int nr_parity_stripes(struct map_lookup *map)
10
+static inline int nr_parity_stripes(const struct map_lookup *map)
1111 {
1212 if (map->type & BTRFS_BLOCK_GROUP_RAID5)
1313 return 1;
....@@ -17,7 +17,7 @@
1717 return 0;
1818 }
1919
20
-static inline int nr_data_stripes(struct map_lookup *map)
20
+static inline int nr_data_stripes(const struct map_lookup *map)
2121 {
2222 return map->num_stripes - nr_parity_stripes(map);
2323 }