]> Git Repo - linux.git/commit
zram: remove double compression logic
authorAlexey Romanov <[email protected]>
Fri, 13 May 2022 03:23:07 +0000 (20:23 -0700)
committerAndrew Morton <[email protected]>
Fri, 13 May 2022 14:20:18 +0000 (07:20 -0700)
commite7be8d1dd983156bbdd22c0319b71119a8fbb697
tree906225eaa413147d98d2a5182dc83054de0dbd77
parentf67bed134a053663852a1a3ab1b3223bfc2104a2
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/[email protected]
Signed-off-by: Alexey Romanov <[email protected]>
Signed-off-by: Dmitry Rokosov <[email protected]>
Acked-by: Minchan Kim <[email protected]>
Reviewed-by: Sergey Senozhatsky <[email protected]>
Cc: Nitin Gupta <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
drivers/block/zram/zram_drv.c
drivers/block/zram/zram_drv.h
This page took 0.064302 seconds and 4 git commands to generate.