• Minchan Kim's avatar
    zram: revive swap_slot_free_notify · 3f2b1a04
    Minchan Kim authored
    Commit b430e9d1 ("remove compressed copy from zram in-memory")
    applied swap_slot_free_notify call in *end_swap_bio_read* to remove
    duplicated memory between zram and memory.
    
    However, with the introduction of rw_page in zram: 8c7f0102 ("zram:
    implement rw_page operation of zram"), it became void because rw_page
    doesn't need bio.
    
    Memory footprint is really important in embedded platforms which have
    small memory, for example, 512M) recently because it could start to kill
    processes if memory footprint exceeds some threshold by LMK or some
    similar memory management modules.
    
    This patch restores the function for rw_page, thereby eliminating this
    duplication.
    Signed-off-by: default avatarMinchan Kim <minchan@kernel.org>
    Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
    Cc: karam.lee <karam.lee@lge.com>
    Cc: <sangseok.lee@lge.com>
    Cc: Chan Jeong <chan.jeong@lge.com>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
    3f2b1a04
page_io.c 9.23 KB