mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-02 23:27:06 +00:00
ufs: we need to sync inode before freeing it
[ Upstream commit 67a70017fa
]
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
f33ed84386
commit
538f9d9390
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue