Skip to content

Commit 67a7001

Browse files
author
Al Viro
committed
ufs: we need to sync inode before freeing it
Signed-off-by: Al Viro <[email protected]>
1 parent babef37 commit 67a7001

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

fs/ufs/inode.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -848,6 +848,7 @@ void ufs_evict_inode(struct inode * inode)
848848
(S_ISREG(inode->i_mode) || S_ISDIR(inode->i_mode) ||
849849
S_ISLNK(inode->i_mode)))
850850
ufs_truncate_blocks(inode);
851+
ufs_update_inode(inode, inode_needs_sync(inode));
851852
}
852853

853854
invalidate_inode_buffers(inode);

0 commit comments

Comments
 (0)