Whamcloud - gitweb
LU-1073 llite: no CERROR on unknown flock type
[fs/lustre-release.git] / lustre / llite / file.c
index f797851..b4c0028 100644 (file)
@@ -2078,8 +2078,9 @@ int ll_file_flock(struct file *file, int cmd, struct file_lock *file_lock)
                 einfo.ei_mode = LCK_PW;
                 break;
         default:
-                CERROR("unknown fcntl lock type: %d\n", file_lock->fl_type);
-                RETURN (-EINVAL);
+                CDEBUG(D_INFO, "Unknown fcntl lock type: %d\n",
+                        file_lock->fl_type);
+                RETURN (-ENOTSUPP);
         }
 
         switch (cmd) {