summaryrefslogtreecommitdiffstats
path: root/fs/ext2
diff options
context:
space:
mode:
authorLi Haifeng <omycle@gmail.com>2011-08-30 17:32:50 +0200
committerJan Kara <jack@suse.cz>2011-08-30 17:38:47 +0200
commitf32948ddd1179ac0b105ceacc235cfc3f98ebea3 (patch)
tree0a342bdd639fdbda7c808cb3aef60d3135a95d12 /fs/ext2
parentfbc854027c91fa2813ae7f9de43cc0b5c1119f41 (diff)
downloadlinux-stable-f32948ddd1179ac0b105ceacc235cfc3f98ebea3.tar.gz
linux-stable-f32948ddd1179ac0b105ceacc235cfc3f98ebea3.tar.bz2
linux-stable-f32948ddd1179ac0b105ceacc235cfc3f98ebea3.zip
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>
Diffstat (limited to 'fs/ext2')
-rw-r--r--fs/ext2/super.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/ext2/super.c b/fs/ext2/super.c
index 1dd62ed35b85..bd8ac164a3bf 100644
--- a/fs/ext2/super.c
+++ b/fs/ext2/super.c
@@ -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))