]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2b7c56da17b1af1dd7e89fd2d3c56d323e3e996b
tree7d4f90f2f65544559629dc0b3c2220454571b982
parentad9c31cbdc518ba733965bc8ddd0c9de00d13aca
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