linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] fs: doc: describe 'pinned' parameter in do_lock_mount()
@ 2025-09-24 19:36 Kriish Sharma
  2025-09-24 20:57 ` Al Viro
  0 siblings, 1 reply; 3+ messages in thread
From: Kriish Sharma @ 2025-09-24 19:36 UTC (permalink / raw)
  To: viro, brauner, jack
  Cc: linux-fsdevel, linux-kernel, david.hunter.linux, skhan,
	Kriish Sharma

The kernel-doc comment for do_lock_mount() was missing a description
for the 'pinned' parameter:

  Warning: fs/namespace.c:2772 function parameter 'pinned' not described
  in 'do_lock_mount'

This patch adds a short description:

  @pinned: receives the pinned mountpoint

to fix the warning and improve documentation clarity.

Signed-off-by: Kriish Sharma <kriish.sharma2006@gmail.com>
---
 fs/namespace.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/namespace.c b/fs/namespace.c
index 51f77c65c0c6..4de1a33ab516 100644
--- a/fs/namespace.c
+++ b/fs/namespace.c
@@ -2738,6 +2738,7 @@ static int attach_recursive_mnt(struct mount *source_mnt,
 /**
  * do_lock_mount - lock mount and mountpoint
  * @path:    target path
+ * @pinned:  receives the pinned mountpoint
  * @beneath: whether the intention is to mount beneath @path
  *
  * Follow the mount stack on @path until the top mount @mnt is found. If
-- 
2.34.1


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

end of thread, other threads:[~2025-09-24 21:22 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-24 19:36 [PATCH] fs: doc: describe 'pinned' parameter in do_lock_mount() Kriish Sharma
2025-09-24 20:57 ` Al Viro
2025-09-24 21:22   ` Al Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).