• Christian Brauner's avatar
    libfs: improve path_from_stashed() · e9c5263c
    Christian Brauner authored
    Right now we pass a bunch of info that is fs specific which doesn't make
    a lot of sense and it bleeds fs sepcific details into the generic
    helper. nsfs and pidfs have slightly different needs when initializing
    inodes. Add simple operations that are stashed in sb->s_fs_info that
    both can implement. This also allows us to get rid of cleaning up
    references in the caller. All in all path_from_stashed() becomes way
    simpler.
    Signed-off-by: default avatarChristian Brauner <brauner@kernel.org>
    e9c5263c
pidfs.c 7.38 KB