diff mbox series

[1/2] writeback: add a __releases annoation to wbc_attach_and_unlock_inode

Message ID 20241112054403.1470586-2-hch@lst.de (mailing list archive)
State New
Headers show
Series [1/2] writeback: add a __releases annoation to wbc_attach_and_unlock_inode | expand

Commit Message

Christoph Hellwig Nov. 12, 2024, 5:43 a.m. UTC
This shuts up a sparse lock context tracking warning.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jan Kara <jack@suse.cz>
---
 fs/fs-writeback.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/fs/fs-writeback.c b/fs/fs-writeback.c
index d8bec3c1bb1f..3fb115ae44b1 100644
--- a/fs/fs-writeback.c
+++ b/fs/fs-writeback.c
@@ -733,6 +733,7 @@  bool cleanup_offline_cgwb(struct bdi_writeback *wb)
  */
 void wbc_attach_and_unlock_inode(struct writeback_control *wbc,
 				 struct inode *inode)
+	__releases(&inode->i_lock)
 {
 	if (!inode_cgwb_enabled(inode)) {
 		spin_unlock(&inode->i_lock);