projects
/
linux
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
57510c5
)
fs: remove unused path_put_init()
author
Christian Brauner
<brauner@kernel.org>
Thu, 22 Aug 2024 09:28:38 +0000
(11:28 +0200)
committer
Christian Brauner
<brauner@kernel.org>
Fri, 30 Aug 2024 06:22:38 +0000
(08:22 +0200)
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>
include/linux/path.h
patch
|
blob
|
history
diff --git
a/include/linux/path.h
b/include/linux/path.h
index ca073e70decd5086dd91b8840423a6a4f55c5e1f..7ea389dc764bbbd9f2279fd0d2ae00b5d4ad34e5 100644
(file)
--- a/
include/linux/path.h
+++ b/
include/linux/path.h
@@
-18,12
+18,6
@@
static inline int path_equal(const struct path *path1, const struct path *path2)
return path1->mnt == path2->mnt && path1->dentry == path2->dentry;
}
-static inline void path_put_init(struct path *path)
-{
- path_put(path);
- *path = (struct path) { };
-}
-
/*
* Cleanup macro for use with __free(path_put). Avoids dereference and
* copying @path unlike DEFINE_FREE(). path_put() will handle the empty