writeback: add a __releases annoation to wbc_attach_and_unlock_inode

This shuts up a sparse lock context tracking warning.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20241112054403.1470586-2-hch@lst.de
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
Christoph Hellwig 2024-11-12 06:43:54 +01:00 committed by Christian Brauner
parent 8c6e03ffed
commit 4d7485cff5
No known key found for this signature in database
GPG Key ID: 91C61BC06578DCA2

View File

@ -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);