fs/locks: pass kernel struct flock to fcntl_getlk/setlk
authorChristoph Hellwig <hch@lst.de>
Sat, 27 May 2017 10:07:19 +0000 (06:07 -0400)
committerJeff Layton <jlayton@redhat.com>
Sat, 27 May 2017 10:07:19 +0000 (06:07 -0400)
commita75d30c772078546ac00399a94ecdc82df1a4d72
treec3e90e52f03092b6d3c59a949c7a2fceed8380af
parent80b79dd0e2f29f06a6a54a5755c718f1c7ebb136
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>
fs/fcntl.c
fs/locks.c
include/linux/fs.h