From patchwork Fri Sep 29 19:43:59 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josef Bacik X-Patchwork-Id: 9978557 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 4B32C60311 for ; Fri, 29 Sep 2017 19:44:36 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3DDD8298AB for ; Fri, 29 Sep 2017 19:44:36 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 32CBF298AD; Fri, 29 Sep 2017 19:44:36 +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=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 D4BBA298AB for ; Fri, 29 Sep 2017 19:44:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752576AbdI2Toe (ORCPT ); Fri, 29 Sep 2017 15:44:34 -0400 Received: from mail-qt0-f194.google.com ([209.85.216.194]:54860 "EHLO mail-qt0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752557AbdI2Toa (ORCPT ); Fri, 29 Sep 2017 15:44:30 -0400 Received: by mail-qt0-f194.google.com with SMTP id i13so903787qtc.11 for ; Fri, 29 Sep 2017 12:44:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=QaJRBF9C4a1gvg7Pk0qhb/r75FJUUJGK8FfvDS0DspU=; b=s68adY+pVFGpvPgEu8UmFrmopCJXS31gxP4m3dbd6QrAiyIBFDrB+/+Mlher4koyL3 nXVKFb2s1EeV1mqeKXMRb54rs4PP21390QBH8Kp688WTVDOH6YxzGwrEzz6lccmkyhcz dtlZ+ISc2UH8UQ21LsrOLfFnCENGD+2MEziwzqd4rl85p2JNs1EGPsIt0PTJI9SbDWEm iI9q1IGjqiRYuKJoaxBL1rpOwXIruqvC/akJvd+Puwsyj3L3ZVkzPaSA/tGHYMfU+0x4 wD4b4GzruXWebduMKEe6cc9WhJR/GnaurYrh29N+SpE/hVweB04lT7UnGn6lVHNHLybv FDMg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=QaJRBF9C4a1gvg7Pk0qhb/r75FJUUJGK8FfvDS0DspU=; b=P8TvIbRga+8nilNIUv0EgjwDHcW9jgv21T6rHZXXv7B+T2NFlRU/QOPkdBHukqyaTp /y/PAjc+AjQUlrtkNEWOv9SV9TGHDX83sIjz1FvMZkMyjSzosBPGBCCjHOnphCprEn// CEdzEKZYNmoltlZCP6iZ1VGf07y7uUcmalBibDa8y0UVxTYRbguAG2q9ERYPAydjmNYK mKlvrNOCMG7mDx73DLGvJeVLe+e0cKdFhmM2iEhtZY7XC6T+z2clU3uMh5l4qhxhEwV7 sH741M+C0I1lxYxfoMlA9mKPwn63xHFjz69VGCIzAHo/g3P1NH9FsXTvT4gAdIr/miIA x0dw== X-Gm-Message-State: AMCzsaV+uAGNEizgHZ+rVblZdH93FZupUKJFV8p05+7Kw7LSLHWOEKDw in9fJrwlmcCKHNHAeuIksMNWBg== X-Google-Smtp-Source: AOwi7QDPPP2zknHbRaW2MBT74Kuk6vOm63GAPztWdcqNCq/RAx0o3OOTQqT+2z2klsFKmFgYbRlEwQ== X-Received: by 10.200.36.120 with SMTP id d53mr8082409qtd.82.1506714269743; Fri, 29 Sep 2017 12:44:29 -0700 (PDT) Received: from localhost ([2606:a000:4381:1201:225:22ff:feb3:e51a]) by smtp.gmail.com with ESMTPSA id d140sm3070444qkc.41.2017.09.29.12.44.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Sep 2017 12:44:29 -0700 (PDT) From: Josef Bacik X-Google-Original-From: Josef Bacik To: kernel-team@fb.com, linux-btrfs@vger.kernel.org Subject: [PATCH 15/21] btrfs: switch args for comp_*_refs Date: Fri, 29 Sep 2017 15:43:59 -0400 Message-Id: <1506714245-23072-16-git-send-email-jbacik@fb.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1506714245-23072-1-git-send-email-jbacik@fb.com> References: <1506714245-23072-1-git-send-email-jbacik@fb.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Because seriously? ref2 and then ref1? Signed-off-by: Josef Bacik --- fs/btrfs/delayed-ref.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fs/btrfs/delayed-ref.c b/fs/btrfs/delayed-ref.c index a2973340a94f..bc940bb374cf 100644 --- a/fs/btrfs/delayed-ref.c +++ b/fs/btrfs/delayed-ref.c @@ -40,8 +40,8 @@ struct kmem_cache *btrfs_delayed_extent_op_cachep; /* * compare two delayed tree backrefs with same bytenr and type */ -static int comp_tree_refs(struct btrfs_delayed_tree_ref *ref2, - struct btrfs_delayed_tree_ref *ref1) +static int comp_tree_refs(struct btrfs_delayed_tree_ref *ref1, + struct btrfs_delayed_tree_ref *ref2) { if (ref1->node.type == BTRFS_TREE_BLOCK_REF_KEY) { if (ref1->root < ref2->root) @@ -60,8 +60,8 @@ static int comp_tree_refs(struct btrfs_delayed_tree_ref *ref2, /* * compare two delayed data backrefs with same bytenr and type */ -static int comp_data_refs(struct btrfs_delayed_data_ref *ref2, - struct btrfs_delayed_data_ref *ref1) +static int comp_data_refs(struct btrfs_delayed_data_ref *ref1, + struct btrfs_delayed_data_ref *ref2) { if (ref1->node.type == BTRFS_EXTENT_DATA_REF_KEY) { if (ref1->root < ref2->root)