Skip to content

Commit 54862d6

Browse files
asjkdave
authored andcommitted
btrfs: mark btrfs_dev_replace_start as static
There isn't any other consumer other than in its own file dev-replace.c. Signed-off-by: Anand Jain <anand.jain@oracle.com> Reviewed-by: Nikolay Borisov <nborisov@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
1 parent a9261d4 commit 54862d6

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

‎fs/btrfs/dev-replace.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,7 @@ static char* btrfs_dev_name(struct btrfs_device *device)
389389
return rcu_str_deref(device->name);
390390
}
391391

392-
int btrfs_dev_replace_start(struct btrfs_fs_info *fs_info,
392+
static int btrfs_dev_replace_start(struct btrfs_fs_info *fs_info,
393393
const char *tgtdev_name, u64 srcdevid, const char *srcdev_name,
394394
int read_src)
395395
{

‎fs/btrfs/dev-replace.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ int btrfs_run_dev_replace(struct btrfs_trans_handle *trans,
1313
struct btrfs_fs_info *fs_info);
1414
int btrfs_dev_replace_by_ioctl(struct btrfs_fs_info *fs_info,
1515
struct btrfs_ioctl_dev_replace_args *args);
16-
int btrfs_dev_replace_start(struct btrfs_fs_info *fs_info,
17-
const char *tgtdev_name, u64 srcdevid, const char *srcdev_name,
18-
int read_src);
1916
void btrfs_dev_replace_status(struct btrfs_fs_info *fs_info,
2017
struct btrfs_ioctl_dev_replace_args *args);
2118
int btrfs_dev_replace_cancel(struct btrfs_fs_info *fs_info);

0 commit comments

Comments
 (0)