From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932665Ab1ALAr2 (ORCPT ); Tue, 11 Jan 2011 19:47:28 -0500 Received: from TYO202.gate.nec.co.jp ([202.32.8.206]:45213 "EHLO tyo202.gate.nec.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756359Ab1ALArY (ORCPT ); Tue, 11 Jan 2011 19:47:24 -0500 Date: Wed, 12 Jan 2011 09:38:14 +0900 From: Daisuke Nishimura To: Minchan Kim Cc: Andrew Morton , linux-mm , LKML , KAMEZAWA Hiroyuki , Balbir Singh , Daisuke Nishimura Subject: Re: [PATCH 1/2] memcg: remove unnecessary BUG_ON Message-Id: <20110112093814.7ddc9fe7.nishimura@mxp.nes.nec.co.jp> In-Reply-To: <41390917af25769cd59eb001370b80ef6520a8bb.1294735182.git.minchan.kim@gmail.com> References: <41390917af25769cd59eb001370b80ef6520a8bb.1294735182.git.minchan.kim@gmail.com> Organization: NEC Soft, Ltd. X-Mailer: Sylpheed 3.0.3 (GTK+ 2.10.14; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, 11 Jan 2011 17:51:11 +0900 Minchan Kim wrote: > Now memcg in unmap_and_move checks BUG_ON of charge. > mem_cgroup_prepare_migration returns either 0 or -ENOMEM. > If it returns -ENOMEM, it jumps out unlock without the check. > If it returns 0, it can pass BUG_ON. So it's meaningless. > Let's remove it. > > Cc: Daisuke Nishimura > Cc: Balbir Singh > Cc: KAMEZAWA Hiroyuki > Signed-off-by: Minchan Kim Acked-by: Daisuke Nishimura