Alexey Romanov e7be8d1dd9 zram: remove double compression logic
The 2nd trial allocation under per-cpu presumption has been used to
prevent regression of allocation failure.  However, it makes trouble for
maintenance without significant benefit.  The slowpath branch is executed
extremely rarely: getting there is problematic.  Therefore, we delete this
branch.

Since b09ab054b69b ("zram: support BDI_CAP_STABLE_WRITES"), zram has used
QUEUE_FLAG_STABLE_WRITES to prevent buffer change between 1st and 2nd
memory allocations.  Since we remove second trial memory allocation logic,
we could remove the STABLE_WRITES flag because there is no change buffer
to be modified under us.

Link: https://lkml.kernel.org/r/20220505094443.11728-1-avromanov@sberdevices.ru
Signed-off-by: Alexey Romanov <avromanov@sberdevices.ru>
Signed-off-by: Dmitry Rokosov <ddrokosov@sberdevices.ru>
Acked-by: Minchan Kim <minchan@kernel.org>
Reviewed-by: Sergey Senozhatsky <senozhatsky@chromium.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
2022-05-13 07:20:18 -07:00
..
2022-03-04 12:29:20 -07:00
2022-04-06 13:07:53 -06:00
2022-03-21 16:48:55 -07:00
2022-03-24 19:37:53 -07:00
2022-04-01 16:26:57 -07:00
2022-01-17 07:19:40 -07:00
2022-04-27 09:41:54 -07:00
2022-04-27 09:41:54 -07:00
2022-05-09 18:20:49 -07:00
2021-12-16 10:57:04 -07:00
2022-03-24 19:37:53 -07:00
2021-11-29 06:38:35 -07:00
2022-02-02 07:49:59 -07:00
2021-11-29 06:38:35 -07:00
2021-11-29 06:38:35 -07:00
2022-03-21 17:16:01 -07:00
2022-04-01 16:26:57 -07:00
2021-11-29 06:38:35 -07:00