Return-Path: Received: from merit-proxy02.merit.edu ([207.75.116.194]:32820 "EHLO merit-proxy02.merit.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754742Ab1IWBuZ (ORCPT ); Thu, 22 Sep 2011 21:50:25 -0400 From: Jim Rees To: Trond Myklebust Cc: linux-nfs@vger.kernel.org, peter honeyman Subject: [PATCH 02/10] pnfsblock: fix size of upcall message Date: Thu, 22 Sep 2011 21:50:09 -0400 Message-Id: <1316742617-14766-3-git-send-email-rees@umich.edu> In-Reply-To: <1316742617-14766-1-git-send-email-rees@umich.edu> References: <1316742617-14766-1-git-send-email-rees@umich.edu> Sender: linux-nfs-owner@vger.kernel.org List-ID: Content-Type: text/plain MIME-Version: 1.0 Make the status field explicitly 32 bits. "...it's unlikely that the kernel and userspace would differ on the size of an int here, but it might be a good idea to go ahead and make that explicitly 32 bits in case we end up dealing with more exotic arches at some point in the future." Suggested-by: Jeff Layton Signed-off-by: Jim Rees Signed-off-by: Benny Halevy --- fs/nfs/blocklayout/blocklayout.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fs/nfs/blocklayout/blocklayout.h b/fs/nfs/blocklayout/blocklayout.h index f27d827..58dc256 100644 --- a/fs/nfs/blocklayout/blocklayout.h +++ b/fs/nfs/blocklayout/blocklayout.h @@ -150,7 +150,7 @@ BLK_LSEG2EXT(struct pnfs_layout_segment *lseg) } struct bl_dev_msg { - int status; + int32_t status; uint32_t major, minor; }; -- 1.7.4.1