diff options
Diffstat (limited to 'fs/sysfs')
-rw-r--r-- | fs/sysfs/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/sysfs/file.c b/fs/sysfs/file.c index fe6388fbd154..810cf6e613e5 100644 --- a/fs/sysfs/file.c +++ b/fs/sysfs/file.c | |||
@@ -252,8 +252,8 @@ int sysfs_add_file_mode_ns(struct kernfs_node *parent, | |||
252 | if (!attr->ignore_lockdep) | 252 | if (!attr->ignore_lockdep) |
253 | key = attr->key ?: (struct lock_class_key *)&attr->skey; | 253 | key = attr->key ?: (struct lock_class_key *)&attr->skey; |
254 | #endif | 254 | #endif |
255 | kn = kernfs_create_file_ns_key(parent, attr->name, mode, size, | 255 | kn = __kernfs_create_file(parent, attr->name, mode, size, ops, |
256 | ops, (void *)attr, ns, key); | 256 | (void *)attr, ns, true, key); |
257 | if (IS_ERR(kn)) { | 257 | if (IS_ERR(kn)) { |
258 | if (PTR_ERR(kn) == -EEXIST) | 258 | if (PTR_ERR(kn) == -EEXIST) |
259 | sysfs_warn_dup(parent, attr->name); | 259 | sysfs_warn_dup(parent, attr->name); |