From: Vitaly Fertman Date: Tue, 23 Nov 2010 21:44:50 +0000 (+0300) Subject: b=22965 enable lockless truncate X-Git-Tag: 2.1.57.0~23 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=e768e65ce59b6294813b538f308049ae2cbe74a0;p=fs%2Flustre-release.git b=22965 enable lockless truncate i=zam i=adilger --- 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); }