]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
pnfsblock: fix size of upcall message
authorJim Rees <rees@umich.edu>
Fri, 23 Sep 2011 01:50:09 +0000 (21:50 -0400)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Tue, 18 Oct 2011 16:08:11 +0000 (09:08 -0700)
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>
Cc: stable@kernel.org [3.0]
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
fs/nfs/blocklayout/blocklayout.h

index f27d827960a390dede9602f3d8196dce32d8eb8a..58dc256402e3b9ac74a5210a1a80023a82ec0053 100644 (file)
@@ -150,7 +150,7 @@ BLK_LSEG2EXT(struct pnfs_layout_segment *lseg)
 }
 
 struct bl_dev_msg {
-       int status;
+       int32_t status;
        uint32_t major, minor;
 };