mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-11 17:10:13 +00:00
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:
parent
3a86608788
commit
dc816f8d92
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user