From 721170a665a7f0c09024fad1d52d2703d0041e55 Mon Sep 17 00:00:00 2001 From: fanyong Date: Mon, 30 Oct 2006 03:27:22 +0000 Subject: [PATCH] Since have called mdd_la_get before and held lock yet, call __mdd_permission_internal directly. --- lustre/mdd/mdd_object.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/mdd/mdd_object.c b/lustre/mdd/mdd_object.c index 9842342..7811d29 100644 --- a/lustre/mdd/mdd_object.c +++ b/lustre/mdd/mdd_object.c @@ -664,7 +664,7 @@ int mdd_fix_attr(const struct lu_env *env, struct mdd_object *obj, /* For tuncate (or setsize), we should have MAY_WRITE perm */ if (la->la_valid & (LA_SIZE | LA_BLOCKS)) { - rc = mdd_permission_internal(env, obj, MAY_WRITE); + rc = __mdd_permission_internal(env, obj, MAY_WRITE, 0); if (rc) RETURN(rc); -- 1.8.3.1