From: Cesar Eduardo Barros Date: Tue, 22 Mar 2011 23:33:32 +0000 (-0700) Subject: sys_swapon: separate parsing of bad blocks and extents X-Git-Tag: v2.6.39-rc1~295 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=915d4d7bc0d719f2f0907273c01967d38751c625;p=pandora-kernel.git sys_swapon: separate parsing of bad blocks and extents Move the code which parses the bad block list and the extents to a separate function. Only code movement, no functional changes. This change uses the fact that, after the success path, nr_good_pages == p->pages. Signed-off-by: Cesar Eduardo Barros Tested-by: Eric B Munson Acked-by: Eric B Munson Reviewed-by: Pekka Enberg Reviewed-by: KAMEZAWA Hiroyuki Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed