• yangyun's avatar
    fuse: add fast path for fuse_range_is_writeback · ac5cffec
    yangyun authored
    In some cases, the fi->writepages may be empty. And there is no need
    to check fi->writepages with spin_lock, which may have an impact on
    performance due to lock contention. For example, in scenarios where
    multiple readers read the same file without any writers, or where
    the page cache is not enabled.
    
    Also remove the outdated comment since commit 6b2fb799 ("fuse:
    optimize writepages search") has optimize the situation by replacing
    list with rb-tree.
    Signed-off-by: default avataryangyun <yangyun50@huawei.com>
    Signed-off-by: default avatarMiklos Szeredi <mszeredi@redhat.com>
    ac5cffec
file.c 83.3 KB