From 7c96ef9f255fa03ccce6ae83f055731a18297a76 Mon Sep 17 00:00:00 2001 From: roy Date: Mon, 19 Aug 2024 20:20:22 +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 5197753..616caa0 100644 --- a/inode.c +++ b/inode.c @@ -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))