Skip to content

Commit

Permalink
ufs: we need to sync inode before freeing it
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jun 10, 2017
1 parent babef37 commit 67a7001
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/ufs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 67a7001

Please sign in to comment.