From: Li Zefan Date: Tue, 10 Jul 2012 02:22:35 +0000 (-0600) Subject: Btrfs: rewrite BTRFS_SETGET_FUNCS X-Git-Tag: v3.6-rc1~81^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=18077bb413687f96bd168efcfb2b8778529e3b74;p=pandora-kernel.git Btrfs: rewrite BTRFS_SETGET_FUNCS BTRFS_SETGET_FUNCS macro is used to generate btrfs_set_foo() and btrfs_foo() functions, which read and write specific fields in the extent buffer. The total number of set/get functions is ~200, but in fact we only need 8 functions: 2 for u8 field, 2 for u16, 2 for u32 and 2 for u64. It results in redunction of ~37K bytes. text data bss dec hex filename 629661 12489 216 642366 9cd3e fs/btrfs/btrfs.o.orig 592637 12489 216 605342 93c9e fs/btrfs/btrfs.o Signed-off-by: Li Zefan --- Reading git-diff-tree failed