Commit f32948dd authored by Li Haifeng's avatar Li Haifeng Committed by Jan Kara

ext2: fix the outdated comment in ext2_nfs_get_inode()

Signed-off-by: default avatarLi Haifeng <omycle@gmail.com>
Signed-off-by: default avatarJan Kara <jack@suse.cz>
parent fbc85402
...@@ -327,10 +327,10 @@ static struct inode *ext2_nfs_get_inode(struct super_block *sb, ...@@ -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)) if (ino > le32_to_cpu(EXT2_SB(sb)->s_es->s_inodes_count))
return ERR_PTR(-ESTALE); return ERR_PTR(-ESTALE);
/* iget isn't really right if the inode is currently unallocated!! /*
* ext2_read_inode currently does appropriate checks, but * ext2_iget isn't quite right if the inode is currently unallocated!
* it might be "neater" to call ext2_get_inode first and check * However ext2_iget currently does appropriate checks to handle stale
* if the inode is valid..... * inodes so everything is OK.
*/ */
inode = ext2_iget(sb, ino); inode = ext2_iget(sb, ino);
if (IS_ERR(inode)) if (IS_ERR(inode))
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment