Whamcloud - gitweb
b=24267 wirecheck fix for OBD_FL_MMAP
[fs/lustre-release.git] / lustre / osc / osc_dev.c
index 8148b7a..a0216e3 100644 (file)
@@ -182,6 +182,9 @@ static const struct cl_device_operations osc_cl_ops = {
 static int osc_device_init(const struct lu_env *env, struct lu_device *d,
                            const char *name, struct lu_device *next)
 {
+        struct osc_device *od = lu2osc_dev(d);
+
+        od->od_lockless_truncate = 1;
         RETURN(0);
 }