[<prev] [next>] [day] [month] [year] [list]
Message-ID: <Yx3rE3zkN7p8/Znz@playground>
Date: Sun, 11 Sep 2022 15:05:07 +0100
From: Jules Irenge <jbi.octave@...il.com>
To: viro@...iv.linux.org.uk
Cc: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: [PATCH] fs: Add missing annotation for iput_final()
Sparse reports a warning at iput_final()
warning: context imbalance in iput_final - unexpected unlock
The root cause is the missing annotation at iput_final()
Add the missing __releases(&inode->i_lock) annotation
Signed-off-by: Jules Irenge <jbi.octave@...il.com>
---
fs/inode.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/fs/inode.c b/fs/inode.c
index ba1de23c13c1..a1dd9a976add 100644
--- a/fs/inode.c
+++ b/fs/inode.c
@@ -1706,6 +1706,7 @@ EXPORT_SYMBOL(generic_delete_inode);
* shutting down.
*/
static void iput_final(struct inode *inode)
+ __releases(&inode->i_lock)
{
struct super_block *sb = inode->i_sb;
const struct super_operations *op = inode->i_sb->s_op;
--
2.35.1
Powered by blists - more mailing lists