From: Cesar Eduardo Barros Date: Tue, 22 Mar 2011 23:33:35 +0000 (-0700) Subject: sys_swapon: move printk outside lock X-Git-Tag: v2.6.39-rc1~292 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c69dbfb84e88503468b6c481aecdb48d76ad5bc6;p=pandora-kernel.git sys_swapon: move printk outside lock The block in sys_swapon which does the final adjustments to the swap_info_struct and to swap_list is the same as the block which re-inserts it again at sys_swapoff on failure of try_to_unuse(). To be able to make both share the same code, move the printk() call in the middle of it to just after it. Signed-off-by: Cesar Eduardo Barros Tested-by: Eric B Munson Acked-by: Eric B Munson Reviewed-by: KAMEZAWA Hiroyuki Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed