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.

VFS: make lookup_one_qstr_excl() static.

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>

authored by

NeilBrown and committed by
Christian Brauner
336faf5d 6cb34119

+9 -6
+7
Documentation/filesystems/porting.rst
··· 1361 1361 1362 1362 However, if the string is freely accessible for the duration of inode's 1363 1363 lifetime, consider using inode_set_cached_link() instead. 1364 + 1365 + --- 1366 + 1367 + **mandatory** 1368 + 1369 + lookup_one_qstr_excl() is no longer exported - use start_creating() or 1370 + similar.
+2 -3
fs/namei.c
··· 1782 1782 * Will return -ENOENT if name isn't found and LOOKUP_CREATE wasn't passed. 1783 1783 * Will return -EEXIST if name is found and LOOKUP_EXCL was passed. 1784 1784 */ 1785 - struct dentry *lookup_one_qstr_excl(const struct qstr *name, 1786 - struct dentry *base, unsigned int flags) 1785 + static struct dentry *lookup_one_qstr_excl(const struct qstr *name, 1786 + struct dentry *base, unsigned int flags) 1787 1787 { 1788 1788 struct dentry *dentry; 1789 1789 struct dentry *old; ··· 1820 1820 } 1821 1821 return dentry; 1822 1822 } 1823 - EXPORT_SYMBOL(lookup_one_qstr_excl); 1824 1823 1825 1824 /** 1826 1825 * lookup_fast - do fast lockless (but racy) lookup of a dentry
-3
include/linux/namei.h
··· 54 54 55 55 extern int user_path_at(int, const char __user *, unsigned, struct path *); 56 56 57 - struct dentry *lookup_one_qstr_excl(const struct qstr *name, 58 - struct dentry *base, 59 - unsigned int flags); 60 57 extern int kern_path(const char *, unsigned, struct path *); 61 58 struct dentry *kern_path_parent(const char *name, struct path *parent); 62 59