]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
VFS: make lookup_one_qstr_excl() static.
authorNeilBrown <neil@brown.name>
Tue, 24 Feb 2026 22:16:53 +0000 (09:16 +1100)
committerChristian Brauner <brauner@kernel.org>
Fri, 6 Mar 2026 09:24:12 +0000 (10:24 +0100)
lookup_one_qstr_excl() is no longer used outside of namei.c, so
make it static.

Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: NeilBrown <neil@brown.name>
Link: https://patch.msgid.link/20260224222542.3458677-9-neilb@ownmail.net
Signed-off-by: Christian Brauner <brauner@kernel.org>
Documentation/filesystems/porting.rst
fs/namei.c
include/linux/namei.h

index 52ff1d19405beb8add035c9b305ec8a18e134b7a..1dd31ab417a2571fb5a661761be83ea05a120181 100644 (file)
@@ -1361,3 +1361,10 @@ to match what strlen() would return if it was ran on the string.
 
 However, if the string is freely accessible for the duration of inode's
 lifetime, consider using inode_set_cached_link() instead.
+
+---
+
+**mandatory**
+
+lookup_one_qstr_excl() is no longer exported - use start_creating() or
+similar.
index 11c9a4a6c396eab6ac63e431eb46dfff63ae5b9a..a5daa62399d7abcf88dc42cef8eaf2d2d1c93ee0 100644 (file)
@@ -1782,8 +1782,8 @@ static struct dentry *lookup_dcache(const struct qstr *name,
  * Will return -ENOENT if name isn't found and LOOKUP_CREATE wasn't passed.
  * Will return -EEXIST if name is found and LOOKUP_EXCL was passed.
  */
-struct dentry *lookup_one_qstr_excl(const struct qstr *name,
-                                   struct dentry *base, unsigned int flags)
+static struct dentry *lookup_one_qstr_excl(const struct qstr *name,
+                                          struct dentry *base, unsigned int flags)
 {
        struct dentry *dentry;
        struct dentry *old;
@@ -1820,7 +1820,6 @@ found:
        }
        return dentry;
 }
-EXPORT_SYMBOL(lookup_one_qstr_excl);
 
 /**
  * lookup_fast - do fast lockless (but racy) lookup of a dentry
index 58600cf234bcf97fb4a61704818e6535191985b1..c7a7288cdd25bc8c81e6386e3247b0321295383e 100644 (file)
@@ -54,9 +54,6 @@ extern int path_pts(struct path *path);
 
 extern int user_path_at(int, const char __user *, unsigned, struct path *);
 
-struct dentry *lookup_one_qstr_excl(const struct qstr *name,
-                                   struct dentry *base,
-                                   unsigned int flags);
 extern int kern_path(const char *, unsigned, struct path *);
 struct dentry *kern_path_parent(const char *name, struct path *parent);