]> Git Repo - J-linux.git/commitdiff
writeback: add a __releases annoation to wbc_attach_and_unlock_inode
authorChristoph Hellwig <[email protected]>
Tue, 12 Nov 2024 05:43:54 +0000 (06:43 +0100)
committerChristian Brauner <[email protected]>
Tue, 12 Nov 2024 13:44:25 +0000 (14:44 +0100)
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]>
fs/fs-writeback.c

index d8bec3c1bb1fa78c287482130956612647a0d27a..3fb115ae44b11d7ad9e6118388beeeec185d0f5d 100644 (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);
This page took 0.0598649999999999 seconds and 4 git commands to generate.