Whamcloud - gitweb
LU-14160 fallocate: Add punch mode to fallocate
[fs/lustre-release.git] / lustre / osc / osc_request.c
index 97062a2..f5ea70a 100644 (file)
@@ -449,14 +449,7 @@ int osc_fallocate_base(struct obd_export *exp, struct obdo *oa,
        int rc;
        ENTRY;
 
-       /*
-        * Only mode == 0 (which is standard prealloc) is supported now.
-        * Punch is not supported yet.
-        */
-       if (mode & ~FALLOC_FL_KEEP_SIZE)
-               RETURN(-EOPNOTSUPP);
        oa->o_falloc_mode = mode;
-
        req = ptlrpc_request_alloc(class_exp2cliimp(exp),
                                   &RQF_OST_FALLOCATE);
        if (req == NULL)