Skip to contentSkip to conversation

kernfs: remove redundant kernfs_rwsem declaration.

PATCH In review Imran Khan 2 participants 2 messages Feb 18, 2022 – Feb 22, 2022 kernfs

lore
Share & tools
lore

Imran Khan

author
#0 lore raw

PATCH 1/1 kernfs: remove redundant kernfs_rwsem declaration.

Since 'commit 393c3714081a ("kernfs: switch global kernfs_rwsem lock to per-fs lock")' per-fs kernfs_rwsem has replaced global kernfs_rwsem. Remove redundant declaration of global kernfs_rwsem.

Fixes 393c3714081a ("kernfs: switch global kernfs_rwsem lock to per-fs

lock")

---
 fs/kernfs/kernfs-internal.h | 1 -
 1 file changed, 1 deletion(-)
fs/kernfs/kernfs-internal.h +0 -1
index f9cc912c31e1b..fc3b32f82a605 100644
@@ -122,7 +122,6 @@ int __kernfs_setattr(struct kernfs_node *kn, const struct iattr *iattr);
 /*
  * dir.c
  */
-extern struct rw_semaphore kernfs_rwsem;
 extern const struct dentry_operations kernfs_dops;
 extern const struct file_operations kernfs_dir_fops;
 extern const struct inode_operations kernfs_dir_iops;

base-commit: 763a906a02e961eedabab7dbedd16904a3bd0184

Signature · 1 line
2.30.2
maintainer Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Imran Khan

Since 'commit 393c3714081a ("kernfs: switch global kernfs_rwsem lock to per-fs lock")' per-fs kernfs_rwsem has replaced global kernfs_rwsem. Remove redundant declaration of global kernfs_rwsem.

Fixes 393c3714081a ("kernfs: switch global kernfs_rwsem lock to per-fs

lock")

Thanks.

Signature · 1 line
tejun