mirror of https://github.com/torvalds/linux.git
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…
Reference in New Issue