Message ID | 155259762965.31886.1477262840183695209.stgit@magnolia (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show
Return-Path: <linux-xfs-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 0707F1874 for <patchwork-linux-xfs@patchwork.kernel.org>; Thu, 14 Mar 2019 21:07:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E4BE22A199 for <patchwork-linux-xfs@patchwork.kernel.org>; Thu, 14 Mar 2019 21:07:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id E33562A791; Thu, 14 Mar 2019 21:07:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9832F2A199 for <patchwork-linux-xfs@patchwork.kernel.org>; Thu, 14 Mar 2019 21:07:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727204AbfCNVHN (ORCPT <rfc822;patchwork-linux-xfs@patchwork.kernel.org>); Thu, 14 Mar 2019 17:07:13 -0400 Received: from userp2120.oracle.com ([156.151.31.85]:53112 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727832AbfCNVHM (ORCPT <rfc822;linux-xfs@vger.kernel.org>); Thu, 14 Mar 2019 17:07:12 -0400 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.27/8.16.0.27) with SMTP id x2EKwi9O102514; Thu, 14 Mar 2019 21:07:11 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=subject : from : to : cc : date : message-id : in-reply-to : references : mime-version : content-type : content-transfer-encoding; s=corp-2018-07-02; bh=B9xepTNSmKTjjt2VM1lVrh/OHUM1mmDIMjrR0jpRczc=; b=QCzScao0UtAtfYcEGATEMfcv2TnMMdeGG1yuC7brWcX4Z14oSe8bkXSJ1OyDK0zK1vMj e11Kd3U/BCv7ZNBzj1ta2/gSruQJVtloULyOUbDGhs6mzazZ30t3JbOh6xfSlR1+sN5B UwylAAgXS0O9QPjG/hMKNMQ5ArtuTtiKnoX55mevwmiwZqSm9RDA8Ru8tZsxdMdZfz2r x2ID9tz+uSD78hguCPR9snhaSKrrwBM9TCd9BHSmbb31O06iWrolzault9OpfPpcp2ci s1Uv5wkklqqouiNg6Ymd37crKYJmjLvIuEBLhJNKd3Echq3cUFaoCqj1qj7e/w4eln2Q gg== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2120.oracle.com with ESMTP id 2r464ruesv-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Mar 2019 21:07:10 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id x2EL7AqJ011998 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 14 Mar 2019 21:07:10 GMT Received: from abhmp0011.oracle.com (abhmp0011.oracle.com [141.146.116.17]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id x2EL7A2l004077; Thu, 14 Mar 2019 21:07:10 GMT Received: from localhost (/10.145.178.102) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 14 Mar 2019 21:07:09 +0000 Subject: [PATCH 32/36] libxfs: refactor buffer item release code From: "Darrick J. Wong" <darrick.wong@oracle.com> To: sandeen@sandeen.net, darrick.wong@oracle.com Cc: linux-xfs@vger.kernel.org Date: Thu, 14 Mar 2019 14:07:09 -0700 Message-ID: <155259762965.31886.1477262840183695209.stgit@magnolia> In-Reply-To: <155259742281.31886.17157720770696604377.stgit@magnolia> References: <155259742281.31886.17157720770696604377.stgit@magnolia> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=9195 signatures=668685 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 malwarescore=0 suspectscore=2 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1903140143 Sender: linux-xfs-owner@vger.kernel.org Precedence: bulk List-ID: <linux-xfs.vger.kernel.org> X-Mailing-List: linux-xfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
xfsprogs-5.0: fix various problems
|
expand
|
diff --git a/libxfs/trans.c b/libxfs/trans.c index 7bdd1544..295e687e 100644 --- a/libxfs/trans.c +++ b/libxfs/trans.c @@ -540,6 +540,16 @@ libxfs_trans_ordered_buf( return ret; } +void +xfs_buf_item_put( + struct xfs_buf_log_item *bip) +{ + struct xfs_buf *bp = bip->bli_buf; + + bp->b_log_item = NULL; + kmem_zone_free(xfs_buf_item_zone, bip); +} + void libxfs_trans_brelse( xfs_trans_t *tp, @@ -881,7 +891,6 @@ buf_item_done( bp = bip->bli_buf; ASSERT(bp != NULL); - bp->b_log_item = NULL; /* remove log item */ bp->b_transp = NULL; /* remove xact ptr */ hold = (bip->bli_flags & XFS_BLI_HOLD); @@ -896,8 +905,7 @@ buf_item_done( bip->bli_flags &= ~XFS_BLI_HOLD; else libxfs_putbuf(bp); - /* release the buf item */ - kmem_zone_free(xfs_buf_item_zone, bip); + xfs_buf_item_put(bip); } static void