From e768e65ce59b6294813b538f308049ae2cbe74a0 Mon Sep 17 00:00:00 2001 From: Vitaly Fertman Date: Wed, 24 Nov 2010 00:44:50 +0300 Subject: [PATCH] b=22965 enable lockless truncate i=zam i=adilger --- lustre/osc/osc_dev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lustre/osc/osc_dev.c b/lustre/osc/osc_dev.c index 8148b7a..a0216e3 100644 --- a/lustre/osc/osc_dev.c +++ b/lustre/osc/osc_dev.c @@ -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); } -- 1.8.3.1