Skip to content

Commit

Permalink
Fix warning messages in remove symbolic
Browse files Browse the repository at this point in the history
inode_dec_link_count has included drop_nlink/ mark_inode_dirty
  • Loading branch information
RoyWFHuang committed Aug 19, 2024
1 parent aca24b5 commit 7c96ef9
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,8 +653,6 @@ static int simplefs_unlink(struct inode *dir, struct dentry *dentry)
#endif

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

/* Free inode and index block from bitmap */
if (S_ISLNK(inode->i_mode))
Expand Down

0 comments on commit 7c96ef9

Please sign in to comment.