aboutsummaryrefslogtreecommitdiffstats
path: root/fs/udf/super.c
diff options
context:
space:
mode:
authorPekka Enberg <penberg@cs.helsinki.fi>2008-10-15 06:28:03 -0400
committerJan Kara <jack@suse.cz>2009-04-02 06:29:47 -0400
commit5ca4e4be841e389d7d17833fef7be2359f290163 (patch)
tree9c059a3b7599260d096fae395d640e79bdc46f30 /fs/udf/super.c
parent833bb3046b6cb320e775ea2160ddca87d53260d5 (diff)
Remove struct typedefs from fs/udf/ecma_167.h et al.
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi> Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/udf/super.c')
-rw-r--r--fs/udf/super.c48
1 files changed, 24 insertions, 24 deletions
diff --git a/fs/udf/super.c b/fs/udf/super.c
index e25e7010627b..81b8adc86745 100644
--- a/fs/udf/super.c
+++ b/fs/udf/super.c
@@ -85,12 +85,12 @@ static void udf_write_super(struct super_block *);
85static int udf_remount_fs(struct super_block *, int *, char *); 85static int udf_remount_fs(struct super_block *, int *, char *);
86static int udf_check_valid(struct super_block *, int, int); 86static int udf_check_valid(struct super_block *, int, int);
87static int udf_vrs(struct super_block *sb, int silent); 87static int udf_vrs(struct super_block *sb, int silent);
88static void udf_load_logicalvolint(struct super_block *, kernel_extent_ad); 88static void udf_load_logicalvolint(struct super_block *, struct kernel_extent_ad);
89static void udf_find_anchor(struct super_block *); 89static void udf_find_anchor(struct super_block *);
90static int udf_find_fileset(struct super_block *, kernel_lb_addr *, 90static int udf_find_fileset(struct super_block *, struct kernel_lb_addr *,
91 kernel_lb_addr *); 91 struct kernel_lb_addr *);
92static void udf_load_fileset(struct super_block *, struct buffer_head *, 92static void udf_load_fileset(struct super_block *, struct buffer_head *,
93 kernel_lb_addr *); 93 struct kernel_lb_addr *);
94static void udf_open_lvid(struct super_block *); 94static void udf_open_lvid(struct super_block *);
95static void udf_close_lvid(struct super_block *); 95static void udf_close_lvid(struct super_block *);
96static unsigned int udf_count_free(struct super_block *); 96static unsigned int udf_count_free(struct super_block *);
@@ -810,8 +810,8 @@ check_anchor:
810} 810}
811 811
812static int udf_find_fileset(struct super_block *sb, 812static int udf_find_fileset(struct super_block *sb,
813 kernel_lb_addr *fileset, 813 struct kernel_lb_addr *fileset,
814 kernel_lb_addr *root) 814 struct kernel_lb_addr *root)
815{ 815{
816 struct buffer_head *bh = NULL; 816 struct buffer_head *bh = NULL;
817 long lastblock; 817 long lastblock;
@@ -834,7 +834,7 @@ static int udf_find_fileset(struct super_block *sb,
834 sbi = UDF_SB(sb); 834 sbi = UDF_SB(sb);
835 if (!bh) { 835 if (!bh) {
836 /* Search backwards through the partitions */ 836 /* Search backwards through the partitions */
837 kernel_lb_addr newfileset; 837 struct kernel_lb_addr newfileset;
838 838
839/* --> cvg: FIXME - is it reasonable? */ 839/* --> cvg: FIXME - is it reasonable? */
840 return 1; 840 return 1;
@@ -917,7 +917,7 @@ static int udf_load_pvoldesc(struct super_block *sb, sector_t block)
917 if (udf_disk_stamp_to_time(&UDF_SB(sb)->s_record_time, 917 if (udf_disk_stamp_to_time(&UDF_SB(sb)->s_record_time,
918 pvoldesc->recordingDateAndTime)) { 918 pvoldesc->recordingDateAndTime)) {
919#ifdef UDFFS_DEBUG 919#ifdef UDFFS_DEBUG
920 timestamp *ts = &pvoldesc->recordingDateAndTime; 920 struct timestamp *ts = &pvoldesc->recordingDateAndTime;
921 udf_debug("recording time %04u/%02u/%02u" 921 udf_debug("recording time %04u/%02u/%02u"
922 " %02u:%02u (%x)\n", 922 " %02u:%02u (%x)\n",
923 le16_to_cpu(ts->year), ts->month, ts->day, ts->hour, 923 le16_to_cpu(ts->year), ts->month, ts->day, ts->hour,
@@ -946,7 +946,7 @@ static int udf_load_metadata_files(struct super_block *sb, int partition)
946 struct udf_sb_info *sbi = UDF_SB(sb); 946 struct udf_sb_info *sbi = UDF_SB(sb);
947 struct udf_part_map *map; 947 struct udf_part_map *map;
948 struct udf_meta_data *mdata; 948 struct udf_meta_data *mdata;
949 kernel_lb_addr addr; 949 struct kernel_lb_addr addr;
950 int fe_error = 0; 950 int fe_error = 0;
951 951
952 map = &sbi->s_partmaps[partition]; 952 map = &sbi->s_partmaps[partition];
@@ -1037,7 +1037,7 @@ error_exit:
1037} 1037}
1038 1038
1039static void udf_load_fileset(struct super_block *sb, struct buffer_head *bh, 1039static void udf_load_fileset(struct super_block *sb, struct buffer_head *bh,
1040 kernel_lb_addr *root) 1040 struct kernel_lb_addr *root)
1041{ 1041{
1042 struct fileSetDesc *fset; 1042 struct fileSetDesc *fset;
1043 1043
@@ -1119,7 +1119,7 @@ static int udf_fill_partdesc_info(struct super_block *sb,
1119 1119
1120 phd = (struct partitionHeaderDesc *)p->partitionContentsUse; 1120 phd = (struct partitionHeaderDesc *)p->partitionContentsUse;
1121 if (phd->unallocSpaceTable.extLength) { 1121 if (phd->unallocSpaceTable.extLength) {
1122 kernel_lb_addr loc = { 1122 struct kernel_lb_addr loc = {
1123 .logicalBlockNum = le32_to_cpu( 1123 .logicalBlockNum = le32_to_cpu(
1124 phd->unallocSpaceTable.extPosition), 1124 phd->unallocSpaceTable.extPosition),
1125 .partitionReferenceNum = p_index, 1125 .partitionReferenceNum = p_index,
@@ -1154,7 +1154,7 @@ static int udf_fill_partdesc_info(struct super_block *sb,
1154 udf_debug("partitionIntegrityTable (part %d)\n", p_index); 1154 udf_debug("partitionIntegrityTable (part %d)\n", p_index);
1155 1155
1156 if (phd->freedSpaceTable.extLength) { 1156 if (phd->freedSpaceTable.extLength) {
1157 kernel_lb_addr loc = { 1157 struct kernel_lb_addr loc = {
1158 .logicalBlockNum = le32_to_cpu( 1158 .logicalBlockNum = le32_to_cpu(
1159 phd->freedSpaceTable.extPosition), 1159 phd->freedSpaceTable.extPosition),
1160 .partitionReferenceNum = p_index, 1160 .partitionReferenceNum = p_index,
@@ -1192,7 +1192,7 @@ static int udf_load_vat(struct super_block *sb, int p_index, int type1_index)
1192{ 1192{
1193 struct udf_sb_info *sbi = UDF_SB(sb); 1193 struct udf_sb_info *sbi = UDF_SB(sb);
1194 struct udf_part_map *map = &sbi->s_partmaps[p_index]; 1194 struct udf_part_map *map = &sbi->s_partmaps[p_index];
1195 kernel_lb_addr ino; 1195 struct kernel_lb_addr ino;
1196 struct buffer_head *bh = NULL; 1196 struct buffer_head *bh = NULL;
1197 struct udf_inode_info *vati; 1197 struct udf_inode_info *vati;
1198 uint32_t pos; 1198 uint32_t pos;
@@ -1322,7 +1322,7 @@ out_bh:
1322} 1322}
1323 1323
1324static int udf_load_logicalvol(struct super_block *sb, sector_t block, 1324static int udf_load_logicalvol(struct super_block *sb, sector_t block,
1325 kernel_lb_addr *fileset) 1325 struct kernel_lb_addr *fileset)
1326{ 1326{
1327 struct logicalVolDesc *lvd; 1327 struct logicalVolDesc *lvd;
1328 int i, j, offset; 1328 int i, j, offset;
@@ -1471,7 +1471,7 @@ static int udf_load_logicalvol(struct super_block *sb, sector_t block,
1471 } 1471 }
1472 1472
1473 if (fileset) { 1473 if (fileset) {
1474 long_ad *la = (long_ad *)&(lvd->logicalVolContentsUse[0]); 1474 struct long_ad *la = (struct long_ad *)&(lvd->logicalVolContentsUse[0]);
1475 1475
1476 *fileset = lelb_to_cpu(la->extLocation); 1476 *fileset = lelb_to_cpu(la->extLocation);
1477 udf_debug("FileSet found in LogicalVolDesc at block=%d, " 1477 udf_debug("FileSet found in LogicalVolDesc at block=%d, "
@@ -1490,7 +1490,7 @@ out_bh:
1490 * udf_load_logicalvolint 1490 * udf_load_logicalvolint
1491 * 1491 *
1492 */ 1492 */
1493static void udf_load_logicalvolint(struct super_block *sb, kernel_extent_ad loc) 1493static void udf_load_logicalvolint(struct super_block *sb, struct kernel_extent_ad loc)
1494{ 1494{
1495 struct buffer_head *bh = NULL; 1495 struct buffer_head *bh = NULL;
1496 uint16_t ident; 1496 uint16_t ident;
@@ -1533,7 +1533,7 @@ static void udf_load_logicalvolint(struct super_block *sb, kernel_extent_ad loc)
1533 * Written, tested, and released. 1533 * Written, tested, and released.
1534 */ 1534 */
1535static noinline int udf_process_sequence(struct super_block *sb, long block, 1535static noinline int udf_process_sequence(struct super_block *sb, long block,
1536 long lastblock, kernel_lb_addr *fileset) 1536 long lastblock, struct kernel_lb_addr *fileset)
1537{ 1537{
1538 struct buffer_head *bh = NULL; 1538 struct buffer_head *bh = NULL;
1539 struct udf_vds_record vds[VDS_POS_LENGTH]; 1539 struct udf_vds_record vds[VDS_POS_LENGTH];
@@ -1678,7 +1678,7 @@ static int udf_check_valid(struct super_block *sb, int novrs, int silent)
1678 return !block; 1678 return !block;
1679} 1679}
1680 1680
1681static int udf_load_sequence(struct super_block *sb, kernel_lb_addr *fileset) 1681static int udf_load_sequence(struct super_block *sb, struct kernel_lb_addr *fileset)
1682{ 1682{
1683 struct anchorVolDescPtr *anchor; 1683 struct anchorVolDescPtr *anchor;
1684 uint16_t ident; 1684 uint16_t ident;
@@ -1755,7 +1755,7 @@ static void udf_open_lvid(struct super_block *sb)
1755 lvid->integrityType = LVID_INTEGRITY_TYPE_OPEN; 1755 lvid->integrityType = LVID_INTEGRITY_TYPE_OPEN;
1756 1756
1757 lvid->descTag.descCRC = cpu_to_le16( 1757 lvid->descTag.descCRC = cpu_to_le16(
1758 crc_itu_t(0, (char *)lvid + sizeof(tag), 1758 crc_itu_t(0, (char *)lvid + sizeof(struct tag),
1759 le16_to_cpu(lvid->descTag.descCRCLength))); 1759 le16_to_cpu(lvid->descTag.descCRCLength)));
1760 1760
1761 lvid->descTag.tagChecksum = udf_tag_checksum(&lvid->descTag); 1761 lvid->descTag.tagChecksum = udf_tag_checksum(&lvid->descTag);
@@ -1790,7 +1790,7 @@ static void udf_close_lvid(struct super_block *sb)
1790 lvid->integrityType = cpu_to_le32(LVID_INTEGRITY_TYPE_CLOSE); 1790 lvid->integrityType = cpu_to_le32(LVID_INTEGRITY_TYPE_CLOSE);
1791 1791
1792 lvid->descTag.descCRC = cpu_to_le16( 1792 lvid->descTag.descCRC = cpu_to_le16(
1793 crc_itu_t(0, (char *)lvid + sizeof(tag), 1793 crc_itu_t(0, (char *)lvid + sizeof(struct tag),
1794 le16_to_cpu(lvid->descTag.descCRCLength))); 1794 le16_to_cpu(lvid->descTag.descCRCLength)));
1795 1795
1796 lvid->descTag.tagChecksum = udf_tag_checksum(&lvid->descTag); 1796 lvid->descTag.tagChecksum = udf_tag_checksum(&lvid->descTag);
@@ -1848,7 +1848,7 @@ static int udf_fill_super(struct super_block *sb, void *options, int silent)
1848 int i; 1848 int i;
1849 struct inode *inode = NULL; 1849 struct inode *inode = NULL;
1850 struct udf_options uopt; 1850 struct udf_options uopt;
1851 kernel_lb_addr rootdir, fileset; 1851 struct kernel_lb_addr rootdir, fileset;
1852 struct udf_sb_info *sbi; 1852 struct udf_sb_info *sbi;
1853 1853
1854 uopt.flags = (1 << UDF_FLAG_USE_AD_IN_ICB) | (1 << UDF_FLAG_STRICT); 1854 uopt.flags = (1 << UDF_FLAG_USE_AD_IN_ICB) | (1 << UDF_FLAG_STRICT);
@@ -1978,7 +1978,7 @@ static int udf_fill_super(struct super_block *sb, void *options, int silent)
1978 } 1978 }
1979 1979
1980 if (!silent) { 1980 if (!silent) {
1981 timestamp ts; 1981 struct timestamp ts;
1982 udf_time_to_disk_stamp(&ts, sbi->s_record_time); 1982 udf_time_to_disk_stamp(&ts, sbi->s_record_time);
1983 udf_info("UDF: Mounting volume '%s', " 1983 udf_info("UDF: Mounting volume '%s', "
1984 "timestamp %04u/%02u/%02u %02u:%02u (%x)\n", 1984 "timestamp %04u/%02u/%02u %02u:%02u (%x)\n",
@@ -2114,7 +2114,7 @@ static unsigned int udf_count_free_bitmap(struct super_block *sb,
2114 unsigned int accum = 0; 2114 unsigned int accum = 0;
2115 int index; 2115 int index;
2116 int block = 0, newblock; 2116 int block = 0, newblock;
2117 kernel_lb_addr loc; 2117 struct kernel_lb_addr loc;
2118 uint32_t bytes; 2118 uint32_t bytes;
2119 uint8_t *ptr; 2119 uint8_t *ptr;
2120 uint16_t ident; 2120 uint16_t ident;
@@ -2170,7 +2170,7 @@ static unsigned int udf_count_free_table(struct super_block *sb,
2170{ 2170{
2171 unsigned int accum = 0; 2171 unsigned int accum = 0;
2172 uint32_t elen; 2172 uint32_t elen;
2173 kernel_lb_addr eloc; 2173 struct kernel_lb_addr eloc;
2174 int8_t etype; 2174 int8_t etype;
2175 struct extent_position epos; 2175 struct extent_position epos;
2176 2176