[<prev] [next>] [day] [month] [year] [list]
Message-ID: <PAXP192MB1278B70E2258023496F97F2FE8FCA@PAXP192MB1278.EURP192.PROD.OUTLOOK.COM>
Date: Mon, 25 Sep 2023 19:18:39 +0530
From: Yuran Pereira <yuran.pereira@...mail.com>
To: axboe@...nel.dk
Cc: Yuran Pereira <yuran.pereira@...mail.com>,
linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-kernel-mentees@...ts.linuxfoundation.org
Subject: [PATCH] drivers/block: Updates loop_set_size comment
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@...mail.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
Powered by blists - more mailing lists