Re: [PATCH] vfs: remove unused argument in iterate_bdevs

From: Al Viro
Date: Thu Jan 11 2018 - 10:31:38 EST


On Thu, Jan 11, 2018 at 04:04:07PM +0200, Rakesh Pandit wrote:
> Signed-off-by: Rakesh Pandit <rakesh@xxxxxxxxxx>
> ---
> fs/block_dev.c | 4 ++--
> fs/sync.c | 12 ++++++------
> include/linux/fs.h | 4 ++--
> 3 files changed, 10 insertions(+), 10 deletions(-)
>
> diff --git a/fs/block_dev.c b/fs/block_dev.c
> index 4a181fc..95eba30 100644
> --- a/fs/block_dev.c
> +++ b/fs/block_dev.c
> @@ -2112,7 +2112,7 @@ int __invalidate_device(struct block_device *bdev, bool kill_dirty)
> }
> EXPORT_SYMBOL(__invalidate_device);
>
> -void iterate_bdevs(void (*func)(struct block_device *, void *), void *arg)
> +void iterate_bdevs(void (*func)(struct block_device *))

Sure, after you implement partially applied functions in C, so that we could
do it properly. Until then - NAK.