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: MMI-PSA29.97-13-9~5395^2~11 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=67a70017fa0a152657bc7e337e69bb9c9f5549bf;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git ufs: we need to sync inode before freeing it Signed-off-by: Al Viro --- diff --git a/fs/ufs/inode.c b/fs/ufs/inode.c index 34f11cf0900a..da553ffec85b 100644 --- a/fs/ufs/inode.c +++ b/fs/ufs/inode.c @@ -848,6 +848,7 @@ void ufs_evict_inode(struct inode * inode) (S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) || S_ISLNK(inode->i_mode))) ufs_truncate_blocks(inode); + ufs_update_inode(inode, inode_needs_sync(inode)); } invalidate_inode_buffers(inode);