All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fs: update outdated documentation about i_mutex lock.
@ 2022-02-12 14:53 Niels Dossche
  0 siblings, 0 replies; only message in thread
From: Niels Dossche @ 2022-02-12 14:53 UTC (permalink / raw)
  To: Alexander Viro; +Cc: linux-kernel, trivial, linux-fsdevel

This field was renamed from i_mutex to i_rwsem and now resides in d_inode.

Signed-off-by: Niels Dossche <niels.dossche@ugent.be>
---
 fs/namei.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fs/namei.c b/fs/namei.c
index 3f1829b3ab5b..abf454f12365 100644
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -2692,7 +2692,7 @@ static int lookup_one_common(struct user_namespace *mnt_userns,
  * Note that this routine is purely a helper for filesystem usage and should
  * not be called by generic code.
  *
- * The caller must hold base->i_mutex.
+ * The caller must hold base->d_inode->i_rwsem.
  */
 struct dentry *try_lookup_one_len(const char *name, struct dentry *base, int len)
 {
-- 
2.34.1

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2022-02-12 14:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-02-12 14:53 [PATCH] fs: update outdated documentation about i_mutex lock Niels Dossche

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.