mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kernfs: remove redundant kernfs_rwsem declaration.
@ 2022-02-18  1:02 Imran Khan
  2022-02-22 18:10 ` Tejun Heo
  0 siblings, 1 reply; 2+ messages in thread
From: Imran Khan @ 2022-02-18  1:02 UTC (permalink / raw)
  To: gregkh, tj; +Cc: linux-kernel

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>
---
 fs/kernfs/kernfs-internal.h | 1 -
 1 file changed, 1 deletion(-)

diff --git a/fs/kernfs/kernfs-internal.h b/fs/kernfs/kernfs-internal.h
index f9cc912c31e1b..fc3b32f82a605 100644
--- a/fs/kernfs/kernfs-internal.h
+++ b/fs/kernfs/kernfs-internal.h
@@ -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
-- 
2.30.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] kernfs: remove redundant kernfs_rwsem declaration.
  2022-02-18  1:02 [PATCH] kernfs: remove redundant kernfs_rwsem declaration Imran Khan
@ 2022-02-22 18:10 ` Tejun Heo
  0 siblings, 0 replies; 2+ messages in thread
From: Tejun Heo @ 2022-02-22 18:10 UTC (permalink / raw)
  To: Imran Khan; +Cc: gregkh, linux-kernel

On Fri, Feb 18, 2022 at 12:02:05PM +1100, Imran Khan wrote:
> 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>

Acked-by: Tejun Heo <tj@kernel.org>

Thanks.

-- 
tejun

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-22 18:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-18  1:02 [PATCH] kernfs: remove redundant kernfs_rwsem declaration Imran Khan
2022-02-22 18:10 ` Tejun Heo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®