From fcea63d56e0b06b4b46a16649c12c80be3d7bc81 Mon Sep 17 00:00:00 2001 From: shadow Date: Tue, 28 Jul 2009 06:31:04 +0000 Subject: [PATCH] fix buffer number for acl packing. Branch b1_8 b=20020 --- lustre/mds/mds_open.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/mds/mds_open.c b/lustre/mds/mds_open.c index 7475396..44f8d7e 100644 --- a/lustre/mds/mds_open.c +++ b/lustre/mds/mds_open.c @@ -836,7 +836,7 @@ static int mds_finish_open(struct ptlrpc_request *req, struct dentry *dchild, if (req->rq_export->exp_connect_flags & OBD_CONNECT_ACL && rec && !(rec->ur_flags & MDS_OPEN_JOIN_FILE)) { - int acl_off = DLM_REPLY_REC_OFF + (body->eadatasize ? 2 : 1); + int acl_off = DLM_REPLY_REC_OFF + 2; rc = mds_pack_acl(&req->rq_export->exp_mds_data, dchild->d_inode, req->rq_repmsg, -- 1.8.3.1