diff --git a/fs/f2fs/data.c b/fs/f2fs/data.c index da932eeecf30320251018976400665860869e575..7a67d6161b8420cbdc44f854fed889d892190309 100644 --- a/fs/f2fs/data.c +++ b/fs/f2fs/data.c @@ -1875,9 +1875,10 @@ int f2fs_do_write_data_page(struct f2fs_io_info *fio) true); if (PageWriteback(page)) end_page_writeback(page); + } else { + set_inode_flag(inode, FI_UPDATE_WRITE); } trace_f2fs_do_write_data_page(fio->page, IPU); - set_inode_flag(inode, FI_UPDATE_WRITE); return err; }