mirror of https://github.com/torvalds/linux.git
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>
This commit is contained in:
parent
8c6e03ffed
commit
4d7485cff5
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue