summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
5a9ff74)
This reverts commit
caa88c26575c9be856e5a801abd121d7ff0808f8.
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>
switch (cmd) {
case F_SETLKW:
switch (cmd) {
case F_SETLKW:
flags = 0;
break;
case F_SETLK:
flags = 0;
break;
case F_SETLK:
flags = LDLM_FL_BLOCK_NOWAIT;
break;
case F_GETLK:
flags = LDLM_FL_BLOCK_NOWAIT;
break;
case F_GETLK:
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.
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.