mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-18 13:36:46 +07:00
Revert "staging/lustre: F_SETLKW64 F_SETLK64 F_GETLK64 are always defined"
This reverts commit caa88c2657
.
Turns out that Alpha doesn't define these values :(
Reported-by: kbuild test robot <fengguang.wu@intel.com>
Cc: Oleg Drokin <green@linuxhacker.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5a9ff74d8e
commit
2faedcd5b3
@ -2746,15 +2746,21 @@ ll_file_flock(struct file *file, int cmd, struct file_lock *file_lock)
|
||||
|
||||
switch (cmd) {
|
||||
case F_SETLKW:
|
||||
#ifdef F_SETLKW64
|
||||
case F_SETLKW64:
|
||||
#endif
|
||||
flags = 0;
|
||||
break;
|
||||
case F_SETLK:
|
||||
#ifdef F_SETLK64
|
||||
case F_SETLK64:
|
||||
#endif
|
||||
flags = LDLM_FL_BLOCK_NOWAIT;
|
||||
break;
|
||||
case F_GETLK:
|
||||
#ifdef F_GETLK64
|
||||
case F_GETLK64:
|
||||
#endif
|
||||
flags = LDLM_FL_TEST_LOCK;
|
||||
/* Save the old mode so that if the mode in the lock changes we
|
||||
* can decrement the appropriate reader or writer refcount.
|
||||
|
Loading…
Reference in New Issue
Block a user