• M
    zram: revive swap_slot_free_notify · 3f2b1a04
    Minchan Kim 提交于
    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: NMinchan 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: NAndrew Morton <akpm@linux-foundation.org>
    Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
    3f2b1a04
page_io.c 9.2 KB