* [PATCH] btrfs: Deprecate BTRFS_IOC_BALANCE ioctl
@ 2021-11-10 11:41 Nikolay Borisov
2021-11-10 14:06 ` Josef Bacik
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Nikolay Borisov @ 2021-11-10 11:41 UTC (permalink / raw)
To: linux-btrfs; +Cc: Nikolay Borisov
The v2 balance ioctl has been introduced more than 9 years ago. Users of
the old v1 ioctl should have long been migrated to it. It's time we
deprecate it and eventually remove it.
Signed-off-by: Nikolay Borisov <nborisov@suse.com>
---
fs/btrfs/ioctl.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/fs/btrfs/ioctl.c b/fs/btrfs/ioctl.c
index 238308f14474..dcf0772880b6 100644
--- a/fs/btrfs/ioctl.c
+++ b/fs/btrfs/ioctl.c
@@ -4013,6 +4013,9 @@ static long btrfs_ioctl_balance(struct file *file, void __user *arg)
bool need_unlock; /* for mut. excl. ops lock */
int ret;
+ if (!arg)
+ btrfs_warn(fs_info, "BTRFS_IOC_BALANCE ioctl is deprecated and will be removed in kernel 5.18");
+
if (!capable(CAP_SYS_ADMIN))
return -EPERM;
--
2.25.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH] btrfs: Deprecate BTRFS_IOC_BALANCE ioctl
2021-11-10 11:41 [PATCH] btrfs: Deprecate BTRFS_IOC_BALANCE ioctl Nikolay Borisov
@ 2021-11-10 14:06 ` Josef Bacik
2021-11-10 15:24 ` David Sterba
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Josef Bacik @ 2021-11-10 14:06 UTC (permalink / raw)
To: Nikolay Borisov; +Cc: linux-btrfs
On Wed, Nov 10, 2021 at 01:41:04PM +0200, Nikolay Borisov wrote:
> The v2 balance ioctl has been introduced more than 9 years ago. Users of
> the old v1 ioctl should have long been migrated to it. It's time we
> deprecate it and eventually remove it.
>
> Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Josef Bacik <josef@toxicpanda.com>
Thanks,
Josef
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] btrfs: Deprecate BTRFS_IOC_BALANCE ioctl
2021-11-10 11:41 [PATCH] btrfs: Deprecate BTRFS_IOC_BALANCE ioctl Nikolay Borisov
2021-11-10 14:06 ` Josef Bacik
@ 2021-11-10 15:24 ` David Sterba
2021-11-10 19:11 ` Anand Jain
2021-11-11 11:36 ` David Sterba
3 siblings, 0 replies; 5+ messages in thread
From: David Sterba @ 2021-11-10 15:24 UTC (permalink / raw)
To: Nikolay Borisov; +Cc: linux-btrfs
On Wed, Nov 10, 2021 at 01:41:04PM +0200, Nikolay Borisov wrote:
> The v2 balance ioctl has been introduced more than 9 years ago. Users of
> the old v1 ioctl should have long been migrated to it. It's time we
> deprecate it and eventually remove it.
Agreed. I maybe put this patch to the 5.16 queue, there's not much
reason to delay it and it's not a functional change.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] btrfs: Deprecate BTRFS_IOC_BALANCE ioctl
2021-11-10 11:41 [PATCH] btrfs: Deprecate BTRFS_IOC_BALANCE ioctl Nikolay Borisov
2021-11-10 14:06 ` Josef Bacik
2021-11-10 15:24 ` David Sterba
@ 2021-11-10 19:11 ` Anand Jain
2021-11-11 11:36 ` David Sterba
3 siblings, 0 replies; 5+ messages in thread
From: Anand Jain @ 2021-11-10 19:11 UTC (permalink / raw)
To: Nikolay Borisov, linux-btrfs
On 10/11/21 7:41 pm, Nikolay Borisov wrote:
> The v2 balance ioctl has been introduced more than 9 years ago. Users of
> the old v1 ioctl should have long been migrated to it. It's time we
> deprecate it and eventually remove it.
>
> Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Reviewed-by: Anand Jain <anand.jain@oracle.com>
> + if (!arg)
> + btrfs_warn(fs_info, "BTRFS_IOC_BALANCE ioctl is deprecated and will be removed in kernel 5.18");
> +
Nit:
Needs proper formatting, split into two lines, adjust the indent if
still longer than 80 char.
Thanks, Anand
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] btrfs: Deprecate BTRFS_IOC_BALANCE ioctl
2021-11-10 11:41 [PATCH] btrfs: Deprecate BTRFS_IOC_BALANCE ioctl Nikolay Borisov
` (2 preceding siblings ...)
2021-11-10 19:11 ` Anand Jain
@ 2021-11-11 11:36 ` David Sterba
3 siblings, 0 replies; 5+ messages in thread
From: David Sterba @ 2021-11-11 11:36 UTC (permalink / raw)
To: Nikolay Borisov; +Cc: linux-btrfs
On Wed, Nov 10, 2021 at 01:41:04PM +0200, Nikolay Borisov wrote:
> The v2 balance ioctl has been introduced more than 9 years ago. Users of
> the old v1 ioctl should have long been migrated to it. It's time we
> deprecate it and eventually remove it.
>
> Signed-off-by: Nikolay Borisov <nborisov@suse.com>
Added to misc-next with slight reformatting of the message, thanks.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2021-11-11 11:36 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-10 11:41 [PATCH] btrfs: Deprecate BTRFS_IOC_BALANCE ioctl Nikolay Borisov
2021-11-10 14:06 ` Josef Bacik
2021-11-10 15:24 ` David Sterba
2021-11-10 19:11 ` Anand Jain
2021-11-11 11:36 ` David Sterba
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.