From 98283c14810a0ad713d9585304386f0a3e8cbaa0 Mon Sep 17 00:00:00 2001 From: roy Date: Sun, 18 Aug 2024 17:14:32 +0800 Subject: [PATCH] Fix warning messages in remove symbolic The inode_dec_link_count has included drop_nlink/ mark_inode_dirty --- inode.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/inode.c b/inode.c index 4d9af5e..1d7c99d 100644 --- a/inode.c +++ b/inode.c @@ -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))