@@ -87,7 +87,7 @@ static int read_block_bitmap(struct super_block *sb,
8787{
8888 struct buffer_head * bh = NULL ;
8989 int retval = 0 ;
90- kernel_lb_addr loc ;
90+ struct kernel_lb_addr loc ;
9191
9292 loc .logicalBlockNum = bitmap -> s_extPosition ;
9393 loc .partitionReferenceNum = UDF_SB (sb )-> s_partition ;
@@ -156,7 +156,7 @@ static bool udf_add_free_space(struct udf_sb_info *sbi,
156156static void udf_bitmap_free_blocks (struct super_block * sb ,
157157 struct inode * inode ,
158158 struct udf_bitmap * bitmap ,
159- kernel_lb_addr bloc , uint32_t offset ,
159+ struct kernel_lb_addr bloc , uint32_t offset ,
160160 uint32_t count )
161161{
162162 struct udf_sb_info * sbi = UDF_SB (sb );
@@ -425,13 +425,13 @@ static int udf_bitmap_new_block(struct super_block *sb,
425425static void udf_table_free_blocks (struct super_block * sb ,
426426 struct inode * inode ,
427427 struct inode * table ,
428- kernel_lb_addr bloc , uint32_t offset ,
428+ struct kernel_lb_addr bloc , uint32_t offset ,
429429 uint32_t count )
430430{
431431 struct udf_sb_info * sbi = UDF_SB (sb );
432432 uint32_t start , end ;
433433 uint32_t elen ;
434- kernel_lb_addr eloc ;
434+ struct kernel_lb_addr eloc ;
435435 struct extent_position oepos , epos ;
436436 int8_t etype ;
437437 int i ;
@@ -532,18 +532,18 @@ static void udf_table_free_blocks(struct super_block *sb,
532532 */
533533
534534 int adsize ;
535- short_ad * sad = NULL ;
536- long_ad * lad = NULL ;
535+ struct short_ad * sad = NULL ;
536+ struct long_ad * lad = NULL ;
537537 struct allocExtDesc * aed ;
538538
539539 eloc .logicalBlockNum = start ;
540540 elen = EXT_RECORDED_ALLOCATED |
541541 (count << sb -> s_blocksize_bits );
542542
543543 if (iinfo -> i_alloc_type == ICBTAG_FLAG_AD_SHORT )
544- adsize = sizeof (short_ad );
544+ adsize = sizeof (struct short_ad );
545545 else if (iinfo -> i_alloc_type == ICBTAG_FLAG_AD_LONG )
546- adsize = sizeof (long_ad );
546+ adsize = sizeof (struct long_ad );
547547 else {
548548 brelse (oepos .bh );
549549 brelse (epos .bh );
@@ -601,23 +601,23 @@ static void udf_table_free_blocks(struct super_block *sb,
601601 if (sbi -> s_udfrev >= 0x0200 )
602602 udf_new_tag (epos .bh -> b_data , TAG_IDENT_AED ,
603603 3 , 1 , epos .block .logicalBlockNum ,
604- sizeof (tag ));
604+ sizeof (struct tag ));
605605 else
606606 udf_new_tag (epos .bh -> b_data , TAG_IDENT_AED ,
607607 2 , 1 , epos .block .logicalBlockNum ,
608- sizeof (tag ));
608+ sizeof (struct tag ));
609609
610610 switch (iinfo -> i_alloc_type ) {
611611 case ICBTAG_FLAG_AD_SHORT :
612- sad = (short_ad * )sptr ;
612+ sad = (struct short_ad * )sptr ;
613613 sad -> extLength = cpu_to_le32 (
614614 EXT_NEXT_EXTENT_ALLOCDECS |
615615 sb -> s_blocksize );
616616 sad -> extPosition =
617617 cpu_to_le32 (epos .block .logicalBlockNum );
618618 break ;
619619 case ICBTAG_FLAG_AD_LONG :
620- lad = (long_ad * )sptr ;
620+ lad = (struct long_ad * )sptr ;
621621 lad -> extLength = cpu_to_le32 (
622622 EXT_NEXT_EXTENT_ALLOCDECS |
623623 sb -> s_blocksize );
@@ -666,7 +666,7 @@ static int udf_table_prealloc_blocks(struct super_block *sb,
666666 struct udf_sb_info * sbi = UDF_SB (sb );
667667 int alloc_count = 0 ;
668668 uint32_t elen , adsize ;
669- kernel_lb_addr eloc ;
669+ struct kernel_lb_addr eloc ;
670670 struct extent_position epos ;
671671 int8_t etype = -1 ;
672672 struct udf_inode_info * iinfo ;
@@ -677,9 +677,9 @@ static int udf_table_prealloc_blocks(struct super_block *sb,
677677
678678 iinfo = UDF_I (table );
679679 if (iinfo -> i_alloc_type == ICBTAG_FLAG_AD_SHORT )
680- adsize = sizeof (short_ad );
680+ adsize = sizeof (struct short_ad );
681681 else if (iinfo -> i_alloc_type == ICBTAG_FLAG_AD_LONG )
682- adsize = sizeof (long_ad );
682+ adsize = sizeof (struct long_ad );
683683 else
684684 return 0 ;
685685
@@ -735,17 +735,17 @@ static int udf_table_new_block(struct super_block *sb,
735735 uint32_t spread = 0xFFFFFFFF , nspread = 0xFFFFFFFF ;
736736 uint32_t newblock = 0 , adsize ;
737737 uint32_t elen , goal_elen = 0 ;
738- kernel_lb_addr eloc , uninitialized_var (goal_eloc );
738+ struct kernel_lb_addr eloc , uninitialized_var (goal_eloc );
739739 struct extent_position epos , goal_epos ;
740740 int8_t etype ;
741741 struct udf_inode_info * iinfo = UDF_I (table );
742742
743743 * err = - ENOSPC ;
744744
745745 if (iinfo -> i_alloc_type == ICBTAG_FLAG_AD_SHORT )
746- adsize = sizeof (short_ad );
746+ adsize = sizeof (struct short_ad );
747747 else if (iinfo -> i_alloc_type == ICBTAG_FLAG_AD_LONG )
748- adsize = sizeof (long_ad );
748+ adsize = sizeof (struct long_ad );
749749 else
750750 return newblock ;
751751
@@ -830,7 +830,7 @@ static int udf_table_new_block(struct super_block *sb,
830830
831831inline void udf_free_blocks (struct super_block * sb ,
832832 struct inode * inode ,
833- kernel_lb_addr bloc , uint32_t offset ,
833+ struct kernel_lb_addr bloc , uint32_t offset ,
834834 uint32_t count )
835835{
836836 uint16_t partition = bloc .partitionReferenceNum ;
0 commit comments