linux-fsdevel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH trivial] init: Fix comment typo in do_mounts_initrd.c
@ 2025-07-12 14:32 Beibei Yang
  0 siblings, 0 replies; 3+ messages in thread
From: Beibei Yang @ 2025-07-12 14:32 UTC (permalink / raw)
  To: viro; +Cc: brauner, jack, linux-fsdevel, linux-kernel, 13738176232, root

From: root <root@192.168.220.227>

The original comment incorrectly used "cwd" (current working directory)
when referring to the root change operation. The correct term should be
"pwd" (present working directory) as per process context semantics.

This is a pure comment correction with no functional impact.

Signed-off-by: Beibei Yang <13738176232@163.com>
---
 init/do_mounts_initrd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init/do_mounts_initrd.c b/init/do_mounts_initrd.c
index f6867ba..173b569 100644
--- a/init/do_mounts_initrd.c
+++ b/init/do_mounts_initrd.c
@@ -107,7 +107,7 @@ static void __init handle_initrd(char *root_device_name)
 
 	/* move initrd to rootfs' /old */
 	init_mount("..", ".", NULL, MS_MOVE, NULL);
-	/* switch root and cwd back to / of rootfs */
+	/* switch root and pwd back to / of rootfs */
 	init_chroot("..");
 
 	if (new_decode_dev(real_root_dev) == Root_RAM0) {
-- 
1.8.3.1


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

* [PATCH trivial] init: Fix comment typo in do_mounts_initrd.c
@ 2025-08-03 14:29 Beibei Yang
  2025-08-04 13:53 ` Christian Brauner
  0 siblings, 1 reply; 3+ messages in thread
From: Beibei Yang @ 2025-08-03 14:29 UTC (permalink / raw)
  To: viro; +Cc: brauner, jack, linux-fsdevel, linux-kernel, 13738176232, root

From: root <root@192.168.220.227>

The original comment incorrectly used "cwd" (current working directory)
when referring to the root change operation. The correct term should be
"pwd" (present working directory) as per process context semantics.

This is a pure comment correction with no functional impact.

Signed-off-by: Beibei Yang <13738176232@163.com>
---
 init/do_mounts_initrd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init/do_mounts_initrd.c b/init/do_mounts_initrd.c
index f6867ba..173b569 100644
--- a/init/do_mounts_initrd.c
+++ b/init/do_mounts_initrd.c
@@ -107,7 +107,7 @@ static void __init handle_initrd(char *root_device_name)
 
 	/* move initrd to rootfs' /old */
 	init_mount("..", ".", NULL, MS_MOVE, NULL);
-	/* switch root and cwd back to / of rootfs */
+	/* switch root and pwd back to / of rootfs */
 	init_chroot("..");
 
 	if (new_decode_dev(real_root_dev) == Root_RAM0) {
-- 
1.8.3.1


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

* Re: [PATCH trivial] init: Fix comment typo in do_mounts_initrd.c
  2025-08-03 14:29 Beibei Yang
@ 2025-08-04 13:53 ` Christian Brauner
  0 siblings, 0 replies; 3+ messages in thread
From: Christian Brauner @ 2025-08-04 13:53 UTC (permalink / raw)
  To: Beibei Yang; +Cc: viro, jack, linux-fsdevel, linux-kernel

On Sun, Aug 03, 2025 at 07:29:18AM -0700, Beibei Yang wrote:
> From: root <root@192.168.220.227>
> 
> The original comment incorrectly used "cwd" (current working directory)
> when referring to the root change operation. The correct term should be
> "pwd" (present working directory) as per process context semantics.
> 
> This is a pure comment correction with no functional impact.
> 
> Signed-off-by: Beibei Yang <13738176232@163.com>
> ---

Didn't I reply to the same thing just a few weeks ago?
Not worth it imho. cwd is equally well understood as pwd.

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

end of thread, other threads:[~2025-08-04 13:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-12 14:32 [PATCH trivial] init: Fix comment typo in do_mounts_initrd.c Beibei Yang
  -- strict thread matches above, loose matches on Subject: below --
2025-08-03 14:29 Beibei Yang
2025-08-04 13:53 ` Christian Brauner

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).