[PATCH] drivers/block: Updates loop_set_size comment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx>
---
 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




[Index of Archives]     [Linux RAID]     [Linux SCSI]     [Linux ATA RAID]     [IDE]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Device Mapper]

  Powered by Linux