f2fs: record inode updating status correctly
authorChao Yu <yuchao0@huawei.com>
Wed, 2 Nov 2016 12:43:21 +0000 (20:43 +0800)
committerJaegeuk Kim <jaegeuk@google.com>
Mon, 25 Sep 2017 22:12:15 +0000 (15:12 -0700)
commitc82c6b15a1b0775c6f72ad43a4ed79d37b9c5352
tree8629d2824a020d064b49833e8354d10d4d697f14
parente96476298b9745df77f1a57d0bf93ff134b174b4
f2fs: record inode updating status correctly

commit 60dcedc9972d136fab1600c919dd32080bcc26f7 upstream.

We should record updating status of inode only for living inode, for those
unlinked inode it needs to clear its ino cache, otherwise after the ino
was been reused, it will cause unneeded node page writing during ->fsync.

Signed-off-by: Chao Yu <yuchao0@huawei.com>
Signed-off-by: Jaegeuk Kim <jaegeuk@kernel.org>
fs/f2fs/inode.c