Skip to contentSkip to conversation

kernfs: Add missing documentation for kernfs_put_active's drop_supers argument

PATCH New T.J. Mercier 1 participant 1 message Mar 13 kernfs

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kernfs: Add missing documentation for kernfs_put_active's drop_supers argument

The drop_supers argument was added to kernfs_put_active to control whether the kernfs_supers_rwsem is temporarily dropped along with the kernfs_rwsem, but no documentation was added for it.

Fixes eea5d2bb34ba ("kernfs: Send IN_DELETE_SELF and IN_IGNORED")
---
 fs/kernfs/dir.c | 2 ++
 1 file changed, 2 insertions(+)
fs/kernfs/dir.c +2 -0
index 715b651e35a0..7f355316704c 100644
@@ -481,6 +481,8 @@ void kernfs_put_active(struct kernfs_node *kn)
 /**
  * kernfs_drain - drain kernfs_node
  * @kn: kernfs_node to drain
+ * @drop_supers: Set to true if this function is called with the
+ *               kernfs_supers_rwsem locked.
  *
  * Drain existing usages and nuke all existing mmaps of @kn.  Multiple
  * removers may invoke this function concurrently on @kn and all will

base-commit: e7ccc9e054beb4c366228d24786f67c738206605

Signature · 1 line
2.53.0.851.ga537e3e6e9-goog