public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] zram: fix typos in comments
       [not found] <CGME20220802084138epcas1p22d18382ac9a3ae0990c53e0273645755@epcas1p2.samsung.com>
@ 2022-08-02  8:41 ` JeongHyeon Lee
  0 siblings, 0 replies; 3+ messages in thread
From: JeongHyeon Lee @ 2022-08-02  8:41 UTC (permalink / raw)
  To: minchan
  Cc: ngupta, senozhatsky, axboe, linux-kernel, linux-block,
	JeongHyeon Lee

- The double `range` is duplicated in comment, remove one.
- change `syfs` to `sysfs`

Signed-off-by: JeongHyeon Lee <jhs2.lee@samsung.com>
---
 drivers/block/zram/zram_drv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c
index b8549c61ff2c..dc91d7587bbb 100644
--- a/drivers/block/zram/zram_drv.c
+++ b/drivers/block/zram/zram_drv.c
@@ -172,7 +172,7 @@ static inline bool valid_io_request(struct zram *zram,
 
 	end = start + (size >> SECTOR_SHIFT);
 	bound = zram->disksize >> SECTOR_SHIFT;
-	/* out of range range */
+	/* out of range */
 	if (unlikely(start >= bound || end > bound || start > end))
 		return false;
 
@@ -1917,7 +1917,7 @@ static int zram_add(void)
 	zram->disk->private_data = zram;
 	snprintf(zram->disk->disk_name, 16, "zram%d", device_id);
 
-	/* Actual capacity set using syfs (/sys/block/zram<id>/disksize */
+	/* Actual capacity set using sysfs (/sys/block/zram<id>/disksize */
 	set_capacity(zram->disk, 0);
 	/* zram devices sort of resembles non-rotational disks */
 	blk_queue_flag_set(QUEUE_FLAG_NONROT, zram->disk->queue);
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH] zram: fix typos in comments
       [not found] <CGME20221223040335epcas1p45bda0013a3a42f176fa137e0597fd7c9@epcas1p4.samsung.com>
@ 2022-12-23  4:03 ` JeongHyeon Lee
  2022-12-23 11:51   ` Sergey Senozhatsky
  0 siblings, 1 reply; 3+ messages in thread
From: JeongHyeon Lee @ 2022-12-23  4:03 UTC (permalink / raw)
  To: senozhatsky; +Cc: minchan, axboe, linux-kernel, linux-block, JeongHyeon Lee

- The double `range` is duplicated in comment, remove one.
 - change `syfs` to `sysfs`

Signed-off-by: JeongHyeon Lee <jhs2.lee@samsung.com>
---
 drivers/block/zram/zram_drv.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c
index e290d6d97047..7becd5448791 100644
--- a/drivers/block/zram/zram_drv.c
+++ b/drivers/block/zram/zram_drv.c
@@ -190,7 +190,7 @@ static inline bool valid_io_request(struct zram *zram,
 
 	end = start + (size >> SECTOR_SHIFT);
 	bound = zram->disksize >> SECTOR_SHIFT;
-	/* out of range range */
+	/* out of range */
 	if (unlikely(start >= bound || end > bound || start > end))
 		return false;
 
@@ -2385,7 +2385,7 @@ static int zram_add(void)
 	zram->disk->private_data = zram;
 	snprintf(zram->disk->disk_name, 16, "zram%d", device_id);
 
-	/* Actual capacity set using syfs (/sys/block/zram<id>/disksize */
+	/* Actual capacity set using sysfs (/sys/block/zram<id>/disksize */
 	set_capacity(zram->disk, 0);
 	/* zram devices sort of resembles non-rotational disks */
 	blk_queue_flag_set(QUEUE_FLAG_NONROT, zram->disk->queue);
-- 
2.38.1


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] zram: fix typos in comments
  2022-12-23  4:03 ` [PATCH] zram: fix typos in comments JeongHyeon Lee
@ 2022-12-23 11:51   ` Sergey Senozhatsky
  0 siblings, 0 replies; 3+ messages in thread
From: Sergey Senozhatsky @ 2022-12-23 11:51 UTC (permalink / raw)
  To: JeongHyeon Lee
  Cc: Andrew Morton, senozhatsky, minchan, axboe, linux-kernel,
	linux-block

Cc-ing Andrew

On (22/12/23 13:03), JeongHyeon Lee wrote:
> - The double `range` is duplicated in comment, remove one.
>  - change `syfs` to `sysfs`
> 
> Signed-off-by: JeongHyeon Lee <jhs2.lee@samsung.com>

Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-12-23 11:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CGME20221223040335epcas1p45bda0013a3a42f176fa137e0597fd7c9@epcas1p4.samsung.com>
2022-12-23  4:03 ` [PATCH] zram: fix typos in comments JeongHyeon Lee
2022-12-23 11:51   ` Sergey Senozhatsky
     [not found] <CGME20220802084138epcas1p22d18382ac9a3ae0990c53e0273645755@epcas1p2.samsung.com>
2022-08-02  8:41 ` JeongHyeon Lee

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox