Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fs: remove unused path_put_init()

This helper has been unused for a while now.

Link: https://lore.kernel.org/r/20240822-bewuchs-werktag-46672b3c0606@brauner
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>

-6
-6
include/linux/path.h
··· 18 18 return path1->mnt == path2->mnt && path1->dentry == path2->dentry; 19 19 } 20 20 21 - static inline void path_put_init(struct path *path) 22 - { 23 - path_put(path); 24 - *path = (struct path) { }; 25 - } 26 - 27 21 /* 28 22 * Cleanup macro for use with __free(path_put). Avoids dereference and 29 23 * copying @path unlike DEFINE_FREE(). path_put() will handle the empty