| From fdc17abbc4b6094b34ee8ff5d91eaba8637594a2 Mon Sep 17 00:00:00 2001 |
| From: Jim Rees <rees@umich.edu> |
| Date: Thu, 22 Sep 2011 21:50:09 -0400 |
| Subject: pnfsblock: fix size of upcall message |
| |
| From: Jim Rees <rees@umich.edu> |
| |
| commit fdc17abbc4b6094b34ee8ff5d91eaba8637594a2 upstream. |
| |
| 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 <jlayton@redhat.com> |
| Signed-off-by: Jim Rees <rees@umich.edu> |
| Signed-off-by: Benny Halevy <bhalevy@tonian.com> |
| Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com> |
| Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> |
| |
| --- |
| fs/nfs/blocklayout/blocklayout.h | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| --- a/fs/nfs/blocklayout/blocklayout.h |
| +++ b/fs/nfs/blocklayout/blocklayout.h |
| @@ -150,7 +150,7 @@ BLK_LSEG2EXT(struct pnfs_layout_segment |
| } |
| |
| struct bl_dev_msg { |
| - int status; |
| + int32_t status; |
| uint32_t major, minor; |
| }; |
| |