X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fhfsplus%2Fpart_tbl.c;h=ae783066fc3aed8492a729b61bb17eb0d623b52e;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=3bc137f10351c5ca0a6b9f40c1da965198940189;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/fs/hfsplus/part_tbl.c b/fs/hfsplus/part_tbl.c index 3bc137f10..ae783066f 100644 --- a/fs/hfsplus/part_tbl.c +++ b/fs/hfsplus/part_tbl.c @@ -35,11 +35,11 @@ * contiguous starting at block 1. */ struct new_pmap { - u16 pmSig; /* signature */ - u16 reSigPad; /* padding */ - u32 pmMapBlkCnt; /* partition blocks count */ - u32 pmPyPartStart; /* physical block start of partition */ - u32 pmPartBlkCnt; /* physical block count of partition */ + __be16 pmSig; /* signature */ + __be16 reSigPad; /* padding */ + __be32 pmMapBlkCnt; /* partition blocks count */ + __be32 pmPyPartStart; /* physical block start of partition */ + __be32 pmPartBlkCnt; /* physical block count of partition */ u8 pmPartName[32]; /* (null terminated?) string giving the name of this partition */ @@ -57,11 +57,11 @@ struct new_pmap { * one of these. */ struct old_pmap { - u16 pdSig; /* Signature bytes */ + __be16 pdSig; /* Signature bytes */ struct old_pmap_entry { - u32 pdStart; - u32 pdSize; - u32 pdFSID; + __be32 pdStart; + __be32 pdSize; + __be32 pdFSID; } pdEntry[42]; } __packed; @@ -75,7 +75,7 @@ int hfs_part_find(struct super_block *sb, sector_t *part_start, sector_t *part_size) { struct buffer_head *bh; - u16 *data; + __be16 *data; int i, size, res; res = -ENOENT;