From 799beb00a8b968c39a795ce443b030f1ef750ed0 Mon Sep 17 00:00:00 2001 From: Li Haifeng Date: Tue, 30 Aug 2011 17:32:50 +0200 Subject: [PATCH] --- yaml --- r: 273075 b: refs/heads/master c: f32948ddd1179ac0b105ceacc235cfc3f98ebea3 h: refs/heads/master i: 273073: 68d250bd6352a2fc3bd4062471fb86aa8bd42a92 273071: f3d1e035291fc4026e48a2f75bd4fe6165353b42 v: v3 --- [refs] | 2 +- trunk/fs/ext2/super.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 0d1e8f2eaf8a..ed6298232fcd 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: fbc854027c91fa2813ae7f9de43cc0b5c1119f41 +refs/heads/master: f32948ddd1179ac0b105ceacc235cfc3f98ebea3 diff --git a/trunk/fs/ext2/super.c b/trunk/fs/ext2/super.c index 1dd62ed35b85..bd8ac164a3bf 100644 --- a/trunk/fs/ext2/super.c +++ b/trunk/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))