• Andrew Morton's avatar
    [PATCH] vmscan: handle synchronous writepage() · 961caf47
    Andrew Morton authored
    Teach page reclaim to understand synchronous ->writepage implementations.
    
    If ->writepage completed I/O prior to returning we can proceed to reclaim the
    page without giving it another trip around the LRU.
    
    This is beneficial for ramdisk-backed S_ISREG files: we can reclaim the file's
    pages as fast as the ramdisk driver needs to allocate them and this prevents
    I/O errors due to OOM in rd_blkdev_pagecache_IO().
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    961caf47
vmscan.c 32.8 KB