• J
    f2fs: don't allow any writes on aborted atomic writes · 455e3a58
    Jaegeuk Kim 提交于
    In order to prevent abusing atomic writes by abnormal users, we've added a
    threshold, 20% over memory footprint, which disallows further atomic writes.
    Previously, however, SQLite doesn't know the files became normal, so that
    it could write stale data and commit on revoked normal database file.
    
    Once f2fs detects such the abnormal behavior, this patch tries to avoid further
    writes in write_begin().
    Reviewed-by: NChao Yu <yuchao0@huawei.com>
    Signed-off-by: NJaegeuk Kim <jaegeuk@kernel.org>
    455e3a58
data.c 64.0 KB