forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-12 a5969cabbb4660eab42b6ef0412cbbd1200cf14d
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 }