Thread (34 messages) 34 messages, 5 authors, 26m ago

Re: [PATCH v2 -next 01/18] fs: pass struct path to notify_change()

flat view

From: Christian Brauner <brauner@kernel.org>
Date: 2026-10-21 10:21:56
Also in: bpf, driver-core, linux-block, linux-cifs, linux-doc, linux-fsdevel, linux-integrity, linux-kselftest, linux-nfs, linux-security-module, linux-unionfs, lkml, netfs, selinux

On Thu, Oct 15, 2026 at 08:54:07PM +0800, Cai Xinchen wrote:
notify_change() takes a struct mnt_idmap and a struct dentry even
though all of its callers either already hold a struct path (or a
struct file) or have to pass &nop_mnt_idmap because no idmapped
mount is involved.  Switch the helper and its declaration to take a
struct path instead and derive the idmap and dentry from it.
No, the idmap needs to be passed separately. The whole point is that
during path lookup mnt->mnt_idmap can change. So mnt->mnt_idmap is taken
of the mount at the time it was checked and passed down to the
filesystem so that the VFS and the filesystem are guaranteed to see the
same idmap.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help