Skip to content

Commit

Permalink
Fix warning messages in remove symbolic
Browse files Browse the repository at this point in the history
The inode_dec_link_count has included drop_nlink/ mark_inode_dirty
  • Loading branch information
RoyWFHuang committed Aug 18, 2024
1 parent 4086eec commit 98283c1
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 @@ -654,8 +654,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 98283c1

Please sign in to comment.