befs: don't pass huge structs by value
authorJesper Juhl <jj@chaosbits.net>
Thu, 13 Jan 2011 01:00:26 +0000 (17:00 -0800)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 13 Jan 2011 16:03:15 +0000 (08:03 -0800)
commite0e3d32bb40d28cf57a6a24e1e1d87ef03b913bd
tree7d4f90f2f65544559629dc0b3c2220454571b982
parent25f959d63d39c83fda09d93a052835ed35669b1a
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>
fs/befs/endian.h
fs/befs/linuxvfs.c