summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/volumes.c
diff options
context:
space:
mode:
authorDavid Sterba2018-03-21 02:05:27 +0100
committerDavid Sterba2018-05-28 18:07:26 +0200
commit008ef0969dd966ccb567d9c5c6e606f68119a380 (patch)
treef35b6138a892cbcdd135bd9c10fad348bfb0d38a /fs/btrfs/volumes.c
parentbtrfs: move and comment read-only check in btrfs_cancel_balance (diff)
downloadkernel-qcow2-linux-008ef0969dd966ccb567d9c5c6e606f68119a380.tar.gz
kernel-qcow2-linux-008ef0969dd966ccb567d9c5c6e606f68119a380.tar.xz
kernel-qcow2-linux-008ef0969dd966ccb567d9c5c6e606f68119a380.zip
btrfs: drop lock parameter from update_ioctl_balance_args and rename
The parameter controls locking of the stats part but we can lock it unconditionally, as this only happens once when balance starts. This is not performance critical. Add the prefix for an exported function. Reviewed-by: Anand Jain <anand.jain@oracle.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/volumes.c')
-rw-r--r--fs/btrfs/volumes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/volumes.c b/fs/btrfs/volumes.c
index ff97f4749028..197b91b0e15b 100644
--- a/fs/btrfs/volumes.c
+++ b/fs/btrfs/volumes.c
@@ -3918,7 +3918,7 @@ int btrfs_balance(struct btrfs_balance_control *bctl,
if (bargs) {
memset(bargs, 0, sizeof(*bargs));
- update_ioctl_balance_args(fs_info, 0, bargs);
+ btrfs_update_ioctl_balance_args(fs_info, bargs);
}
if ((ret && ret != -ECANCELED && ret != -ENOSPC) ||