Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1217566 > unrolled thread
| Started by | ulfalizer.lkml@gmail.com |
|---|---|
| First post | 2015-09-02 14:40 +0200 |
| Last post | 2015-09-02 14:40 +0200 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
[PATCH 3/3] configfs: fix pre-kernfs sysfs_dirent reference ulfalizer.lkml@gmail.com - 2015-09-02 14:40 +0200
| From | ulfalizer.lkml@gmail.com |
|---|---|
| Date | 2015-09-02 14:40 +0200 |
| Subject | [PATCH 3/3] configfs: fix pre-kernfs sysfs_dirent reference |
| Message-ID | <q4fuy-58W-17@gated-at.bofh.it> |
From: Ulf Magnusson <ulfalizer@gmail.com>
sysfs_dirent was renamed in 324a56e16e44 ("kernfs:
s/sysfs_dirent/kernfs_node/ and rename its friends accordingly").
Do s/sysfs_dirent/configfs_dirent/ - possibly a copy-paste error to
begin with. Clean up the language a bit too.
Signed-off-by: Ulf Magnusson <ulfalizer@gmail.com>
---
fs/configfs/inode.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/fs/configfs/inode.c b/fs/configfs/inode.c
index eae8757..e076661 100644
--- a/fs/configfs/inode.c
+++ b/fs/configfs/inode.c
@@ -133,13 +133,14 @@ struct inode *configfs_new_inode(umode_t mode, struct configfs_dirent *sd,
inode->i_mapping->a_ops = &configfs_aops;
inode->i_op = &configfs_inode_operations;
- if (sd->s_iattr) {
- /* sysfs_dirent has non-default attributes
- * get them for the new inode from persistent copy
- * in sysfs_dirent
+ if (sd->s_iattr)
+ /*
+ * configfs_dirent has non-default attributes. Set them
+ * on the new inode from the persistent copy in
+ * configfs_dirent.
*/
set_inode_attr(inode, sd->s_iattr);
- } else
+ else
set_default_inode_attr(inode, mode);
}
return inode;
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to top | Article view | linux.kernel
csiph-web