Thread (6 messages) 6 messages, 3 authors, 2016-08-31

Re: [PATCH] mbcache: fix to detect failure of register_shrinker

From: Jan Kara <jack@suse.cz>
Date: 2016-05-16 15:31:43
Also in: linux-fsdevel

On Mon 16-05-16 23:16:38, Chao Yu wrote:
From: Chao Yu <redacted>

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 <redacted>
Thanks for fixing this. The patch looks good. You can add:

Reviewed-by: Jan Kara <jack@suse.cz>

								Honza

-- 
Jan Kara [off-list ref]
SUSE Labs, CR
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help