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@kernel.org>
Wed, 23 Nov 2016 20:11:25 +0000 (12:11 -0800)
commit60dcedc9972d136fab1600c919dd32080bcc26f7
tree8d51a064a1a9633ce35bc3b40633c284b10619da
parent126606c7a99b32ba8265a51fab01533fe40c9ecc
f2fs: record inode updating status correctly

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