* [PATCH] drivers/block: Updates loop_set_size comment
@ 2023-09-25 13:48 ` Yuran Pereira
0 siblings, 0 replies; 2+ messages in thread
From: Yuran Pereira @ 2023-09-25 13:48 UTC (permalink / raw)
To: axboe; +Cc: Yuran Pereira, linux-block, linux-kernel, linux-kernel-mentees
Since loop_validate_size() has been removed, there is no longer a need
to validate the size passed to loop_set_size(). This patch removes
the comment from loop_set_size() that states otherwise.
Signed-off-by: Yuran Pereira <yuran.pereira@hotmail.com>
---
drivers/block/loop.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index 9f2d412fc560..68b8684ca16f 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -228,9 +228,6 @@ static void __loop_update_dio(struct loop_device *lo, bool dio)
* loop_set_size() - sets device size and notifies userspace
* @lo: struct loop_device to set the size for
* @size: new size of the loop device
- *
- * Callers must validate that the size passed into this function fits into
- * a sector_t, eg using loop_validate_size()
*/
static void loop_set_size(struct loop_device *lo, loff_t size)
{
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] drivers/block: Updates loop_set_size comment
@ 2023-09-25 13:48 ` Yuran Pereira
0 siblings, 0 replies; 2+ messages in thread
From: Yuran Pereira @ 2023-09-25 13:48 UTC (permalink / raw)
To: axboe; +Cc: linux-block, Yuran Pereira, linux-kernel-mentees, linux-kernel
Since loop_validate_size() has been removed, there is no longer a need
to validate the size passed to loop_set_size(). This patch removes
the comment from loop_set_size() that states otherwise.
Signed-off-by: Yuran Pereira <yuran.pereira@hotmail.com>
---
drivers/block/loop.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/drivers/block/loop.c b/drivers/block/loop.c
index 9f2d412fc560..68b8684ca16f 100644
--- a/drivers/block/loop.c
+++ b/drivers/block/loop.c
@@ -228,9 +228,6 @@ static void __loop_update_dio(struct loop_device *lo, bool dio)
* loop_set_size() - sets device size and notifies userspace
* @lo: struct loop_device to set the size for
* @size: new size of the loop device
- *
- * Callers must validate that the size passed into this function fits into
- * a sector_t, eg using loop_validate_size()
*/
static void loop_set_size(struct loop_device *lo, loff_t size)
{
--
2.25.1
_______________________________________________
Linux-kernel-mentees mailing list
Linux-kernel-mentees@lists.linuxfoundation.org
https://lists.linuxfoundation.org/mailman/listinfo/linux-kernel-mentees
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-25 13:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-25 13:48 [PATCH] drivers/block: Updates loop_set_size comment Yuran Pereira
2023-09-25 13:48 ` Yuran Pereira
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.