diff options
author | Richard Weinberger <richard@nod.at> | 2015-03-05 01:44:54 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2015-03-27 01:27:53 +0300 |
commit | b98b91029cf8a6defc6311d4018c44f3b05fbec7 (patch) | |
tree | 7100a22cd77997fef0f131440e0dd62d4e4a59a5 /fs/hostfs/hostfs.h | |
parent | af6aa1b9cad7350d675fe3523ab062e0e4c829cb (diff) | |
download | linux-b98b91029cf8a6defc6311d4018c44f3b05fbec7.tar.xz |
hostfs: No need to box and later unbox the file mode
There is really no point in having a function with 10
arguments.
Reported-by: Daniel Walter <d.walter@0x90.at>
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'fs/hostfs/hostfs.h')
-rw-r--r-- | fs/hostfs/hostfs.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/hostfs/hostfs.h b/fs/hostfs/hostfs.h index 4fcd40d6f308..493262e43443 100644 --- a/fs/hostfs/hostfs.h +++ b/fs/hostfs/hostfs.h @@ -77,8 +77,7 @@ extern int write_file(int fd, unsigned long long *offset, const char *buf, int len); extern int lseek_file(int fd, long long offset, int whence); extern int fsync_file(int fd, int datasync); -extern int file_create(char *name, int ur, int uw, int ux, int gr, - int gw, int gx, int or, int ow, int ox); +extern int file_create(char *name, int mode); extern int set_attr(const char *file, struct hostfs_iattr *attrs, int fd); extern int make_symlink(const char *from, const char *to); extern int unlink_file(const char *file); |