Fix the udf code not to pass structs on stack where possible.

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Jan Kara <jack@suse.cz>
This commit is contained in:
Pekka Enberg
2008-10-15 12:29:03 +02:00
committed by Jan Kara
parent 5ca4e4be84
commit 97e961fdbf
10 changed files with 130 additions and 116 deletions

View File

@@ -255,11 +255,12 @@ error_out:
return NULL;
}
struct buffer_head *udf_read_ptagged(struct super_block *sb, struct kernel_lb_addr loc,
struct buffer_head *udf_read_ptagged(struct super_block *sb,
struct kernel_lb_addr *loc,
uint32_t offset, uint16_t *ident)
{
return udf_read_tagged(sb, udf_get_lb_pblock(sb, loc, offset),
loc.logicalBlockNum + offset, ident);
loc->logicalBlockNum + offset, ident);
}
void udf_update_tag(char *data, int length)