X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fhfsplus%2Fpart_tbl.c;h=1528a6fd02992f1858ee254fe01039520da77bd4;hb=refs%2Fheads%2Fvserver;hp=3bc137f10351c5ca0a6b9f40c1da965198940189;hpb=5273a3df6485dc2ad6aa7ddd441b9a21970f003b;p=linux-2.6.git diff --git a/fs/hfsplus/part_tbl.c b/fs/hfsplus/part_tbl.c index 3bc137f10..1528a6fd0 100644 --- a/fs/hfsplus/part_tbl.c +++ b/fs/hfsplus/part_tbl.c @@ -1,5 +1,5 @@ /* - * linux/fs/hfs/part_tbl.c + * linux/fs/hfsplus/part_tbl.c * * Copyright (C) 1996-1997 Paul H. Hargrove * This file may be distributed under the terms of the GNU General Public License. @@ -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;