aboutsummaryrefslogtreecommitdiffstats
path: root/fs/fs-writeback.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2024-11-12 05:43:54 +0000
committerChristian Brauner <[email protected]>2024-11-12 13:44:25 +0000
commit4d7485cff59951c83aa2b6891b24d68b76d86f6f (patch)
tree2bb942a4528938357dad7f3f7ffca80c9d65dd97 /fs/fs-writeback.c
parentacl: Annotate struct posix_acl with __counted_by() (diff)
downloadkernel-4d7485cff59951c83aa2b6891b24d68b76d86f6f.tar.gz
kernel-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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Jan Kara <[email protected]> Signed-off-by: Christian Brauner <[email protected]>
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);