]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fuse: drop unnecessary argument from fuse_lookup_init()
authorLuis Henriques <luis@igalia.com>
Wed, 25 Feb 2026 11:24:35 +0000 (11:24 +0000)
committerMiklos Szeredi <mszeredi@redhat.com>
Tue, 3 Mar 2026 09:05:39 +0000 (10:05 +0100)
Remove the fuse_conn argument from function fuse_lookup_init() as it isn't
used since commit 21f621741a77 ("fuse: fix LOOKUP vs INIT compat
handling").

Signed-off-by: Luis Henriques <luis@igalia.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/fuse/dir.c

index 7ac6b232ef12323e3afb97b98301f623bce917a4..70d3e631266e1e003b7756421c16e1e1eb1d150f 100644 (file)
@@ -354,8 +354,8 @@ static void fuse_invalidate_entry(struct dentry *entry)
        fuse_invalidate_entry_cache(entry);
 }
 
-static void fuse_lookup_init(struct fuse_conn *fc, struct fuse_args *args,
-                            u64 nodeid, const struct qstr *name,
+static void fuse_lookup_init(struct fuse_args *args, u64 nodeid,
+                            const struct qstr *name,
                             struct fuse_entry_out *outarg)
 {
        memset(outarg, 0, sizeof(struct fuse_entry_out));
@@ -421,8 +421,7 @@ static int fuse_dentry_revalidate(struct inode *dir, const struct qstr *name,
 
                attr_version = fuse_get_attr_version(fm->fc);
 
-               fuse_lookup_init(fm->fc, &args, get_node_id(dir),
-                                name, &outarg);
+               fuse_lookup_init(&args, get_node_id(dir), name, &outarg);
                ret = fuse_simple_request(fm, &args);
                /* Zero nodeid is same as -ENOENT */
                if (!ret && !outarg.nodeid)
@@ -570,7 +569,7 @@ int fuse_lookup_name(struct super_block *sb, u64 nodeid, const struct qstr *name
        attr_version = fuse_get_attr_version(fm->fc);
        evict_ctr = fuse_get_evict_ctr(fm->fc);
 
-       fuse_lookup_init(fm->fc, &args, nodeid, name, outarg);
+       fuse_lookup_init(&args, nodeid, name, outarg);
        err = fuse_simple_request(fm, &args);
        /* Zero nodeid is same as -ENOENT, but with valid timeout */
        if (err || !outarg->nodeid)