]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/staging/lustre/lustre/llite/file.c
Revert "staging/lustre: F_SETLKW64 F_SETLK64 F_GETLK64 are always defined"
[karo-tx-linux.git] / drivers / staging / lustre / lustre / llite / file.c
index d4971cc113fc4711eb83092d726cc7ade04795d0..d3ed905fd214447e07b30af13ea304146560d77f 100644 (file)
@@ -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.