2014-10-20 05:29:26

by Wang Shilong

[permalink] [raw]
Subject: [PATCH] Ext4: update comments that use ext4_delete_inode()

From: Wang Shilong <[email protected]>

ext4_delete_inode() has been renamed for a long time, update
comments for this.

Signed-off-by: Wang Shilong <[email protected]>
---
fs/ext4/inode.c | 2 +-
fs/ext4/migrate.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c
index e9777f9..04fd885 100644
--- a/fs/ext4/inode.c
+++ b/fs/ext4/inode.c
@@ -3643,7 +3643,7 @@ out_stop:
* If this was a simple ftruncate() and the file will remain alive,
* then we need to clear up the orphan record which we created above.
* However, if this was a real unlink then we were called by
- * ext4_delete_inode(), and we allow that function to clean up the
+ * ext4_evict_inode(), and we allow that function to clean up the
* orphan info for us.
*/
if (inode->i_nlink)
diff --git a/fs/ext4/migrate.c b/fs/ext4/migrate.c
index a432634..3cb267a 100644
--- a/fs/ext4/migrate.c
+++ b/fs/ext4/migrate.c
@@ -592,7 +592,7 @@ err_out:

/*
* set the i_blocks count to zero
- * so that the ext4_delete_inode does the
+ * so that the ext4_evict_inode() does the
* right job
*
* We don't need to take the i_lock because
--
1.8.3.1



2014-11-25 21:18:59

by Theodore Ts'o

[permalink] [raw]
Subject: Re: [PATCH] Ext4: update comments that use ext4_delete_inode()

On Mon, Oct 20, 2014 at 09:28:27AM -0400, Wang Shilong wrote:
> From: Wang Shilong <[email protected]>
>
> ext4_delete_inode() has been renamed for a long time, update
> comments for this.
>
> Signed-off-by: Wang Shilong <[email protected]>

Thanks, applied.

- Ted