NFS Exclusive open not supported bug
[powerpc.git] / fs / nfs / nfs3proc.c
index e5f128f..9d7ff4f 100644 (file)
@@ -369,7 +369,7 @@ again:
 
        /* If the server doesn't support the exclusive creation semantics,
         * try again with simple 'guarded' mode. */
-       if (status == NFSERR_NOTSUPP) {
+       if (status == -ENOTSUPP) {
                switch (arg.createmode) {
                        case NFS3_CREATE_EXCLUSIVE:
                                arg.createmode = NFS3_CREATE_GUARDED;