From patchwork Fri Nov 6 14:33:01 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li Dongyang X-Patchwork-Id: 58048 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nA6EWtsI022791 for ; Fri, 6 Nov 2009 14:32:55 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756761AbZKFOcf (ORCPT ); Fri, 6 Nov 2009 09:32:35 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757491AbZKFOcf (ORCPT ); Fri, 6 Nov 2009 09:32:35 -0500 Received: from mail-bw0-f227.google.com ([209.85.218.227]:35178 "EHLO mail-bw0-f227.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757834AbZKFOce (ORCPT ); Fri, 6 Nov 2009 09:32:34 -0500 Received: by bwz27 with SMTP id 27so1216137bwz.21 for ; Fri, 06 Nov 2009 06:32:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mime-version:content-type:content-disposition:user-agent; bh=3ildYhpTvdiJpXo66T1FpEE/nlEM7onPOq0GqKpHWqE=; b=qoMp2ectyRU0w4cfNAfgcI+M0YgUY/yI/TaLhm2HSmYrbfHwvJSa2Edn+Vu/yG3z9L 3vAogBddnq2LZFFjFGSE47FllI6TXoKsMX/noNoUiNMVxwBjE+6ZJgyUH6WzuqWnCoCw lo5dqI+4YELb5fNkPGp4Enscce/f9XWCi0W34= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=UuChlds12kChPyVtCw3B2NBMxuS9I4DmPknWCNWFrReXcI073ryaDxcmrarmuMqivc nYGKpCFENVKclihX838855w8xaSaxBxRJjAcdlhKSTpGMg8Qrs/mrlTfmzt6XPHEfQ/G 2JwPeUjKGXEly6bKuOonW7gPu3cXoDTKE6Udg= Received: by 10.103.86.22 with SMTP id o22mr1697897mul.102.1257517958605; Fri, 06 Nov 2009 06:32:38 -0800 (PST) Received: from localhost ([125.39.108.45]) by mx.google.com with ESMTPS id y37sm402859mug.34.2009.11.06.06.32.35 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 06 Nov 2009 06:32:37 -0800 (PST) Date: Fri, 6 Nov 2009 22:33:01 +0800 From: Li Dongyang To: linux-btrfs@vger.kernel.org Cc: chris.mason@oracle.com Subject: [PATCH]don't call btrfs_release_path in btrfs_update_root and btrfs_del_root Message-ID: <20091106143301.GB5451@Archlinux> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org diff --git a/fs/btrfs/root-tree.c b/fs/btrfs/root-tree.c index 9351428..67fa2d2 100644 --- a/fs/btrfs/root-tree.c +++ b/fs/btrfs/root-tree.c @@ -159,7 +159,6 @@ int btrfs_update_root(struct btrfs_trans_handle *trans, struct btrfs_root write_extent_buffer(l, item, ptr, sizeof(*item)); btrfs_mark_buffer_dirty(path->nodes[0]); out: - btrfs_release_path(root, path); btrfs_free_path(path); return ret; } @@ -332,7 +331,6 @@ int btrfs_del_root(struct btrfs_trans_handle *trans, struct btrfs_root *root, BUG_ON(refs != 0); ret = btrfs_del_item(trans, root, path); out: - btrfs_release_path(root, path); btrfs_free_path(path); return ret; }