summaryrefslogtreecommitdiff
path: root/fs/fuse/file.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@redhat.com>2021-04-07 14:36:45 +0200
committerMiklos Szeredi <mszeredi@redhat.com>2021-04-12 15:04:30 +0200
commit54d601cb67572c49177a5e4001e6c3b59fed4ba5 (patch)
tree1bafd39738ec56172492376c8cc73ebe43ccf731 /fs/fuse/file.c
parent9ac29fd3f87ffdd993505d75e89714ab931cdedb (diff)
downloadlwn-54d601cb67572c49177a5e4001e6c3b59fed4ba5.tar.gz
lwn-54d601cb67572c49177a5e4001e6c3b59fed4ba5.zip
fuse: unsigned open flags
Release helpers used signed int. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Diffstat (limited to 'fs/fuse/file.c')
-rw-r--r--fs/fuse/file.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/fuse/file.c b/fs/fuse/file.c
index c549850089bb..d49fad6bdc29 100644
--- a/fs/fuse/file.c
+++ b/fs/fuse/file.c
@@ -255,7 +255,7 @@ out:
}
static void fuse_prepare_release(struct fuse_inode *fi, struct fuse_file *ff,
- int flags, int opcode)
+ unsigned int flags, int opcode)
{
struct fuse_conn *fc = ff->fm->fc;
struct fuse_release_args *ra = ff->release_args;
@@ -332,7 +332,8 @@ static int fuse_release(struct inode *inode, struct file *file)
return 0;
}
-void fuse_sync_release(struct fuse_inode *fi, struct fuse_file *ff, int flags)
+void fuse_sync_release(struct fuse_inode *fi, struct fuse_file *ff,
+ unsigned int flags)
{
WARN_ON(refcount_read(&ff->count) > 1);
fuse_prepare_release(fi, ff, flags, FUSE_RELEASE);