lkml.org 
[lkml]   [2014]   [Oct]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 5/5] fs/anon_inodes.c: Remove incorrect information in comment
Date
Dentries for the anonymous inode are *not* named based on the inode
sequence number.

Signed-off-by: Eric Biggers <ebiggers3@gmail.com>
---
fs/anon_inodes.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/fs/anon_inodes.c b/fs/anon_inodes.c
index bbfa038..ee81409 100644
--- a/fs/anon_inodes.c
+++ b/fs/anon_inodes.c
@@ -73,10 +73,7 @@ struct file *anon_inode_getfile(const char *name,
if (fops->owner && !try_module_get(fops->owner))
return ERR_PTR(-ENOENT);

- /*
- * Link the inode to a directory entry by creating a unique name
- * using the inode sequence number.
- */
+ /* Create a dentry for the new file. */
file = ERR_PTR(-ENOMEM);
this.name = name;
this.len = strlen(name);
--
2.1.2


\
 
 \ /
  Last update: 2014-10-12 23:22    [W:0.064 / U:0.144 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site