summaryrefslogtreecommitdiffstats
path: root/fs/ufs
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2017-06-10 12:01:50 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-11-10 07:42:49 -0800
commit538f9d939030ea535ace82cf2d3d4cc061e60713 (patch)
treefd2472f3a543e8fe75dd95950c4182f6246db9d2 /fs/ufs
parentf33ed8438676d4731e0ea66f592ea4cd0e8fa96b (diff)
downloadlinux-stable-538f9d939030ea535ace82cf2d3d4cc061e60713.tar.gz
linux-stable-538f9d939030ea535ace82cf2d3d4cc061e60713.tar.bz2
linux-stable-538f9d939030ea535ace82cf2d3d4cc061e60713.zip
ufs: we need to sync inode before freeing it
[ Upstream commit 67a70017fa0a152657bc7e337e69bb9c9f5549bf ] Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/ufs')
-rw-r--r--fs/ufs/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c
index a2760a2869f4..0f22c036699a 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);