Whamcloud - gitweb
b=22965 enable lockless truncate
authorVitaly Fertman <vitaly.fertman@oracle.com>
Tue, 23 Nov 2010 21:44:50 +0000 (00:44 +0300)
committerVitaly Fertman <vitaly.fertman@oracle.com>
Tue, 23 Nov 2010 21:46:13 +0000 (00:46 +0300)
i=zam
i=adilger

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)
 {
 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);
 }
 
         RETURN(0);
 }