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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Jan Kara <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
1 parent 8c6e03f commit 4d7485c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)