fs: assert ->i_lock held in __iget()

Also remove the now redundant comment.

Signed-off-by: Mateusz Guzik <mjguzik@gmail.com>
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
Mateusz Guzik 2025-10-01 01:53:14 +02:00 committed by Christian Brauner
parent 3a86608788
commit dc816f8d92
No known key found for this signature in database
GPG Key ID: 91C61BC06578DCA2
1 changed files with 1 additions and 3 deletions

View File

@ -3378,11 +3378,9 @@ static inline bool is_zero_ino(ino_t ino)
return (u32)ino == 0;
}
/*
* inode->i_lock must be held
*/
static inline void __iget(struct inode *inode)
{
lockdep_assert_held(&inode->i_lock);
atomic_inc(&inode->i_count);
}