summaryrefslogtreecommitdiffstats
path: root/fs/fuse/dir.c
diff options
context:
space:
mode:
authorAmir Goldstein <amir73il@gmail.com>2024-02-01 15:30:05 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2024-02-23 17:36:32 +0100
commite26ee4efbc79610b20e7abe9d96c87f33dacc1ff (patch)
treea6b7cc409003d561d298a966e9de43e0eea08aa6 /fs/fuse/dir.c
parent0c9d708953d02f74cea05a01cf3e2c8f5a9fbaf4 (diff)
downloadlinux-e26ee4efbc79610b20e7abe9d96c87f33dacc1ff.tar.gz
linux-e26ee4efbc79610b20e7abe9d96c87f33dacc1ff.tar.bz2
linux-e26ee4efbc79610b20e7abe9d96c87f33dacc1ff.zip
fuse: allocate ff->release_args only if release is needed
This removed the need to pass isdir argument to fuse_put_file(). Signed-off-by: Amir Goldstein <amir73il@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/dir.c')
-rw-r--r--fs/fuse/dir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fuse/dir.c b/fs/fuse/dir.c
index d19cbf34c634..b8fc3a6b87fe 100644
--- a/fs/fuse/dir.c
+++ b/fs/fuse/dir.c
@@ -630,7 +630,7 @@ static int fuse_create_open(struct inode *dir, struct dentry *entry,
goto out_err;
err = -ENOMEM;
- ff = fuse_file_alloc(fm);
+ ff = fuse_file_alloc(fm, true);
if (!ff)
goto out_put_forget_req;