public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fix the outdated comment in ext2_nfs_get_inode()
@ 2011-08-30 12:11 Li Haifeng
  2011-08-30 15:39 ` Jan Kara
  0 siblings, 1 reply; 7+ messages in thread
From: Li Haifeng @ 2011-08-30 12:11 UTC (permalink / raw)
  To: jack; +Cc: linux-kernel, linux-ext4

I am sorry, the last patch "fix the outdated comment in
ext2_nfs_get_inode()" has some " whitespace errors detected". So
correct it and remake it.

I will be more careful later.

Signed-off-by: Li Haifeng <omycle@gmail.com>
---
 fs/ext2/super.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/fs/ext2/super.c b/fs/ext2/super.c
index 1dd62ed..bda10cf 100644
--- a/fs/ext2/super.c
+++ b/fs/ext2/super.c
@@ -327,10 +327,9 @@ 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 really right if the inode is currently unallocated!!
+    * And it also does appropriate checks to handle the stale inode.
     */
    inode = ext2_iget(sb, ino);
    if (IS_ERR(inode))
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [PATCH] fix the outdated comment in ext2_nfs_get_inode()
@ 2011-08-30 11:46 Li Haifeng
  0 siblings, 0 replies; 7+ messages in thread
From: Li Haifeng @ 2011-08-30 11:46 UTC (permalink / raw)
  To: Jan Kara; +Cc: linux-kernel, linux-ext4

Signed-off-by: Li Haifeng <omycle@gmail.com>
---
 fs/ext2/super.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

diff --git a/fs/ext2/super.c b/fs/ext2/super.c
index 1dd62ed..bda10cf 100644
--- a/fs/ext2/super.c
+++ b/fs/ext2/super.c
@@ -327,10 +327,9 @@ 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 really right if the inode is currently unallocated!!
+    * And it also does appropriate checks to handle the stale inode.
     */
    inode = ext2_iget(sb, ino);
    if (IS_ERR(inode))
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [PATCH] fix the outdated comment in ext2_nfs_get_inode()
@ 2011-08-30  9:53 Li Haifeng
  2011-08-30 10:35 ` Jan Kara
  0 siblings, 1 reply; 7+ messages in thread
From: Li Haifeng @ 2011-08-30  9:53 UTC (permalink / raw)
  To: jack; +Cc: linux-kernel, linux-ext4

The function iget  referred by the comment is replaced by ext2_iget .
And the ext2_read_inode() is not exist, the ext2_iget is "neater". So
the comment is fixed here.

Signed-off-by: Li Haifeng <omycle@gmail.com>
---
 fs/ext2/super.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/fs/ext2/super.c b/fs/ext2/super.c
index 1dd62ed..994ced3 100644
--- a/fs/ext2/super.c
+++ b/fs/ext2/super.c
@@ -327,10 +327,8 @@ 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 really right if the inode is currently unallocated!!
     */
    inode = ext2_iget(sb, ino);
    if (IS_ERR(inode))
-- 
1.7.4.1

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-08-31  2:06 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-30 12:11 [PATCH] fix the outdated comment in ext2_nfs_get_inode() Li Haifeng
2011-08-30 15:39 ` Jan Kara
2011-08-31  2:06   ` Li Haifeng
  -- strict thread matches above, loose matches on Subject: below --
2011-08-30 11:46 Li Haifeng
2011-08-30  9:53 Li Haifeng
2011-08-30 10:35 ` Jan Kara
2011-08-30 11:29   ` Li Haifeng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox