diff options
author | Jesper Juhl <jj@chaosbits.net> | 2011-01-12 20:00:26 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2011-01-13 11:03:15 -0500 |
commit | e0e3d32bb40d28cf57a6a24e1e1d87ef03b913bd (patch) | |
tree | 7d4f90f2f65544559629dc0b3c2220454571b982 /fs/befs/linuxvfs.c | |
parent | 25f959d63d39c83fda09d93a052835ed35669b1a (diff) |
befs: don't pass huge structs by value
'struct befs_disk_data_stream' is huge (~144 bytes) and it's being passed
by value in fs/befs/endian.h::cpu_to_fsrun().
It would be better to pass a pointer.
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Cc: Will Dyson <will_dyson@pobox.com>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/befs/linuxvfs.c')
-rw-r--r-- | fs/befs/linuxvfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/befs/linuxvfs.c b/fs/befs/linuxvfs.c index de93581b79a2..b1d0c794747b 100644 --- a/fs/befs/linuxvfs.c +++ b/fs/befs/linuxvfs.c | |||
@@ -390,7 +390,7 @@ static struct inode *befs_iget(struct super_block *sb, unsigned long ino) | |||
390 | int num_blks; | 390 | int num_blks; |
391 | 391 | ||
392 | befs_ino->i_data.ds = | 392 | befs_ino->i_data.ds = |
393 | fsds_to_cpu(sb, raw_inode->data.datastream); | 393 | fsds_to_cpu(sb, &raw_inode->data.datastream); |
394 | 394 | ||
395 | num_blks = befs_count_blocks(sb, &befs_ino->i_data.ds); | 395 | num_blks = befs_count_blocks(sb, &befs_ino->i_data.ds); |
396 | inode->i_blocks = | 396 | inode->i_blocks = |