ufs: we need to sync inode before freeing it
authorAl Viro <viro@zeniv.linux.org.uk>
Sat, 10 Jun 2017 16:01:50 +0000 (12:01 -0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Sat, 10 Jun 2017 16:02:28 +0000 (12:02 -0400)
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/ufs/inode.c

index 34f11cf0900ab742f6ef5c33edfd8841948015e1..da553ffec85b459f0675c25033f173bbaeccb772 100644 (file)
@@ -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);