File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -787,7 +787,7 @@ static noinline struct btrfs_device *device_list_add(const char *path,
787
787
u64 found_transid = btrfs_super_generation (disk_super );
788
788
u64 devid = btrfs_stack_device_id (& disk_super -> dev_item );
789
789
dev_t path_devt ;
790
- int error ;
790
+ int ret ;
791
791
bool same_fsid_diff_dev = false;
792
792
bool has_metadata_uuid = (btrfs_super_incompat_flags (disk_super ) &
793
793
BTRFS_FEATURE_INCOMPAT_METADATA_UUID );
@@ -799,11 +799,11 @@ static noinline struct btrfs_device *device_list_add(const char *path,
799
799
return ERR_PTR (- EAGAIN );
800
800
}
801
801
802
- error = lookup_bdev (path , & path_devt );
803
- if (error ) {
802
+ ret = lookup_bdev (path , & path_devt );
803
+ if (ret ) {
804
804
btrfs_err (NULL , "failed to lookup block device for path %s: %d" ,
805
- path , error );
806
- return ERR_PTR (error );
805
+ path , ret );
806
+ return ERR_PTR (ret );
807
807
}
808
808
809
809
fs_devices = find_fsid_by_device (disk_super , path_devt , & same_fsid_diff_dev );
You can’t perform that action at this time.
0 commit comments