Re: [PATCH 02/24] loop: remove loop_set_size

2020-11-11 Thread Hannes Reinecke
On 11/11/20 9:26 AM, Christoph Hellwig wrote: Just use set_capacity_revalidate_and_notify directly, as this function can update the block device size as well when the last parameter is set to true. Signed-off-by: Christoph Hellwig --- drivers/block/loop.c | 37 +++-

[PATCH 02/24] loop: remove loop_set_size

2020-11-11 Thread Christoph Hellwig
Just use set_capacity_revalidate_and_notify directly, as this function can update the block device size as well when the last parameter is set to true. Signed-off-by: Christoph Hellwig --- drivers/block/loop.c | 37 +++-- 1 file changed, 7 insertions(+), 30 deleti

[PATCH 02/24] loop: remove loop_set_size

2020-11-06 Thread Christoph Hellwig
Just use set_capacity_revalidate_and_notify directly, as this function can update the block device size as well when the last parameter is set to true. Signed-off-by: Christoph Hellwig --- drivers/block/loop.c | 37 +++-- 1 file changed, 7 insertions(+), 30 deleti