diff options
author | Christoph Hellwig <hch@lst.de> | 2017-05-27 06:07:19 -0400 |
---|---|---|
committer | Jeff Layton <jlayton@redhat.com> | 2017-05-27 06:07:19 -0400 |
commit | a75d30c772078546ac00399a94ecdc82df1a4d72 (patch) | |
tree | c3e90e52f03092b6d3c59a949c7a2fceed8380af /include/linux/fs.h | |
parent | 80b79dd0e2f29f06a6a54a5755c718f1c7ebb136 (diff) |
fs/locks: pass kernel struct flock to fcntl_getlk/setlk
This will make it easier to implement a sane compat fcntl syscall.
[ jlayton: fix undeclared identifiers in 32-bit fcntl64 syscall handler ]
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 803e5a9b2654..aa4affb38c39 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -1038,14 +1038,14 @@ static inline struct inode *locks_inode(const struct file *f) | |||
1038 | } | 1038 | } |
1039 | 1039 | ||
1040 | #ifdef CONFIG_FILE_LOCKING | 1040 | #ifdef CONFIG_FILE_LOCKING |
1041 | extern int fcntl_getlk(struct file *, unsigned int, struct flock __user *); | 1041 | extern int fcntl_getlk(struct file *, unsigned int, struct flock *); |
1042 | extern int fcntl_setlk(unsigned int, struct file *, unsigned int, | 1042 | extern int fcntl_setlk(unsigned int, struct file *, unsigned int, |
1043 | struct flock __user *); | 1043 | struct flock *); |
1044 | 1044 | ||
1045 | #if BITS_PER_LONG == 32 | 1045 | #if BITS_PER_LONG == 32 |
1046 | extern int fcntl_getlk64(struct file *, unsigned int, struct flock64 __user *); | 1046 | extern int fcntl_getlk64(struct file *, unsigned int, struct flock64 *); |
1047 | extern int fcntl_setlk64(unsigned int, struct file *, unsigned int, | 1047 | extern int fcntl_setlk64(unsigned int, struct file *, unsigned int, |
1048 | struct flock64 __user *); | 1048 | struct flock64 *); |
1049 | #endif | 1049 | #endif |
1050 | 1050 | ||
1051 | extern int fcntl_setlease(unsigned int fd, struct file *filp, long arg); | 1051 | extern int fcntl_setlease(unsigned int fd, struct file *filp, long arg); |