Skip to content

Commit f32948d

Browse files
tek-lifejankara
authored andcommitted
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>
1 parent fbc8540 commit f32948d

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎fs/ext2/super.c‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -327,10 +327,10 @@ static struct inode *ext2_nfs_get_inode(struct super_block *sb,
327327
if (ino > le32_to_cpu(EXT2_SB(sb)->s_es->s_inodes_count))
328328
return ERR_PTR(-ESTALE);
329329

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.
334334
*/
335335
inode = ext2_iget(sb, ino);
336336
if (IS_ERR(inode))

0 commit comments

Comments
 (0)