From patchwork Mon Mar 4 18:12:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Elder X-Patchwork-Id: 2213731 Return-Path: X-Original-To: patchwork-ceph-devel@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 407BFDF2F2 for ; Mon, 4 Mar 2013 18:12:29 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757623Ab3CDSM2 (ORCPT ); Mon, 4 Mar 2013 13:12:28 -0500 Received: from mail-ie0-f170.google.com ([209.85.223.170]:61686 "EHLO mail-ie0-f170.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757191Ab3CDSM2 (ORCPT ); Mon, 4 Mar 2013 13:12:28 -0500 Received: by mail-ie0-f170.google.com with SMTP id c11so6568524ieb.15 for ; Mon, 04 Mar 2013 10:12:27 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=zWF86pvtEOgvmM4jbOqrMWwN6icPUN0OcT77hDsy/64=; b=YqJ6TCnPic+v3G1Nq0DIcB/qKte0eYuwS3k/KZ86GgLVmc/0qva8lavBkGGpMMHZXI VLXq4xra6onSPQrAb3IPUAQGQrmruqv9CpQIAjknFCCV49+AijNi9HbTQiG4tSWqBZiJ 3/IJVNC6oarautyeFNJmPmXfBUFkgtGmtRjhIaVEWlcr8OKzMo36zgazqZRl76a/gTC+ Y2QyZQ0Vbqj2Z7r4Ua1JAPdhSqkoOoaM6VFVMEq+3k59p84Lv7V0yFT4BCRyMJe9571T hbuTvcNMQHg/qAwqXvz8RtSefdk4SxFTG/oiUYAUhuiGm1xU/0FiUuMybUvqFD23yb7M I5bQ== X-Received: by 10.50.13.228 with SMTP id k4mr3252090igc.30.1362420747738; Mon, 04 Mar 2013 10:12:27 -0800 (PST) Received: from [172.22.22.4] (c-71-195-31-37.hsd1.mn.comcast.net. [71.195.31.37]) by mx.google.com with ESMTPS id gy3sm11780533igc.10.2013.03.04.10.12.25 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 04 Mar 2013 10:12:26 -0800 (PST) Message-ID: <5134E40C.1090303@inktank.com> Date: Mon, 04 Mar 2013 12:12:28 -0600 From: Alex Elder User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130221 Thunderbird/17.0.3 MIME-Version: 1.0 To: ceph-devel@vger.kernel.org Subject: [PATCH 3/3] libceph: no need for alignment for mds message References: <5134E25E.4030701@inktank.com> <5134E3AD.4080906@inktank.com> In-Reply-To: <5134E3AD.4080906@inktank.com> X-Gm-Message-State: ALoCoQmSx3/kgi/PY2G4WsljsKma5rMi2zRzgK1HLUFeNsh67czPW3fPt2MYN2LWXv6Ey/vUgZOg Sender: ceph-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: ceph-devel@vger.kernel.org Currently, incoming mds messages never use page data, which means there is no need to set the page_alignment field in the message. Signed-off-by: Alex Elder Reviewed-by: Greg Farnum --- fs/ceph/mds_client.c | 1 - 1 file changed, 1 deletion(-) } diff --git a/fs/ceph/mds_client.c b/fs/ceph/mds_client.c index a4b986a..afb9dc9 100644 --- a/fs/ceph/mds_client.c +++ b/fs/ceph/mds_client.c @@ -3486,7 +3486,6 @@ static struct ceph_msg *mds_alloc_msg(struct ceph_connection *con, type, front_len); return NULL; } - msg->page_alignment = (unsigned int) le16_to_cpu(hdr->data_off); return msg;