[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20250509-altbekannt-maskiert-292dbfb0daff@brauner>
Date: Fri, 9 May 2025 13:20:07 +0200
From: Christian Brauner <brauner@...nel.org>
To: Stephen Brennan <stephen.s.brennan@...cle.com>
Cc: Christian Brauner <brauner@...nel.org>,
Mateusz Guzik <mjguzik@...il.com>,
linux-kernel@...r.kernel.org,
linux-debuggers@...r.kernel.org,
Sentaro Onizuka <sentaro@...zon.com>
Subject: Re: [PATCH] fs: convert mount flags to enum
On Wed, 07 May 2025 15:34:01 -0700, Stephen Brennan wrote:
> In prior kernel versions (5.8-6.8), commit 9f6c61f96f2d9 ("proc/mounts:
> add cursor") introduced MNT_CURSOR, a flag used by readers from
> /proc/mounts to keep their place while reading the file. Later, commit
> 2eea9ce4310d8 ("mounts: keep list of mounts in an rbtree") removed this
> flag and its value has since been repurposed.
>
> For debuggers iterating over the list of mounts, cursors should be
> skipped as they are irrelevant. Detecting whether an element is a cursor
> can be difficult. Since the MNT_CURSOR flag is a preprocessor constant,
> it's not present in debuginfo, and since its value is repurposed, we
> cannot hard-code it. For this specific issue, cursors are possible to
> detect in other ways, but ideally, we would be able to read the mount
> flag definitions out of the debuginfo. For that reason, convert the
> mount flags to an enum.
>
> [...]
Applied to the vfs-6.16.mount.api branch of the vfs/vfs.git tree.
Patches in the vfs-6.16.mount.api branch should appear in linux-next soon.
Please report any outstanding bugs that were missed during review in a
new review to the original patch series allowing us to drop it.
It's encouraged to provide Acked-bys and Reviewed-bys even though the
patch has now been applied. If possible patch trailers will be updated.
Note that commit hashes shown below are subject to change due to rebase,
trailer updates or similar. If in doubt, please check the listed branch.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git
branch: vfs-6.16.mount.api
[1/1] fs: convert mount flags to enum
https://git.kernel.org/vfs/vfs/c/6a8dcdd969cb
Powered by blists - more mailing lists