From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.kernel.org ([198.145.29.136]:55728 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933887AbcHaPb1 (ORCPT ); Wed, 31 Aug 2016 11:31:27 -0400 Subject: Re: mbcache: fix to detect failure of register_shrinker To: Theodore Ts'o References: <1463411798-2597-1-git-send-email-chao@kernel.org> <20160705201625.GA18568@thunk.org> Cc: jack@suse.cz, viro@zeniv.linux.org.uk, linux-ext4@vger.kernel.org, linux-fsdevel@vger.kernel.org, Chao Yu From: Chao Yu Message-ID: Date: Wed, 31 Aug 2016 23:31:17 +0800 MIME-Version: 1.0 In-Reply-To: <20160705201625.GA18568@thunk.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-fsdevel-owner@vger.kernel.org List-ID: On 2016/7/6 4:16, Theodore Ts'o wrote: > On Mon, May 16, 2016 at 11:16:38PM +0800, Chao Yu wrote: >> From: Chao Yu >> >> register_shrinker in mb_cache_create may fail due to no memory. This >> patch fixes to do the check of return value of register_shrinker and >> handle the error case, otherwise mb_cache_create may return with no >> error, but losing the inner shrinker. >> >> Signed-off-by: Chao Yu >> Reviewed-by: Jan Kara > > Applied, thanks. (Apologies for the delay; this patch slipped through > the cracks.) Ping, didn't see it in mainline, is this patch still under testing now? > > - Ted >