From 3b60737edc5fc9449e9764b2696599c185262358 Mon Sep 17 00:00:00 2001 From: roy Date: Mon, 19 Aug 2024 18:54:07 +0800 Subject: [PATCH] Fix warning messages in remove symbolic 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))