Skip to content

Commit 06707da

Browse files
committed
Enable safe inode cleanup
This patch facilitates the proper cleanup and removal of the inode itself as well as any associated cached page data.
1 parent 7674458 commit 06707da

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

inode.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -613,6 +613,7 @@ static int simplefs_unlink(struct inode *dir, struct dentry *dentry)
613613
inode->i_ctime.tv_sec = inode->i_mtime.tv_sec = inode->i_atime.tv_sec = 0;
614614
#endif
615615

616+
inode_dec_link_count(inode);
616617
drop_nlink(inode);
617618
mark_inode_dirty(inode);
618619

0 commit comments

Comments
 (0)