From: Chris Mason Date: Fri, 15 Nov 2013 11:14:55 +0000 (+0100) Subject: btrfs: fix empty_zero_page misusage X-Git-Tag: v3.13-rc1~60^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46e0f66a0cf9e1fe25bfdcf4a60c08aface85998;p=pandora-kernel.git btrfs: fix empty_zero_page misusage Heiko Carstens noticed that btrfs was using empty_zero_page incorrectly. He explained: The definition of empty_zero_page is architecture specific. It is (currently) either a character array, an unsigned long containing the address of the empty_zero_page, or even worse only the address of the struct page belonging to the empty_zero_page. This commit changes btrfs to use a for-loop instead. On x86 the resulting .ko is smaller, and we're no longer worrying about how each arch builds its zeros. Reported-by: Heiko Carstens Signed-off-by: Chris Mason --- Reading git-diff-tree failed