From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail172.messagelabs.com (mail172.messagelabs.com [216.82.254.3]) by kanga.kvack.org (Postfix) with ESMTP id 3736C8D0039 for ; Mon, 7 Mar 2011 05:29:27 -0500 (EST) Received: from m1.gw.fujitsu.co.jp (unknown [10.0.50.71]) by fgwmail6.fujitsu.co.jp (Postfix) with ESMTP id 5E02E3EE0BC for ; Mon, 7 Mar 2011 19:29:24 +0900 (JST) Received: from smail (m1 [127.0.0.1]) by outgoing.m1.gw.fujitsu.co.jp (Postfix) with ESMTP id 3F85345DE58 for ; Mon, 7 Mar 2011 19:29:24 +0900 (JST) Received: from s1.gw.fujitsu.co.jp (s1.gw.fujitsu.co.jp [10.0.50.91]) by m1.gw.fujitsu.co.jp (Postfix) with ESMTP id 2626145DE55 for ; Mon, 7 Mar 2011 19:29:24 +0900 (JST) Received: from s1.gw.fujitsu.co.jp (localhost.localdomain [127.0.0.1]) by s1.gw.fujitsu.co.jp (Postfix) with ESMTP id 1A7CF1DB8049 for ; Mon, 7 Mar 2011 19:29:24 +0900 (JST) Received: from m106.s.css.fujitsu.com (m106.s.css.fujitsu.com [10.240.81.146]) by s1.gw.fujitsu.co.jp (Postfix) with ESMTP id DCA451DB8047 for ; Mon, 7 Mar 2011 19:29:23 +0900 (JST) Date: Mon, 7 Mar 2011 19:23:02 +0900 From: KAMEZAWA Hiroyuki Subject: Re: [PATCHv2 24/24] sys_swapon: separate final enabling of the swapfile Message-Id: <20110307192302.46c66e3f.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: <1299343345-3984-25-git-send-email-cesarb@cesarb.net> References: <1299343345-3984-1-git-send-email-cesarb@cesarb.net> <1299343345-3984-25-git-send-email-cesarb@cesarb.net> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Cesar Eduardo Barros Cc: linux-mm@kvack.org, Andrew Morton , Hugh Dickins , Minchan Kim , Jens Axboe , linux-kernel@vger.kernel.org, Eric B Munson On Sat, 5 Mar 2011 13:42:25 -0300 Cesar Eduardo Barros wrote: > 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(). Move > this code to a separate function, and use it both in sys_swapon and > sys_swapoff. > > Signed-off-by: Cesar Eduardo Barros > Tested-by: Eric B Munson > Acked-by: Eric B Munson Reviewed-by: KAMEZAWA Hiroyuki -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org