Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

zram: clarify writeback_store() comment

Re-phrase writeback BIO error comment.

Link: https://lkml.kernel.org/r/20221109115047.2921851-7-senozhatsky@chromium.org
Reported-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Acked-by: Minchan Kim <minchan@kernel.org>
Cc: Alexey Romanov <avromanov@sberdevices.ru>
Cc: Nhat Pham <nphamcs@gmail.com>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Suleiman Souhlal <suleiman@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Sergey Senozhatsky and committed by
Andrew Morton
9fda785d 60e9b39e

+6 -2
+6 -2
drivers/block/zram/zram_drv.c
··· 769 769 zram_clear_flag(zram, index, ZRAM_IDLE); 770 770 zram_slot_unlock(zram, index); 771 771 /* 772 - * Return last IO error unless every IO were 773 - * not suceeded. 772 + * BIO errors are not fatal, we continue and simply 773 + * attempt to writeback the remaining objects (pages). 774 + * At the same time we need to signal user-space that 775 + * some writes (at least one, but also could be all of 776 + * them) were not successful and we do so by returning 777 + * the most recent BIO error. 774 778 */ 775 779 ret = err; 776 780 continue;