Skip to content

Commit 4d7485c

Browse files
Christoph Hellwigbrauner
authored andcommitted
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>
1 parent 8c6e03f commit 4d7485c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/fs-writeback.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,6 +733,7 @@ bool cleanup_offline_cgwb(struct bdi_writeback *wb)
733733
*/
734734
void wbc_attach_and_unlock_inode(struct writeback_control *wbc,
735735
struct inode *inode)
736+
__releases(&inode->i_lock)
736737
{
737738
if (!inode_cgwb_enabled(inode)) {
738739
spin_unlock(&inode->i_lock);

0 commit comments

Comments
 (0)