mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]>
This commit is contained in:
parent
3fd80cddc6
commit
c1e62b8fc3
3 changed files with 10 additions and 8 deletions
|
|
@ -273,7 +273,7 @@ static long do_fcntl(int fd, unsigned int cmd, unsigned long arg,
|
|||
err = setfl(fd, filp, arg);
|
||||
break;
|
||||
case F_GETLK:
|
||||
err = fcntl_getlk(filp, (struct flock __user *) arg);
|
||||
err = fcntl_getlk(filp, cmd, (struct flock __user *) arg);
|
||||
break;
|
||||
case F_SETLK:
|
||||
case F_SETLKW:
|
||||
|
|
@ -389,7 +389,7 @@ SYSCALL_DEFINE3(fcntl64, unsigned int, fd, unsigned int, cmd,
|
|||
|
||||
switch (cmd) {
|
||||
case F_GETLK64:
|
||||
err = fcntl_getlk64(f.file, (struct flock64 __user *) arg);
|
||||
err = fcntl_getlk64(f.file, cmd, (struct flock64 __user *) arg);
|
||||
break;
|
||||
case F_SETLK64:
|
||||
case F_SETLKW64:
|
||||
|
|
|
|||
Loading…
Reference in a new issue