Skip to content

Commit 54d601c

Browse files
author
Miklos Szeredi
committed
fuse: unsigned open flags
Release helpers used signed int. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
1 parent 9ac29fd commit 54d601c

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

fs/fuse/dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ static struct dentry *fuse_lookup(struct inode *dir, struct dentry *entry,
508508
* 'mknod' + 'open' requests.
509509
*/
510510
static int fuse_create_open(struct inode *dir, struct dentry *entry,
511-
struct file *file, unsigned flags,
511+
struct file *file, unsigned int flags,
512512
umode_t mode)
513513
{
514514
int err;

fs/fuse/file.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ int fuse_open_common(struct inode *inode, struct file *file, bool isdir)
255255
}
256256

257257
static void fuse_prepare_release(struct fuse_inode *fi, struct fuse_file *ff,
258-
int flags, int opcode)
258+
unsigned int flags, int opcode)
259259
{
260260
struct fuse_conn *fc = ff->fm->fc;
261261
struct fuse_release_args *ra = ff->release_args;
@@ -332,7 +332,8 @@ static int fuse_release(struct inode *inode, struct file *file)
332332
return 0;
333333
}
334334

335-
void fuse_sync_release(struct fuse_inode *fi, struct fuse_file *ff, int flags)
335+
void fuse_sync_release(struct fuse_inode *fi, struct fuse_file *ff,
336+
unsigned int flags)
336337
{
337338
WARN_ON(refcount_read(&ff->count) > 1);
338339
fuse_prepare_release(fi, ff, flags, FUSE_RELEASE);

fs/fuse/fuse_i.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -954,7 +954,8 @@ struct fuse_file *fuse_file_alloc(struct fuse_mount *fm);
954954
void fuse_file_free(struct fuse_file *ff);
955955
void fuse_finish_open(struct inode *inode, struct file *file);
956956

957-
void fuse_sync_release(struct fuse_inode *fi, struct fuse_file *ff, int flags);
957+
void fuse_sync_release(struct fuse_inode *fi, struct fuse_file *ff,
958+
unsigned int flags);
958959

959960
/**
960961
* Send RELEASE or RELEASEDIR request

0 commit comments

Comments
 (0)