libfs: add path_from_stashed()

Add a helper for both nsfs and pidfs to reuse an already stashed dentry
or to add and stash a new dentry.

Link: https://lore.kernel.org/r/20240218-neufahrzeuge-brauhaus-fb0eb6459771@brauner
Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
Christian Brauner 2024-02-18 14:50:13 +01:00
commit 07fd7c3298
No known key found for this signature in database
GPG key ID: 91C61BC06578DCA2
2 changed files with 97 additions and 0 deletions