• Chao Yu's avatar
    f2fs: fix to align to section for fallocate() on pinned file · e1175f02
    Chao Yu authored
    Now, fallocate() on a pinned file only allocates blocks which aligns
    to segment rather than section, so GC may try to migrate pinned file's
    block, and after several times of failure, pinned file's block could
    be migrated to other place, however user won't be aware of such
    condition, and then old obsolete block address may be readed/written
    incorrectly.
    
    To avoid such condition, let's try to allocate pinned file's blocks
    with section alignment.
    Signed-off-by: default avatarChao Yu <yuchao0@huawei.com>
    Signed-off-by: default avatarJaegeuk Kim <jaegeuk@kernel.org>
    e1175f02
file.c 108 KB