On Thu, 7 Mar 2024 at 15:09, Miklos Szeredi <miklos@xxxxxxxxxx> wrote: > > On Thu, 7 Mar 2024 at 14:11, Amir Goldstein <amir73il@xxxxxxxxx> wrote: > > P.S. A guard for ovl_inode_lock() would have been useful in this patch set, > > but it's up to you if you want to define one and use it. I like the concept of guards, though documentation and examples are lacking and the API is not trivial to understand at first sight. For overlayfs I'd start with ovl_override_creds(), since that is used much more extensively than ovl_inode_lock(). Thanks, Miklos