mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-18 03:06:43 +00:00
fuse: unsigned open flags
Release helpers used signed int. Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
This commit is contained in:
parent
9ac29fd3f8
commit
54d601cb67
@ -508,7 +508,7 @@ static struct dentry *fuse_lookup(struct inode *dir, struct dentry *entry,
|
|||||||
* 'mknod' + 'open' requests.
|
* 'mknod' + 'open' requests.
|
||||||
*/
|
*/
|
||||||
static int fuse_create_open(struct inode *dir, struct dentry *entry,
|
static int fuse_create_open(struct inode *dir, struct dentry *entry,
|
||||||
struct file *file, unsigned flags,
|
struct file *file, unsigned int flags,
|
||||||
umode_t mode)
|
umode_t mode)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
|
@ -255,7 +255,7 @@ out:
|
|||||||
}
|
}
|
||||||
|
|
||||||
static void fuse_prepare_release(struct fuse_inode *fi, struct fuse_file *ff,
|
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_conn *fc = ff->fm->fc;
|
||||||
struct fuse_release_args *ra = ff->release_args;
|
struct fuse_release_args *ra = ff->release_args;
|
||||||
@ -332,7 +332,8 @@ static int fuse_release(struct inode *inode, struct file *file)
|
|||||||
return 0;
|
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);
|
WARN_ON(refcount_read(&ff->count) > 1);
|
||||||
fuse_prepare_release(fi, ff, flags, FUSE_RELEASE);
|
fuse_prepare_release(fi, ff, flags, FUSE_RELEASE);
|
||||||
|
@ -954,7 +954,8 @@ struct fuse_file *fuse_file_alloc(struct fuse_mount *fm);
|
|||||||
void fuse_file_free(struct fuse_file *ff);
|
void fuse_file_free(struct fuse_file *ff);
|
||||||
void fuse_finish_open(struct inode *inode, struct file *file);
|
void fuse_finish_open(struct inode *inode, struct file *file);
|
||||||
|
|
||||||
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);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Send RELEASE or RELEASEDIR request
|
* Send RELEASE or RELEASEDIR request
|
||||||
|
Loading…
x
Reference in New Issue
Block a user