]> Pileus Git - ~andy/linux/commitdiff
libceph: no need for alignment for mds message
authorAlex Elder <elder@inktank.com>
Sat, 2 Mar 2013 00:00:14 +0000 (18:00 -0600)
committerSage Weil <sage@inktank.com>
Thu, 2 May 2013 04:16:20 +0000 (21:16 -0700)
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 <elder@inktank.com>
Reviewed-by: Greg Farnum <greg@inktank.com>
fs/ceph/mds_client.c

index b87b24fed4b26b2f614f70430b1d20715911f7ea..ecfb738bca30a1886a8d3f0da4accfc3d79564bb 100644 (file)
@@ -3490,7 +3490,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;
 }