Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp638617imm; Mon, 21 May 2018 11:41:17 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpX21IDr1Ry5OMNThQWRTwEFsnZu8loWOKAmT/lOW+1BbXgthgmwQ3NdoNe5EpjoHx+tMQR X-Received: by 2002:a17:902:8d8c:: with SMTP id v12-v6mr21351892plo.366.1526928077494; Mon, 21 May 2018 11:41:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526928077; cv=none; d=google.com; s=arc-20160816; b=eLmuiea9Xd7TGd1ygbCBSlMii0KLqcwCK1aKX2TE2OykPBdL1L1LxoUJJofMWACAcO x4xu13yLALkdS9wj1y/KCP0w1XIk9jCqoJcF3zmWY50AGqeaUvIv0Bxfip/obB4RXLty nnZmaILYKB4i7kyNV4PbeUChiLvoUv4yme2uNCJssr22XAurGyBm4iIxElejH56DtpgI zjs2Gah6gwonScEgACLf36DcOIM2pmc24qKMvKyZEaTfp4XdLYCLShLLOcr6HUU3cOs+ XGbJluanx3Qoo+cVVEB0kQlMK/f6/qt24FxgQcJ68nD6DHlGmTIo1NyQFMiGIugQBAZ0 gT9g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=WWxxbg3nC8/P+jXDFrQZkoYfqdcTMRyZL+7ifPOHJ1g=; b=iMpI5xNxAVgCqbTGcWFDVeuDYHzy9uaLWXy+jNssmxn7ciOS7N/+Wg9C9CDmCh4jtx k+YKvQkuepK9Xs1ZCcJwoPtEDpq/X4CPkG5YB1bWWXaDJ2l8wJw/up6LE8/MUu00lcr6 AQzUZchfFrTrSgYrJe7GXEmB/e9ihoo9H1hbjsWvVCeSuEY3I25D+GQZg/Ui6R6nr74Q vp5GWJn3dDWHdLaTWjkOAfNX/sPj+WMTTAZDGNW1RzE9vnhYNWwIeAZiuosSJrB3sm+o C2+ZaCRur0+UwE56/Wu+gefY8y0ahCgCRps7riVc4b0f9tLSIWwSd7K14WxmlCroorYP ZYzw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=IM6Zv8AA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 1-v6si14346922plk.521.2018.05.21.11.41.03; Mon, 21 May 2018 11:41:17 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=IM6Zv8AA; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751265AbeEUSki (ORCPT + 99 others); Mon, 21 May 2018 14:40:38 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:36960 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750930AbeEUSke (ORCPT ); Mon, 21 May 2018 14:40:34 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w4LIaA7f073178; Mon, 21 May 2018 18:39:40 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2017-10-26; bh=WWxxbg3nC8/P+jXDFrQZkoYfqdcTMRyZL+7ifPOHJ1g=; b=IM6Zv8AAYfzwrHs3edJwgUNwz0RkgNeJfIAMQCUYSFA+mG8zGdcnh5lONLqUYYQ41mVe +hTFtiPSxD2W74ZZQVP6WE0phZS1815t4/ZGu+bVHw31h6Ln0CkAmY8K2Wp50M5hEXcX 5yvY6pT8qqUQDlv1xB/XW6ooid8tdW3NKRt8New2Q/RoaQvUZDbBZ1K6asHdMxGwmX0g +wE7GxUU9zuYFBQhQqCr1GMrP9+4V80/4bpRScm/zZh5Gecvuhreu5QLXX8hecuIU3Qe loDVBzSb1uCaP2vXL++j2guxT0T7PcpTjhnnLTyOnMslLygzsRgG2pw8J/P0ryW9rvf9 gA== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2j2ck9de5j-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 May 2018 18:39:40 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w4LIddtJ029022 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 21 May 2018 18:39:39 GMT Received: from abhmp0012.oracle.com (abhmp0012.oracle.com [141.146.116.18]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w4LIdcG7024503; Mon, 21 May 2018 18:39:38 GMT Received: from localhost (/67.169.218.210) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 21 May 2018 11:39:38 -0700 Date: Mon, 21 May 2018 11:39:36 -0700 From: "Darrick J. Wong" To: Kent Overstreet Cc: linux-kernel@vger.kernel.org, linux-block@vger.kernel.org, axboe@kernel.dk, hch@infradead.org, colyli@suse.de, snitzer@redhat.com, clm@fb.com, bacik@fb.com, linux-xfs@vger.kernel.org, drbd-dev@lists.linbit.com, linux-btrfs@vger.kernel.org, linux-raid@vger.kernel.org, neilb@suse.com Subject: Re: [PATCH 11/12] xfs: convert to bioset_init()/mempool_init() Message-ID: <20180521183936.GJ23858@magnolia> References: <20180520222558.7053-1-kent.overstreet@gmail.com> <20180520222558.7053-12-kent.overstreet@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180520222558.7053-12-kent.overstreet@gmail.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8900 signatures=668700 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=9 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1805210220 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, May 20, 2018 at 06:25:57PM -0400, Kent Overstreet wrote: > Signed-off-by: Kent Overstreet Looks ok, I guess... Acked-by: Darrick J. Wong --D > --- > fs/xfs/xfs_aops.c | 2 +- > fs/xfs/xfs_aops.h | 2 +- > fs/xfs/xfs_super.c | 11 +++++------ > 3 files changed, 7 insertions(+), 8 deletions(-) > > diff --git a/fs/xfs/xfs_aops.c b/fs/xfs/xfs_aops.c > index 0ab824f574..102463543d 100644 > --- a/fs/xfs/xfs_aops.c > +++ b/fs/xfs/xfs_aops.c > @@ -594,7 +594,7 @@ xfs_alloc_ioend( > struct xfs_ioend *ioend; > struct bio *bio; > > - bio = bio_alloc_bioset(GFP_NOFS, BIO_MAX_PAGES, xfs_ioend_bioset); > + bio = bio_alloc_bioset(GFP_NOFS, BIO_MAX_PAGES, &xfs_ioend_bioset); > xfs_init_bio_from_bh(bio, bh); > > ioend = container_of(bio, struct xfs_ioend, io_inline_bio); > diff --git a/fs/xfs/xfs_aops.h b/fs/xfs/xfs_aops.h > index 69346d460d..694c85b038 100644 > --- a/fs/xfs/xfs_aops.h > +++ b/fs/xfs/xfs_aops.h > @@ -18,7 +18,7 @@ > #ifndef __XFS_AOPS_H__ > #define __XFS_AOPS_H__ > > -extern struct bio_set *xfs_ioend_bioset; > +extern struct bio_set xfs_ioend_bioset; > > /* > * Types of I/O for bmap clustering and I/O completion tracking. > diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c > index d714240529..f643d76db5 100644 > --- a/fs/xfs/xfs_super.c > +++ b/fs/xfs/xfs_super.c > @@ -63,7 +63,7 @@ > #include > > static const struct super_operations xfs_super_operations; > -struct bio_set *xfs_ioend_bioset; > +struct bio_set xfs_ioend_bioset; > > static struct kset *xfs_kset; /* top-level xfs sysfs dir */ > #ifdef DEBUG > @@ -1845,10 +1845,9 @@ MODULE_ALIAS_FS("xfs"); > STATIC int __init > xfs_init_zones(void) > { > - xfs_ioend_bioset = bioset_create(4 * MAX_BUF_PER_PAGE, > + if (bioset_init(&xfs_ioend_bioset, 4 * MAX_BUF_PER_PAGE, > offsetof(struct xfs_ioend, io_inline_bio), > - BIOSET_NEED_BVECS); > - if (!xfs_ioend_bioset) > + BIOSET_NEED_BVECS)) > goto out; > > xfs_log_ticket_zone = kmem_zone_init(sizeof(xlog_ticket_t), > @@ -1997,7 +1996,7 @@ xfs_init_zones(void) > out_destroy_log_ticket_zone: > kmem_zone_destroy(xfs_log_ticket_zone); > out_free_ioend_bioset: > - bioset_free(xfs_ioend_bioset); > + bioset_exit(&xfs_ioend_bioset); > out: > return -ENOMEM; > } > @@ -2029,7 +2028,7 @@ xfs_destroy_zones(void) > kmem_zone_destroy(xfs_btree_cur_zone); > kmem_zone_destroy(xfs_bmap_free_item_zone); > kmem_zone_destroy(xfs_log_ticket_zone); > - bioset_free(xfs_ioend_bioset); > + bioset_exit(&xfs_ioend_bioset); > } > > STATIC int __init > -- > 2.17.0 > > -- > To unsubscribe from this list: send the line "unsubscribe linux-xfs" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html