Skip to content

Commit

Permalink
ext2: fix the outdated comment in ext2_nfs_get_inode()
Browse files Browse the repository at this point in the history
Signed-off-by: Li Haifeng <omycle@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
  • Loading branch information
Li Haifeng authored and Jan Kara committed Aug 30, 2011
1 parent fbc8540 commit f32948d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions fs/ext2/super.c
Original file line number Diff line number Diff line change
Expand Up @@ -327,10 +327,10 @@ static struct inode *ext2_nfs_get_inode(struct super_block *sb,
if (ino > le32_to_cpu(EXT2_SB(sb)->s_es->s_inodes_count))
return ERR_PTR(-ESTALE);

/* iget isn't really right if the inode is currently unallocated!!
* ext2_read_inode currently does appropriate checks, but
* it might be "neater" to call ext2_get_inode first and check
* if the inode is valid.....
/*
* ext2_iget isn't quite right if the inode is currently unallocated!
* However ext2_iget currently does appropriate checks to handle stale
* inodes so everything is OK.
*/
inode = ext2_iget(sb, ino);
if (IS_ERR(inode))
Expand Down

0 comments on commit f32948d

Please sign in to comment.