From: Al Viro Date: Sat, 10 Jun 2017 16:01:50 +0000 (-0400) Subject: ufs: we need to sync inode before freeing it X-Git-Tag: v4.9.136~100 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=538f9d939030ea535ace82cf2d3d4cc061e60713;p=platform%2Fkernel%2Flinux-amlogic.git ufs: we need to sync inode before freeing it [ Upstream commit 67a70017fa0a152657bc7e337e69bb9c9f5549bf ] Signed-off-by: Al Viro Signed-off-by: Sasha Levin --- diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c index a2760a2..0f22c036 100644 --- a/fs/ufs/inode.c +++ b/fs/ufs/inode.c @@ -846,6 +846,7 @@ void ufs_evict_inode(struct inode * inode) inode->i_size = 0; if (inode->i_blocks) ufs_truncate_blocks(inode); + ufs_update_inode(inode, inode_needs_sync(inode)); } invalidate_inode_buffers(inode);