aboutsummaryrefslogtreecommitdiffstats
path: root/fs/kernfs/file.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2013-12-11 14:11:55 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2013-12-11 20:39:20 -0500
commitc525aaddc366df23eb095d58a2bdf11cce62a98b (patch)
tree4f1e5e85e619e46daef45537bd5926925587b463 /fs/kernfs/file.c
parentadc5e8b58f4886d45f79f4ff41a09001a76a6b12 (diff)
kernfs: s/sysfs/kernfs/ in various data structures
kernfs has just been separated out from sysfs and we're already in full conflict mode. Nothing can make the situation any worse. Let's take the chance to name things properly. This patch performs the following renames. * s/sysfs_open_dirent/kernfs_open_node/ * s/sysfs_open_file/kernfs_open_file/ * s/sysfs_inode_attrs/kernfs_iattrs/ * s/sysfs_addrm_cxt/kernfs_addrm_cxt/ * s/sysfs_super_info/kernfs_super_info/ * s/sysfs_info()/kernfs_info()/ * s/sysfs_open_dirent_lock/kernfs_open_node_lock/ * s/sysfs_open_file_mutex/kernfs_open_file_mutex/ * s/sysfs_of()/kernfs_of()/ This patch is strictly rename only and doesn't introduce any functional difference. Signed-off-by: Tejun Heo <tj@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'fs/kernfs/file.c')
-rw-r--r--fs/kernfs/file.c172
1 files changed, 86 insertions, 86 deletions
diff --git a/fs/kernfs/file.c b/fs/kernfs/file.c
index 5277021196a7..2714a394cd81 100644
--- a/fs/kernfs/file.c
+++ b/fs/kernfs/file.c
@@ -18,27 +18,27 @@
18#include "kernfs-internal.h" 18#include "kernfs-internal.h"
19 19
20/* 20/*
21 * There's one sysfs_open_file for each open file and one sysfs_open_dirent 21 * There's one kernfs_open_file for each open file and one kernfs_open_node
22 * for each kernfs_node with one or more open files. 22 * for each kernfs_node with one or more open files.
23 * 23 *
24 * kernfs_node->attr.open points to sysfs_open_dirent. attr.open is 24 * kernfs_node->attr.open points to kernfs_open_node. attr.open is
25 * protected by sysfs_open_dirent_lock. 25 * protected by kernfs_open_node_lock.
26 * 26 *
27 * filp->private_data points to seq_file whose ->private points to 27 * filp->private_data points to seq_file whose ->private points to
28 * sysfs_open_file. sysfs_open_files are chained at 28 * kernfs_open_file. kernfs_open_files are chained at
29 * sysfs_open_dirent->files, which is protected by sysfs_open_file_mutex. 29 * kernfs_open_node->files, which is protected by kernfs_open_file_mutex.
30 */ 30 */
31static DEFINE_SPINLOCK(sysfs_open_dirent_lock); 31static DEFINE_SPINLOCK(kernfs_open_node_lock);
32static DEFINE_MUTEX(sysfs_open_file_mutex); 32static DEFINE_MUTEX(kernfs_open_file_mutex);
33 33
34struct sysfs_open_dirent { 34struct kernfs_open_node {
35 atomic_t refcnt; 35 atomic_t refcnt;
36 atomic_t event; 36 atomic_t event;
37 wait_queue_head_t poll; 37 wait_queue_head_t poll;
38 struct list_head files; /* goes through sysfs_open_file.list */ 38 struct list_head files; /* goes through kernfs_open_file.list */
39}; 39};
40 40
41static struct sysfs_open_file *sysfs_of(struct file *file) 41static struct kernfs_open_file *kernfs_of(struct file *file)
42{ 42{
43 return ((struct seq_file *)file->private_data)->private; 43 return ((struct seq_file *)file->private_data)->private;
44} 44}
@@ -56,7 +56,7 @@ static const struct kernfs_ops *kernfs_ops(struct kernfs_node *kn)
56 56
57static void *kernfs_seq_start(struct seq_file *sf, loff_t *ppos) 57static void *kernfs_seq_start(struct seq_file *sf, loff_t *ppos)
58{ 58{
59 struct sysfs_open_file *of = sf->private; 59 struct kernfs_open_file *of = sf->private;
60 const struct kernfs_ops *ops; 60 const struct kernfs_ops *ops;
61 61
62 /* 62 /*
@@ -81,7 +81,7 @@ static void *kernfs_seq_start(struct seq_file *sf, loff_t *ppos)
81 81
82static void *kernfs_seq_next(struct seq_file *sf, void *v, loff_t *ppos) 82static void *kernfs_seq_next(struct seq_file *sf, void *v, loff_t *ppos)
83{ 83{
84 struct sysfs_open_file *of = sf->private; 84 struct kernfs_open_file *of = sf->private;
85 const struct kernfs_ops *ops = kernfs_ops(of->kn); 85 const struct kernfs_ops *ops = kernfs_ops(of->kn);
86 86
87 if (ops->seq_next) { 87 if (ops->seq_next) {
@@ -98,7 +98,7 @@ static void *kernfs_seq_next(struct seq_file *sf, void *v, loff_t *ppos)
98 98
99static void kernfs_seq_stop(struct seq_file *sf, void *v) 99static void kernfs_seq_stop(struct seq_file *sf, void *v)
100{ 100{
101 struct sysfs_open_file *of = sf->private; 101 struct kernfs_open_file *of = sf->private;
102 const struct kernfs_ops *ops = kernfs_ops(of->kn); 102 const struct kernfs_ops *ops = kernfs_ops(of->kn);
103 103
104 if (ops->seq_stop) 104 if (ops->seq_stop)
@@ -110,7 +110,7 @@ static void kernfs_seq_stop(struct seq_file *sf, void *v)
110 110
111static int kernfs_seq_show(struct seq_file *sf, void *v) 111static int kernfs_seq_show(struct seq_file *sf, void *v)
112{ 112{
113 struct sysfs_open_file *of = sf->private; 113 struct kernfs_open_file *of = sf->private;
114 114
115 of->event = atomic_read(&of->kn->attr.open->event); 115 of->event = atomic_read(&of->kn->attr.open->event);
116 116
@@ -130,7 +130,7 @@ static const struct seq_operations kernfs_seq_ops = {
130 * it difficult to use seq_file. Implement simplistic custom buffering for 130 * it difficult to use seq_file. Implement simplistic custom buffering for
131 * bin files. 131 * bin files.
132 */ 132 */
133static ssize_t kernfs_file_direct_read(struct sysfs_open_file *of, 133static ssize_t kernfs_file_direct_read(struct kernfs_open_file *of,
134 char __user *user_buf, size_t count, 134 char __user *user_buf, size_t count,
135 loff_t *ppos) 135 loff_t *ppos)
136{ 136{
@@ -187,7 +187,7 @@ static ssize_t kernfs_file_direct_read(struct sysfs_open_file *of,
187static ssize_t kernfs_file_read(struct file *file, char __user *user_buf, 187static ssize_t kernfs_file_read(struct file *file, char __user *user_buf,
188 size_t count, loff_t *ppos) 188 size_t count, loff_t *ppos)
189{ 189{
190 struct sysfs_open_file *of = sysfs_of(file); 190 struct kernfs_open_file *of = kernfs_of(file);
191 191
192 if (of->kn->flags & SYSFS_FLAG_HAS_SEQ_SHOW) 192 if (of->kn->flags & SYSFS_FLAG_HAS_SEQ_SHOW)
193 return seq_read(file, user_buf, count, ppos); 193 return seq_read(file, user_buf, count, ppos);
@@ -214,7 +214,7 @@ static ssize_t kernfs_file_read(struct file *file, char __user *user_buf,
214static ssize_t kernfs_file_write(struct file *file, const char __user *user_buf, 214static ssize_t kernfs_file_write(struct file *file, const char __user *user_buf,
215 size_t count, loff_t *ppos) 215 size_t count, loff_t *ppos)
216{ 216{
217 struct sysfs_open_file *of = sysfs_of(file); 217 struct kernfs_open_file *of = kernfs_of(file);
218 ssize_t len = min_t(size_t, count, PAGE_SIZE); 218 ssize_t len = min_t(size_t, count, PAGE_SIZE);
219 const struct kernfs_ops *ops; 219 const struct kernfs_ops *ops;
220 char *buf; 220 char *buf;
@@ -259,7 +259,7 @@ out_free:
259static void kernfs_vma_open(struct vm_area_struct *vma) 259static void kernfs_vma_open(struct vm_area_struct *vma)
260{ 260{
261 struct file *file = vma->vm_file; 261 struct file *file = vma->vm_file;
262 struct sysfs_open_file *of = sysfs_of(file); 262 struct kernfs_open_file *of = kernfs_of(file);
263 263
264 if (!of->vm_ops) 264 if (!of->vm_ops)
265 return; 265 return;
@@ -276,7 +276,7 @@ static void kernfs_vma_open(struct vm_area_struct *vma)
276static int kernfs_vma_fault(struct vm_area_struct *vma, struct vm_fault *vmf) 276static int kernfs_vma_fault(struct vm_area_struct *vma, struct vm_fault *vmf)
277{ 277{
278 struct file *file = vma->vm_file; 278 struct file *file = vma->vm_file;
279 struct sysfs_open_file *of = sysfs_of(file); 279 struct kernfs_open_file *of = kernfs_of(file);
280 int ret; 280 int ret;
281 281
282 if (!of->vm_ops) 282 if (!of->vm_ops)
@@ -297,7 +297,7 @@ static int kernfs_vma_page_mkwrite(struct vm_area_struct *vma,
297 struct vm_fault *vmf) 297 struct vm_fault *vmf)
298{ 298{
299 struct file *file = vma->vm_file; 299 struct file *file = vma->vm_file;
300 struct sysfs_open_file *of = sysfs_of(file); 300 struct kernfs_open_file *of = kernfs_of(file);
301 int ret; 301 int ret;
302 302
303 if (!of->vm_ops) 303 if (!of->vm_ops)
@@ -320,7 +320,7 @@ static int kernfs_vma_access(struct vm_area_struct *vma, unsigned long addr,
320 void *buf, int len, int write) 320 void *buf, int len, int write)
321{ 321{
322 struct file *file = vma->vm_file; 322 struct file *file = vma->vm_file;
323 struct sysfs_open_file *of = sysfs_of(file); 323 struct kernfs_open_file *of = kernfs_of(file);
324 int ret; 324 int ret;
325 325
326 if (!of->vm_ops) 326 if (!of->vm_ops)
@@ -342,7 +342,7 @@ static int kernfs_vma_set_policy(struct vm_area_struct *vma,
342 struct mempolicy *new) 342 struct mempolicy *new)
343{ 343{
344 struct file *file = vma->vm_file; 344 struct file *file = vma->vm_file;
345 struct sysfs_open_file *of = sysfs_of(file); 345 struct kernfs_open_file *of = kernfs_of(file);
346 int ret; 346 int ret;
347 347
348 if (!of->vm_ops) 348 if (!of->vm_ops)
@@ -363,7 +363,7 @@ static struct mempolicy *kernfs_vma_get_policy(struct vm_area_struct *vma,
363 unsigned long addr) 363 unsigned long addr)
364{ 364{
365 struct file *file = vma->vm_file; 365 struct file *file = vma->vm_file;
366 struct sysfs_open_file *of = sysfs_of(file); 366 struct kernfs_open_file *of = kernfs_of(file);
367 struct mempolicy *pol; 367 struct mempolicy *pol;
368 368
369 if (!of->vm_ops) 369 if (!of->vm_ops)
@@ -385,7 +385,7 @@ static int kernfs_vma_migrate(struct vm_area_struct *vma,
385 unsigned long flags) 385 unsigned long flags)
386{ 386{
387 struct file *file = vma->vm_file; 387 struct file *file = vma->vm_file;
388 struct sysfs_open_file *of = sysfs_of(file); 388 struct kernfs_open_file *of = kernfs_of(file);
389 int ret; 389 int ret;
390 390
391 if (!of->vm_ops) 391 if (!of->vm_ops)
@@ -417,7 +417,7 @@ static const struct vm_operations_struct kernfs_vm_ops = {
417 417
418static int kernfs_file_mmap(struct file *file, struct vm_area_struct *vma) 418static int kernfs_file_mmap(struct file *file, struct vm_area_struct *vma)
419{ 419{
420 struct sysfs_open_file *of = sysfs_of(file); 420 struct kernfs_open_file *of = kernfs_of(file);
421 const struct kernfs_ops *ops; 421 const struct kernfs_ops *ops;
422 int rc; 422 int rc;
423 423
@@ -473,9 +473,9 @@ out_unlock:
473} 473}
474 474
475/** 475/**
476 * sysfs_get_open_dirent - get or create sysfs_open_dirent 476 * sysfs_get_open_dirent - get or create kernfs_open_node
477 * @kn: target kernfs_node 477 * @kn: target kernfs_node
478 * @of: sysfs_open_file for this instance of open 478 * @of: kernfs_open_file for this instance of open
479 * 479 *
480 * If @kn->attr.open exists, increment its reference count; otherwise, 480 * If @kn->attr.open exists, increment its reference count; otherwise,
481 * create one. @of is chained to the files list. 481 * create one. @of is chained to the files list.
@@ -487,49 +487,49 @@ out_unlock:
487 * 0 on success, -errno on failure. 487 * 0 on success, -errno on failure.
488 */ 488 */
489static int sysfs_get_open_dirent(struct kernfs_node *kn, 489static int sysfs_get_open_dirent(struct kernfs_node *kn,
490 struct sysfs_open_file *of) 490 struct kernfs_open_file *of)
491{ 491{
492 struct sysfs_open_dirent *od, *new_od = NULL; 492 struct kernfs_open_node *on, *new_on = NULL;
493 493
494 retry: 494 retry:
495 mutex_lock(&sysfs_open_file_mutex); 495 mutex_lock(&kernfs_open_file_mutex);
496 spin_lock_irq(&sysfs_open_dirent_lock); 496 spin_lock_irq(&kernfs_open_node_lock);
497 497
498 if (!kn->attr.open && new_od) { 498 if (!kn->attr.open && new_on) {
499 kn->attr.open = new_od; 499 kn->attr.open = new_on;
500 new_od = NULL; 500 new_on = NULL;
501 } 501 }
502 502
503 od = kn->attr.open; 503 on = kn->attr.open;
504 if (od) { 504 if (on) {
505 atomic_inc(&od->refcnt); 505 atomic_inc(&on->refcnt);
506 list_add_tail(&of->list, &od->files); 506 list_add_tail(&of->list, &on->files);
507 } 507 }
508 508
509 spin_unlock_irq(&sysfs_open_dirent_lock); 509 spin_unlock_irq(&kernfs_open_node_lock);
510 mutex_unlock(&sysfs_open_file_mutex); 510 mutex_unlock(&kernfs_open_file_mutex);
511 511
512 if (od) { 512 if (on) {
513 kfree(new_od); 513 kfree(new_on);
514 return 0; 514 return 0;
515 } 515 }
516 516
517 /* not there, initialize a new one and retry */ 517 /* not there, initialize a new one and retry */
518 new_od = kmalloc(sizeof(*new_od), GFP_KERNEL); 518 new_on = kmalloc(sizeof(*new_on), GFP_KERNEL);
519 if (!new_od) 519 if (!new_on)
520 return -ENOMEM; 520 return -ENOMEM;
521 521
522 atomic_set(&new_od->refcnt, 0); 522 atomic_set(&new_on->refcnt, 0);
523 atomic_set(&new_od->event, 1); 523 atomic_set(&new_on->event, 1);
524 init_waitqueue_head(&new_od->poll); 524 init_waitqueue_head(&new_on->poll);
525 INIT_LIST_HEAD(&new_od->files); 525 INIT_LIST_HEAD(&new_on->files);
526 goto retry; 526 goto retry;
527} 527}
528 528
529/** 529/**
530 * sysfs_put_open_dirent - put sysfs_open_dirent 530 * sysfs_put_open_dirent - put kernfs_open_node
531 * @kn: target kernfs_nodet 531 * @kn: target kernfs_nodet
532 * @of: associated sysfs_open_file 532 * @of: associated kernfs_open_file
533 * 533 *
534 * Put @kn->attr.open and unlink @of from the files list. If 534 * Put @kn->attr.open and unlink @of from the files list. If
535 * reference count reaches zero, disassociate and free it. 535 * reference count reaches zero, disassociate and free it.
@@ -538,33 +538,33 @@ static int sysfs_get_open_dirent(struct kernfs_node *kn,
538 * None. 538 * None.
539 */ 539 */
540static void sysfs_put_open_dirent(struct kernfs_node *kn, 540static void sysfs_put_open_dirent(struct kernfs_node *kn,
541 struct sysfs_open_file *of) 541 struct kernfs_open_file *of)
542{ 542{
543 struct sysfs_open_dirent *od = kn->attr.open; 543 struct kernfs_open_node *on = kn->attr.open;
544 unsigned long flags; 544 unsigned long flags;
545 545
546 mutex_lock(&sysfs_open_file_mutex); 546 mutex_lock(&kernfs_open_file_mutex);
547 spin_lock_irqsave(&sysfs_open_dirent_lock, flags); 547 spin_lock_irqsave(&kernfs_open_node_lock, flags);
548 548
549 if (of) 549 if (of)
550 list_del(&of->list); 550 list_del(&of->list);
551 551
552 if (atomic_dec_and_test(&od->refcnt)) 552 if (atomic_dec_and_test(&on->refcnt))
553 kn->attr.open = NULL; 553 kn->attr.open = NULL;
554 else 554 else
555 od = NULL; 555 on = NULL;
556 556
557 spin_unlock_irqrestore(&sysfs_open_dirent_lock, flags); 557 spin_unlock_irqrestore(&kernfs_open_node_lock, flags);
558 mutex_unlock(&sysfs_open_file_mutex); 558 mutex_unlock(&kernfs_open_file_mutex);
559 559
560 kfree(od); 560 kfree(on);
561} 561}
562 562
563static int kernfs_file_open(struct inode *inode, struct file *file) 563static int kernfs_file_open(struct inode *inode, struct file *file)
564{ 564{
565 struct kernfs_node *kn = file->f_path.dentry->d_fsdata; 565 struct kernfs_node *kn = file->f_path.dentry->d_fsdata;
566 const struct kernfs_ops *ops; 566 const struct kernfs_ops *ops;
567 struct sysfs_open_file *of; 567 struct kernfs_open_file *of;
568 bool has_read, has_write, has_mmap; 568 bool has_read, has_write, has_mmap;
569 int error = -EACCES; 569 int error = -EACCES;
570 570
@@ -586,9 +586,9 @@ static int kernfs_file_open(struct inode *inode, struct file *file)
586 (!(inode->i_mode & S_IRUGO) || !has_read)) 586 (!(inode->i_mode & S_IRUGO) || !has_read))
587 goto err_out; 587 goto err_out;
588 588
589 /* allocate a sysfs_open_file for the file */ 589 /* allocate a kernfs_open_file for the file */
590 error = -ENOMEM; 590 error = -ENOMEM;
591 of = kzalloc(sizeof(struct sysfs_open_file), GFP_KERNEL); 591 of = kzalloc(sizeof(struct kernfs_open_file), GFP_KERNEL);
592 if (!of) 592 if (!of)
593 goto err_out; 593 goto err_out;
594 594
@@ -654,7 +654,7 @@ err_out:
654static int kernfs_file_release(struct inode *inode, struct file *filp) 654static int kernfs_file_release(struct inode *inode, struct file *filp)
655{ 655{
656 struct kernfs_node *kn = filp->f_path.dentry->d_fsdata; 656 struct kernfs_node *kn = filp->f_path.dentry->d_fsdata;
657 struct sysfs_open_file *of = sysfs_of(filp); 657 struct kernfs_open_file *of = kernfs_of(filp);
658 658
659 sysfs_put_open_dirent(kn, of); 659 sysfs_put_open_dirent(kn, of);
660 seq_release(inode, filp); 660 seq_release(inode, filp);
@@ -665,26 +665,26 @@ static int kernfs_file_release(struct inode *inode, struct file *filp)
665 665
666void sysfs_unmap_bin_file(struct kernfs_node *kn) 666void sysfs_unmap_bin_file(struct kernfs_node *kn)
667{ 667{
668 struct sysfs_open_dirent *od; 668 struct kernfs_open_node *on;
669 struct sysfs_open_file *of; 669 struct kernfs_open_file *of;
670 670
671 if (!(kn->flags & SYSFS_FLAG_HAS_MMAP)) 671 if (!(kn->flags & SYSFS_FLAG_HAS_MMAP))
672 return; 672 return;
673 673
674 spin_lock_irq(&sysfs_open_dirent_lock); 674 spin_lock_irq(&kernfs_open_node_lock);
675 od = kn->attr.open; 675 on = kn->attr.open;
676 if (od) 676 if (on)
677 atomic_inc(&od->refcnt); 677 atomic_inc(&on->refcnt);
678 spin_unlock_irq(&sysfs_open_dirent_lock); 678 spin_unlock_irq(&kernfs_open_node_lock);
679 if (!od) 679 if (!on)
680 return; 680 return;
681 681
682 mutex_lock(&sysfs_open_file_mutex); 682 mutex_lock(&kernfs_open_file_mutex);
683 list_for_each_entry(of, &od->files, list) { 683 list_for_each_entry(of, &on->files, list) {
684 struct inode *inode = file_inode(of->file); 684 struct inode *inode = file_inode(of->file);
685 unmap_mapping_range(inode->i_mapping, 0, 0, 1); 685 unmap_mapping_range(inode->i_mapping, 0, 0, 1);
686 } 686 }
687 mutex_unlock(&sysfs_open_file_mutex); 687 mutex_unlock(&kernfs_open_file_mutex);
688 688
689 sysfs_put_open_dirent(kn, NULL); 689 sysfs_put_open_dirent(kn, NULL);
690} 690}
@@ -704,19 +704,19 @@ void sysfs_unmap_bin_file(struct kernfs_node *kn)
704 */ 704 */
705static unsigned int kernfs_file_poll(struct file *filp, poll_table *wait) 705static unsigned int kernfs_file_poll(struct file *filp, poll_table *wait)
706{ 706{
707 struct sysfs_open_file *of = sysfs_of(filp); 707 struct kernfs_open_file *of = kernfs_of(filp);
708 struct kernfs_node *kn = filp->f_path.dentry->d_fsdata; 708 struct kernfs_node *kn = filp->f_path.dentry->d_fsdata;
709 struct sysfs_open_dirent *od = kn->attr.open; 709 struct kernfs_open_node *on = kn->attr.open;
710 710
711 /* need parent for the kobj, grab both */ 711 /* need parent for the kobj, grab both */
712 if (!sysfs_get_active(kn)) 712 if (!sysfs_get_active(kn))
713 goto trigger; 713 goto trigger;
714 714
715 poll_wait(filp, &od->poll, wait); 715 poll_wait(filp, &on->poll, wait);
716 716
717 sysfs_put_active(kn); 717 sysfs_put_active(kn);
718 718
719 if (of->event != atomic_read(&od->event)) 719 if (of->event != atomic_read(&on->event))
720 goto trigger; 720 goto trigger;
721 721
722 return DEFAULT_POLLMASK; 722 return DEFAULT_POLLMASK;
@@ -733,20 +733,20 @@ static unsigned int kernfs_file_poll(struct file *filp, poll_table *wait)
733 */ 733 */
734void kernfs_notify(struct kernfs_node *kn) 734void kernfs_notify(struct kernfs_node *kn)
735{ 735{
736 struct sysfs_open_dirent *od; 736 struct kernfs_open_node *on;
737 unsigned long flags; 737 unsigned long flags;
738 738
739 spin_lock_irqsave(&sysfs_open_dirent_lock, flags); 739 spin_lock_irqsave(&kernfs_open_node_lock, flags);
740 740
741 if (!WARN_ON(sysfs_type(kn) != SYSFS_KOBJ_ATTR)) { 741 if (!WARN_ON(sysfs_type(kn) != SYSFS_KOBJ_ATTR)) {
742 od = kn->attr.open; 742 on = kn->attr.open;
743 if (od) { 743 if (on) {
744 atomic_inc(&od->event); 744 atomic_inc(&on->event);
745 wake_up_interruptible(&od->poll); 745 wake_up_interruptible(&on->poll);
746 } 746 }
747 } 747 }
748 748
749 spin_unlock_irqrestore(&sysfs_open_dirent_lock, flags); 749 spin_unlock_irqrestore(&kernfs_open_node_lock, flags);
750} 750}
751EXPORT_SYMBOL_GPL(kernfs_notify); 751EXPORT_SYMBOL_GPL(kernfs_notify);
752 752
@@ -780,7 +780,7 @@ struct kernfs_node *kernfs_create_file_ns_key(struct kernfs_node *parent,
780 void *priv, const void *ns, 780 void *priv, const void *ns,
781 struct lock_class_key *key) 781 struct lock_class_key *key)
782{ 782{
783 struct sysfs_addrm_cxt acxt; 783 struct kernfs_addrm_cxt acxt;
784 struct kernfs_node *kn; 784 struct kernfs_node *kn;
785 int rc; 785 int rc;
786 786