Skip to content

Commit 071acb3

Browse files
jhs2-leeakpm00
authored andcommitted
zram: fix typos in comments
- The double `range` is duplicated in comment, remove one. - change `syfs` to `sysfs` Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: JeongHyeon Lee <[email protected]> Reviewed-by: Sergey Senozhatsky <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 630e7c5 commit 071acb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/block/zram/zram_drv.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ static inline bool valid_io_request(struct zram *zram,
190190

191191
end = start + (size >> SECTOR_SHIFT);
192192
bound = zram->disksize >> SECTOR_SHIFT;
193-
/* out of range range */
193+
/* out of range */
194194
if (unlikely(start >= bound || end > bound || start > end))
195195
return false;
196196

@@ -2385,7 +2385,7 @@ static int zram_add(void)
23852385
zram->disk->private_data = zram;
23862386
snprintf(zram->disk->disk_name, 16, "zram%d", device_id);
23872387

2388-
/* Actual capacity set using syfs (/sys/block/zram<id>/disksize */
2388+
/* Actual capacity set using sysfs (/sys/block/zram<id>/disksize */
23892389
set_capacity(zram->disk, 0);
23902390
/* zram devices sort of resembles non-rotational disks */
23912391
blk_queue_flag_set(QUEUE_FLAG_NONROT, zram->disk->queue);

0 commit comments

Comments
 (0)