summaryrefslogtreecommitdiff
path: root/fs/fs-writeback.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2024-11-12 06:43:54 +0100
committerChristian Brauner <brauner@kernel.org>2024-11-12 14:44:25 +0100
commit4d7485cff59951c83aa2b6891b24d68b76d86f6f (patch)
tree2bb942a4528938357dad7f3f7ffca80c9d65dd97 /fs/fs-writeback.c
parent8c6e03ffedc5463d1aa1ba89f6ceb082518a3520 (diff)
downloadlinux-4d7485cff59951c83aa2b6891b24d68b76d86f6f.tar.gz
linux-4d7485cff59951c83aa2b6891b24d68b76d86f6f.tar.bz2
linux-4d7485cff59951c83aa2b6891b24d68b76d86f6f.zip
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>
Diffstat (limited to 'fs/fs-writeback.c')
-rw-r--r--fs/fs-writeback.c1
1 files changed, 1 insertions, 0 deletions
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);