Commit f9bceb2f authored by Sergey Senozhatsky's avatar Sergey Senozhatsky Committed by Andrew Morton

zram: keep comments within 80-columns limit

Several trivial fixups (that I should have spotted during review).

Link: https://lkml.kernel.org/r/20220914052033.838050-1-senozhatsky@chromium.orgSigned-off-by: default avatarSergey Senozhatsky <senozhatsky@chromium.org>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent f635725c
...@@ -329,8 +329,8 @@ static ssize_t idle_store(struct device *dev, ...@@ -329,8 +329,8 @@ static ssize_t idle_store(struct device *dev,
if (!sysfs_streq(buf, "all")) { if (!sysfs_streq(buf, "all")) {
/* /*
* If it did not parse as 'all' try to treat it as an integer when * If it did not parse as 'all' try to treat it as an integer
* we have memory tracking enabled. * when we have memory tracking enabled.
*/ */
u64 age_sec; u64 age_sec;
...@@ -345,7 +345,10 @@ static ssize_t idle_store(struct device *dev, ...@@ -345,7 +345,10 @@ static ssize_t idle_store(struct device *dev,
if (!init_done(zram)) if (!init_done(zram))
goto out_unlock; goto out_unlock;
/* A cutoff_time of 0 marks everything as idle, this is the "all" behavior */ /*
* A cutoff_time of 0 marks everything as idle, this is the
* "all" behavior.
*/
mark_idle(zram, cutoff_time); mark_idle(zram, cutoff_time);
rv = len; rv = len;
...@@ -1416,11 +1419,11 @@ static int __zram_bvec_write(struct zram *zram, struct bio_vec *bvec, ...@@ -1416,11 +1419,11 @@ static int __zram_bvec_write(struct zram *zram, struct bio_vec *bvec,
if (comp_len != PAGE_SIZE) if (comp_len != PAGE_SIZE)
goto compress_again; goto compress_again;
/* /*
* If the page is not compressible, you need to acquire the lock and * If the page is not compressible, you need to acquire the
* execute the code below. The zcomp_stream_get() call is needed to * lock and execute the code below. The zcomp_stream_get()
* disable the cpu hotplug and grab the zstrm buffer back. * call is needed to disable the cpu hotplug and grab the
* It is necessary that the dereferencing of the zstrm variable below * zstrm buffer back. It is necessary that the dereferencing
* occurs correctly. * of the zstrm variable below occurs correctly.
*/ */
zstrm = zcomp_stream_get(zram->comp); zstrm = zcomp_stream_get(zram->comp);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment