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

ext2: fix the outdated comment in ext2_nfs_get_inode()

Signed-off-by: Li Haifeng <omycle@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>

authored by

Li Haifeng and committed by
Jan Kara
f32948dd fbc85402

+4 -4
+4 -4
fs/ext2/super.c
··· 327 327 if (ino > le32_to_cpu(EXT2_SB(sb)->s_es->s_inodes_count)) 328 328 return ERR_PTR(-ESTALE); 329 329 330 - /* iget isn't really right if the inode is currently unallocated!! 331 - * ext2_read_inode currently does appropriate checks, but 332 - * it might be "neater" to call ext2_get_inode first and check 333 - * if the inode is valid..... 330 + /* 331 + * ext2_iget isn't quite right if the inode is currently unallocated! 332 + * However ext2_iget currently does appropriate checks to handle stale 333 + * inodes so everything is OK. 334 334 */ 335 335 inode = ext2_iget(sb, ino); 336 336 if (IS_ERR(inode))