Skip to content

Commit

Permalink
Enable safe inode cleanup
Browse files Browse the repository at this point in the history
This patch facilitates the proper cleanup and removal of the inode itself
as well as any associated cached page data.
  • Loading branch information
jserv committed May 6, 2024
1 parent 7674458 commit 06707da
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -613,6 +613,7 @@ static int simplefs_unlink(struct inode *dir, struct dentry *dentry)
inode->i_ctime.tv_sec = inode->i_mtime.tv_sec = inode->i_atime.tv_sec = 0;
#endif

inode_dec_link_count(inode);
drop_nlink(inode);
mark_inode_dirty(inode);

Expand Down

0 comments on commit 06707da

Please sign in to comment.