Message ID | 20180912192046.5861-4-suy.fnst@cn.fujitsu.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-btrfs-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 7D46614E5 for <patchwork-linux-btrfs@patchwork.kernel.org>; Wed, 12 Sep 2018 11:21:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6D3B029B99 for <patchwork-linux-btrfs@patchwork.kernel.org>; Wed, 12 Sep 2018 11:21:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6BB4B29BA9; Wed, 12 Sep 2018 11:21:20 +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,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI 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 EABAD29BAE for <patchwork-linux-btrfs@patchwork.kernel.org>; Wed, 12 Sep 2018 11:21:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726860AbeILQZX (ORCPT <rfc822;patchwork-linux-btrfs@patchwork.kernel.org>); Wed, 12 Sep 2018 12:25:23 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:41151 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726082AbeILQZX (ORCPT <rfc822;linux-btrfs@vger.kernel.org>); Wed, 12 Sep 2018 12:25:23 -0400 Received: by mail-pg1-f196.google.com with SMTP id s15-v6so898011pgv.8 for <linux-btrfs@vger.kernel.org>; Wed, 12 Sep 2018 04:21:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=xTTQtBI48mgaANzzKeLeRM6T/v0WiYj9yaH6pULdaLY=; b=ag4g+L5IS4i85+DNNl0FIXRupB5nT3hTWhDCwyCXgXHOE96zSB8mgCtRapO+7dIAeV Jc5Pk7kH5ABh+kBxLwSxuzlUkpHVHVxuiAgXyduHpfEPvHmqMu+h80FsLLOnoBP4SVWt MR6dotD2Fkia8rKYPt1bCZWeeGiLKMAStS0A8TPGMT06qx/JWU9J9GMj/v9Ur7i8VZg9 L9chjTS7lOxN08rrbdIUo/7uSVF3RFExpjxK+XIXCWzWwxO9pLBIIov/Wzbw9M7cXsTe wx+rCFZ8ENnTz3Gx/EuoLZRYNG6ou6quNmYkCXKFZdgpsXhnnYuNEMVCv85mCf7Eko/b TDSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=xTTQtBI48mgaANzzKeLeRM6T/v0WiYj9yaH6pULdaLY=; b=KZ0Wez2KseYl/ug/bckg6KUrQYfyrLhR+T0QL1mosboOCptD1K/EwL1RD2TqciSqQf 0jKxQ7yuLqNcBvSuXyl9V0NfwSlhvdFHoLYicaLTFTmlGTqGfNYPDAk61be3C88V4qsX /ol9FEUPnYfzq8fkUtiLnNH0qMbMGfP+zXf7E2pSqj/97e3Xqb+Hpj/uk805jMkkyesb CRULCYEzKPvrHJAEwMDHyCa7evlZri/w8GuB9R0jqV+BJykUk/TEmN8ZZ4ssKTya9phT dl7GslNVBnppfbXDcbgNJ2mSJtdhe85RwROAb3tkEcNwOwwtW2E7EdXdKVSrFzeTJkQJ HCFw== X-Gm-Message-State: APzg51CdBRrGgzxHKiZ4g0TnaRxLEDozklehuAN9CF9eVbO6Hml1lyrP HdD8lhiOsvcGXrgk6F/R6PCkFTFe X-Google-Smtp-Source: ANB0VdYimks12GOlt10JLZrDgjtVgRGAaIts/6b7vWhzQIs0fqDb/HcaSG+Ca7n66Ej32CHSPHN3MA== X-Received: by 2002:a63:6746:: with SMTP id b67-v6mr1705841pgc.330.1536751277730; Wed, 12 Sep 2018 04:21:17 -0700 (PDT) Received: from cat-arch.lan (li1862-137.members.linode.com. [172.105.208.137]) by smtp.gmail.com with ESMTPSA id h12-v6sm1267826pfo.135.2018.09.12.04.21.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 12 Sep 2018 04:21:16 -0700 (PDT) From: damenly.su@gmail.com X-Google-Original-From: suy.fnst@cn.fujitsu.com To: linux-btrfs@vger.kernel.org Cc: suy.fnst@cn.fujitsu.com Subject: [PATCH 3/6] btrfs-progs: lowmem check: find dir_item by di_key in check_dir_item() Date: Wed, 12 Sep 2018 19:20:40 +0000 Message-Id: <20180912192046.5861-4-suy.fnst@cn.fujitsu.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20180912192046.5861-1-suy.fnst@cn.fujitsu.com> References: <20180912192046.5861-1-suy.fnst@cn.fujitsu.com> Sender: linux-btrfs-owner@vger.kernel.org Precedence: bulk List-ID: <linux-btrfs.vger.kernel.org> X-Mailing-List: linux-btrfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
btrfs-progs: lowmem: bug fixes and inode_extref repair
|
expand
|
diff --git a/check/mode-lowmem.c b/check/mode-lowmem.c index 1bce44f5658a..89a304bbdd69 100644 --- a/check/mode-lowmem.c +++ b/check/mode-lowmem.c @@ -1658,7 +1658,7 @@ begin: /* check relative INDEX/ITEM */ key.objectid = di_key->objectid; - if (key.type == BTRFS_DIR_ITEM_KEY) { + if (di_key->type == BTRFS_DIR_ITEM_KEY) { key.type = BTRFS_DIR_INDEX_KEY; key.offset = index; } else {