From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1422695AbbE2ViF (ORCPT ); Fri, 29 May 2015 17:38:05 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:56652 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1422659AbbE2Vh4 (ORCPT ); Fri, 29 May 2015 17:37:56 -0400 Date: Fri, 29 May 2015 14:37:55 -0700 From: Andrew Morton To: Dan Streetman Cc: Ganesh Mahendran , Minchan Kim , Kees Cook , linux-kernel@vger.kernel.org, linux-mm@kvack.org Subject: Re: [PATCH] zpool: add zpool_has_pool() Message-Id: <20150529143755.35e070822d62cf39119aac13@linux-foundation.org> In-Reply-To: <1432912338-16775-1-git-send-email-ddstreet@ieee.org> References: <1432912338-16775-1-git-send-email-ddstreet@ieee.org> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) 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 Fri, 29 May 2015 11:12:18 -0400 Dan Streetman wrote: > Add zpool_has_pool() function, indicating if the specified type of zpool > is available (i.e. zsmalloc or zbud). This allows checking if a pool is > available, without actually trying to allocate it, similar to > crypto_has_alg(). > > ... > > +bool zpool_has_pool(char *type); This has no callers.