summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ioctl.c
diff options
context:
space:
mode:
authorSu Yue <suy.fnst@cn.fujitsu.com>2018-04-02 05:24:11 -0400
committerDavid Sterba <dsterba@suse.com>2018-05-28 07:12:11 -0400
commitc065f5b1cf52d50b9518aa02c7e50415820895af (patch)
treeceabc0f531cca56d4cec583a157b1b4f35837602 /fs/btrfs/ioctl.c
parent29d2b84cf92780b74fd768f5506b0fc8dab56237 (diff)
btrfs: rename btrfs_get_block_group_info and make it static
The function btrfs_get_block_group_info() was introduced by the commit 5af3e8cce8b7 ("Btrfs: make filesystem read-only when submitting barrier fails") which used it in disk-io.c. However, the function is only called in ioctl.c now. Its parameter type btrfs_ioctl_space_info* is only for ioctl. So, make it static and rename it to be original name get_block_group_info. No functional change. Signed-off-by: Su Yue <suy.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ioctl.c')
-rw-r--r--fs/btrfs/ioctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 632e26d6f7ce..61a58214681c 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -4007,8 +4007,8 @@ out:
4007 return ret; 4007 return ret;
4008} 4008}
4009 4009
4010void btrfs_get_block_group_info(struct list_head *groups_list, 4010static void get_block_group_info(struct list_head *groups_list,
4011 struct btrfs_ioctl_space_info *space) 4011 struct btrfs_ioctl_space_info *space)
4012{ 4012{
4013 struct btrfs_block_group_cache *block_group; 4013 struct btrfs_block_group_cache *block_group;
4014 4014
@@ -4124,8 +4124,8 @@ static long btrfs_ioctl_space_info(struct btrfs_fs_info *fs_info,
4124 down_read(&info->groups_sem); 4124 down_read(&info->groups_sem);
4125 for (c = 0; c < BTRFS_NR_RAID_TYPES; c++) { 4125 for (c = 0; c < BTRFS_NR_RAID_TYPES; c++) {
4126 if (!list_empty(&info->block_groups[c])) { 4126 if (!list_empty(&info->block_groups[c])) {
4127 btrfs_get_block_group_info( 4127 get_block_group_info(&info->block_groups[c],
4128 &info->block_groups[c], &space); 4128 &space);
4129 memcpy(dest, &space, sizeof(space)); 4129 memcpy(dest, &space, sizeof(space));
4130 dest++; 4130 dest++;
4131 space_args.total_spaces++; 4131 space_args.total_spaces++;