X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fudf%2Fballoc.c;fp=fs%2Fudf%2Fballoc.c;h=235418f35f65391d48aecb50ed70f4faeaaffc9e;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=8f7d9eff554b0a00ad516ec55db2dc0cfd6b6f92;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/fs/udf/balloc.c b/fs/udf/balloc.c index 8f7d9eff5..235418f35 100644 --- a/fs/udf/balloc.c +++ b/fs/udf/balloc.c @@ -44,13 +44,13 @@ #define xleNUM_to_cpup(x,y) (le ## x ## _to_cpup(y)) #define uintBPL_t uint(BITS_PER_LONG) #define uint(x) xuint(x) -#define xuint(x) uint ## x ## _t +#define xuint(x) __le ## x extern inline int find_next_one_bit (void * addr, int size, int offset) { uintBPL_t * p = ((uintBPL_t *) addr) + (offset / BITS_PER_LONG); - uintBPL_t result = offset & ~(BITS_PER_LONG-1); - uintBPL_t tmp; + int result = offset & ~(BITS_PER_LONG-1); + unsigned long tmp; if (offset >= size) return size; @@ -91,7 +91,7 @@ static int read_block_bitmap(struct super_block * sb, { struct buffer_head *bh = NULL; int retval = 0; - lb_addr loc; + kernel_lb_addr loc; loc.logicalBlockNum = bitmap->s_extPosition; loc.partitionReferenceNum = UDF_SB_PARTITION(sb); @@ -145,7 +145,8 @@ static inline int load_block_bitmap(struct super_block * sb, static void udf_bitmap_free_blocks(struct super_block * sb, struct inode * inode, - struct udf_bitmap *bitmap, lb_addr bloc, uint32_t offset, uint32_t count) + struct udf_bitmap *bitmap, + kernel_lb_addr bloc, uint32_t offset, uint32_t count) { struct buffer_head * bh = NULL; unsigned long block; @@ -424,11 +425,12 @@ error_return: static void udf_table_free_blocks(struct super_block * sb, struct inode * inode, - struct inode * table, lb_addr bloc, uint32_t offset, uint32_t count) + struct inode * table, + kernel_lb_addr bloc, uint32_t offset, uint32_t count) { uint32_t start, end; uint32_t nextoffset, oextoffset, elen; - lb_addr nbloc, obloc, eloc; + kernel_lb_addr nbloc, obloc, eloc; struct buffer_head *obh, *nbh; int8_t etype; int i; @@ -678,7 +680,7 @@ static int udf_table_prealloc_blocks(struct super_block * sb, { int alloc_count = 0; uint32_t extoffset, elen, adsize; - lb_addr bloc, eloc; + kernel_lb_addr bloc, eloc; struct buffer_head *bh; int8_t etype = -1; @@ -748,7 +750,7 @@ static int udf_table_new_block(struct super_block * sb, uint32_t spread = 0xFFFFFFFF, nspread = 0xFFFFFFFF; uint32_t newblock = 0, adsize; uint32_t extoffset, goal_extoffset, elen, goal_elen = 0; - lb_addr bloc, goal_bloc, eloc, goal_eloc; + kernel_lb_addr bloc, goal_bloc, eloc, goal_eloc; struct buffer_head *bh, *goal_bh; int8_t etype; @@ -854,7 +856,7 @@ static int udf_table_new_block(struct super_block * sb, inline void udf_free_blocks(struct super_block * sb, struct inode * inode, - lb_addr bloc, uint32_t offset, uint32_t count) + kernel_lb_addr bloc, uint32_t offset, uint32_t count) { uint16_t partition = bloc.partitionReferenceNum;