aboutsummaryrefslogtreecommitdiffstats
path: root/fs/stack.c
diff options
context:
space:
mode:
authorJunxuan Liao <ljx@cs.wisc.edu>2025-06-22 23:01:32 -0500
committerChristian Brauner <brauner@kernel.org>2025-06-23 12:17:33 +0200
commit2773d282cd56464f62e9b4703c41d2f733a67842 (patch)
tree74326b19e67c7ee91acfc1aa84a80e0d3a988956 /fs/stack.c
parent6ae58121126dcf8efcc2611f216a36a5e50b8ad9 (diff)
downloadlinux-2773d282cd56464f62e9b4703c41d2f733a67842.tar.gz
docs/vfs: update references to i_mutex to i_rwsem
VFS has switched to i_rwsem for ten years now (9902af79c01a: parallel lookups actual switch to rwsem), but the VFS documentation and comments still has references to i_mutex. Signed-off-by: Junxuan Liao <ljx@cs.wisc.edu> Link: https://lore.kernel.org/72223729-5471-474a-af3c-f366691fba82@cs.wisc.edu Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/stack.c')
-rw-r--r--fs/stack.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/stack.c b/fs/stack.c
index f189201199443d..d8c782e064e3e2 100644
--- a/fs/stack.c
+++ b/fs/stack.c
@@ -3,7 +3,7 @@
#include <linux/fs.h>
#include <linux/fs_stack.h>
-/* does _NOT_ require i_mutex to be held.
+/* does _NOT_ require i_rwsem to be held.
*
* This function cannot be inlined since i_size_{read,write} is rather
* heavy-weight on 32-bit systems
@@ -41,7 +41,7 @@ void fsstack_copy_inode_size(struct inode *dst, struct inode *src)
* If CONFIG_SMP or CONFIG_PREEMPTION on 32-bit, it's vital for
* fsstack_copy_inode_size() to hold some lock around
* i_size_write(), otherwise i_size_read() may spin forever (see
- * include/linux/fs.h). We don't necessarily hold i_mutex when this
+ * include/linux/fs.h). We don't necessarily hold i_rwsem when this
* is called, so take i_lock for that case.
*
* And if on 32-bit, continue our effort to keep the two halves of