• Chao Yu's avatar
    f2fs: don't submit irrelevant page · 6ca56ca4
    Chao Yu authored
    While we call ->writepages, there are two cases:
    a. we didn't writeout any dirty pages, since they are writebacked by other
    thread concurrently.
    b. we writeout dirty pages, and have already submitted bio to block layer.
    
    In these cases, we don't need to do additional bio flushing unnecessarily,
    it may split bio in cache into smaller one.
    Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    6ca56ca4
data.c 46.2 KB