X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fhfs%2Fpart_tbl.c;h=36add537d153e55ccb362b5b6f82694421b61867;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=19c189dc74bfd97d70b5f64450f5e057ebb7289c;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/fs/hfs/part_tbl.c b/fs/hfs/part_tbl.c index 19c189dc7..36add537d 100644 --- a/fs/hfs/part_tbl.c +++ b/fs/hfs/part_tbl.c @@ -19,11 +19,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 */ @@ -41,11 +41,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; @@ -59,7 +59,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;