Whamcloud - gitweb
fix buffer number for acl packing.
authorshadow <shadow>
Tue, 28 Jul 2009 06:31:04 +0000 (06:31 +0000)
committershadow <shadow>
Tue, 28 Jul 2009 06:31:04 +0000 (06:31 +0000)
Branch b1_8
b=20020

lustre/mds/mds_open.c

index 7475396..44f8d7e 100644 (file)
@@ -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,