aboutsummaryrefslogtreecommitdiffstats
path: root/fs/locks.c
diff options
context:
space:
mode:
authorJeff Layton <jlayton@redhat.com>2014-02-03 12:13:09 -0500
committerJeff Layton <jlayton@redhat.com>2014-03-31 08:24:43 -0400
commitc1e62b8fc355e0c3706f1ae0dacb72d1c514dc80 (patch)
tree67167d2ae9569d83d08edda65aa047faf21500e1 /fs/locks.c
parent3fd80cddc6af5ba53244514a61450d4b30a9fb9d (diff)
locks: pass the cmd value to fcntl_getlk/getlk64
Once we introduce file private locks, we'll need to know what cmd value was used, as that affects the ownership and whether a conflict would arise. Signed-off-by: Jeff Layton <jlayton@redhat.com>
Diffstat (limited to 'fs/locks.c')
-rw-r--r--fs/locks.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/locks.c b/fs/locks.c
index 57f1d5fc876a..442052b413af 100644
--- a/fs/locks.c
+++ b/fs/locks.c
@@ -1898,7 +1898,7 @@ static void posix_lock_to_flock64(struct flock64 *flock, struct file_lock *fl)
1898/* Report the first existing lock that would conflict with l. 1898/* Report the first existing lock that would conflict with l.
1899 * This implements the F_GETLK command of fcntl(). 1899 * This implements the F_GETLK command of fcntl().
1900 */ 1900 */
1901int fcntl_getlk(struct file *filp, struct flock __user *l) 1901int fcntl_getlk(struct file *filp, unsigned int cmd, struct flock __user *l)
1902{ 1902{
1903 struct file_lock file_lock; 1903 struct file_lock file_lock;
1904 struct flock flock; 1904 struct flock flock;
@@ -2066,7 +2066,7 @@ out:
2066/* Report the first existing lock that would conflict with l. 2066/* Report the first existing lock that would conflict with l.
2067 * This implements the F_GETLK command of fcntl(). 2067 * This implements the F_GETLK command of fcntl().
2068 */ 2068 */
2069int fcntl_getlk64(struct file *filp, struct flock64 __user *l) 2069int fcntl_getlk64(struct file *filp, unsigned int cmd, struct flock64 __user *l)
2070{ 2070{
2071 struct file_lock file_lock; 2071 struct file_lock file_lock;
2072 struct flock64 flock; 2072 struct flock64 flock;