@@ -1725,7 +1725,7 @@ static int btrfs_add_device(struct btrfs_trans_handle *trans,
17251725 * Function to update ctime/mtime for a given device path.
17261726 * Mainly used for ctime/mtime based probe like libblkid.
17271727 */
1728- static void update_dev_time (char * path_name )
1728+ static void update_dev_time (const char * path_name )
17291729{
17301730 struct file * filp ;
17311731
@@ -1851,7 +1851,8 @@ void btrfs_assign_next_active_device(struct btrfs_fs_info *fs_info,
18511851 fs_info -> fs_devices -> latest_bdev = next_device -> bdev ;
18521852}
18531853
1854- int btrfs_rm_device (struct btrfs_fs_info * fs_info , char * device_path , u64 devid )
1854+ int btrfs_rm_device (struct btrfs_fs_info * fs_info , const char * device_path ,
1855+ u64 devid )
18551856{
18561857 struct btrfs_device * device ;
18571858 struct btrfs_fs_devices * cur_devices ;
@@ -2091,7 +2092,7 @@ void btrfs_destroy_dev_replace_tgtdev(struct btrfs_fs_info *fs_info,
20912092}
20922093
20932094static int btrfs_find_device_by_path (struct btrfs_fs_info * fs_info ,
2094- char * device_path ,
2095+ const char * device_path ,
20952096 struct btrfs_device * * device )
20962097{
20972098 int ret = 0 ;
@@ -2118,7 +2119,7 @@ static int btrfs_find_device_by_path(struct btrfs_fs_info *fs_info,
21182119}
21192120
21202121int btrfs_find_device_missing_or_by_path (struct btrfs_fs_info * fs_info ,
2121- char * device_path ,
2122+ const char * device_path ,
21222123 struct btrfs_device * * device )
21232124{
21242125 * device = NULL ;
@@ -2151,7 +2152,8 @@ int btrfs_find_device_missing_or_by_path(struct btrfs_fs_info *fs_info,
21512152 * Lookup a device given by device id, or the path if the id is 0.
21522153 */
21532154int btrfs_find_device_by_devspec (struct btrfs_fs_info * fs_info , u64 devid ,
2154- char * devpath , struct btrfs_device * * device )
2155+ const char * devpath ,
2156+ struct btrfs_device * * device )
21552157{
21562158 int ret ;
21572159
@@ -2307,7 +2309,7 @@ static int btrfs_finish_sprout(struct btrfs_trans_handle *trans,
23072309 return ret ;
23082310}
23092311
2310- int btrfs_init_new_device (struct btrfs_fs_info * fs_info , char * device_path )
2312+ int btrfs_init_new_device (struct btrfs_fs_info * fs_info , const char * device_path )
23112313{
23122314 struct btrfs_root * root = fs_info -> dev_root ;
23132315 struct request_queue * q ;
@@ -2515,7 +2517,7 @@ int btrfs_init_new_device(struct btrfs_fs_info *fs_info, char *device_path)
25152517}
25162518
25172519int btrfs_init_dev_replace_tgtdev (struct btrfs_fs_info * fs_info ,
2518- char * device_path ,
2520+ const char * device_path ,
25192521 struct btrfs_device * srcdev ,
25202522 struct btrfs_device * * device_out )
25212523{
@@ -7102,7 +7104,7 @@ int btrfs_get_dev_stats(struct btrfs_fs_info *fs_info,
71027104 return 0 ;
71037105}
71047106
7105- void btrfs_scratch_superblocks (struct block_device * bdev , char * device_path )
7107+ void btrfs_scratch_superblocks (struct block_device * bdev , const char * device_path )
71067108{
71077109 struct buffer_head * bh ;
71087110 struct btrfs_super_block * disk_super ;
0 commit comments