Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Mateusz Guzik and committed by
Christian Brauner
dc816f8d 3a866087

+1 -3
+1 -3
include/linux/fs.h
··· 3378 3378 return (u32)ino == 0; 3379 3379 } 3380 3380 3381 - /* 3382 - * inode->i_lock must be held 3383 - */ 3384 3381 static inline void __iget(struct inode *inode) 3385 3382 { 3383 + lockdep_assert_held(&inode->i_lock); 3386 3384 atomic_inc(&inode->i_count); 3387 3385 } 3388 3386