Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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")
Signed-off-by: Imran Khan <imran.f.khan@oracle.com>
Link: https://lore.kernel.org/r/20220218010205.717582-1-imran.f.khan@oracle.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Imran Khan and committed by
Greg Kroah-Hartman
f3a69022 27446562

-1
-1
fs/kernfs/kernfs-internal.h
··· 122 122 /* 123 123 * dir.c 124 124 */ 125 - extern struct rw_semaphore kernfs_rwsem; 126 125 extern const struct dentry_operations kernfs_dops; 127 126 extern const struct file_operations kernfs_dir_fops; 128 127 extern const struct inode_operations kernfs_dir_iops;