From patchwork Mon Nov 4 21:34:28 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Valentina Giusti X-Patchwork-Id: 3137961 Return-Path: X-Original-To: patchwork-linux-btrfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id F01BFBEEB2 for ; Mon, 4 Nov 2013 21:37:16 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3CA91205BE for ; Mon, 4 Nov 2013 21:37:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 757C9205C6 for ; Mon, 4 Nov 2013 21:37:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753220Ab3KDVhN (ORCPT ); Mon, 4 Nov 2013 16:37:13 -0500 Received: from mail.microon.de ([37.252.125.21]:37986 "EHLO gattino.microon.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1752598Ab3KDVhA (ORCPT ); Mon, 4 Nov 2013 16:37:00 -0500 Received: from tindwyl.labs.pbs.com (ulmg-4d022145.pool.mediaWays.net [77.2.33.69]) by gattino.microon.de (Postfix) with ESMTPSA id 6D63C41EA0; Mon, 4 Nov 2013 22:36:58 +0100 (CET) From: Valentina Giusti To: chris.mason@fusionio.com Cc: linux-btrfs@vger.kernel.org Subject: [PATCH 8/9] btrfs: replace path->slots[0] with otherwise unused variable 'slot' Date: Mon, 4 Nov 2013 22:34:28 +0100 Message-Id: <1383600869-10085-9-git-send-email-valentina.giusti@microon.de> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1383600869-10085-1-git-send-email-valentina.giusti@microon.de> References: <1383600869-10085-1-git-send-email-valentina.giusti@microon.de> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Valentina Giusti --- fs/btrfs/backref.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c index 0552a59..5418435 100644 --- a/fs/btrfs/backref.c +++ b/fs/btrfs/backref.c @@ -1681,8 +1681,8 @@ static int iterate_inode_extrefs(u64 inum, struct btrfs_root *fs_root, btrfs_release_path(path); leaf = path->nodes[0]; - item_size = btrfs_item_size_nr(leaf, path->slots[0]); - ptr = btrfs_item_ptr_offset(leaf, path->slots[0]); + item_size = btrfs_item_size_nr(leaf, slot); + ptr = btrfs_item_ptr_offset(leaf, slot); cur_offset = 0; while (cur_offset < item_size) {