Message ID | 44b1dd7e-f5fc-4908-84f1-8e631cdc23d9@paragon-software.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:bcd1:0:b0:403:3b70:6f57 with SMTP id r17csp4170061vqy; Wed, 6 Dec 2023 07:11:30 -0800 (PST) X-Google-Smtp-Source: AGHT+IGTPn/PMv9o5aWLkHgnbVDQt+7l5fPvRaCCgCz9TaoxVeNS1MvG7ywJ7AGyCVTfDhhQI+/6 X-Received: by 2002:a17:902:6bc5:b0:1d0:afd5:1e93 with SMTP id m5-20020a1709026bc500b001d0afd51e93mr746682plt.8.1701875490468; Wed, 06 Dec 2023 07:11:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701875490; cv=none; d=google.com; s=arc-20160816; b=ln77S49UglPyPYekcYo4cd5NZbunqyaGq+EoFKI7/zn+dMnQ+Zre7c6zNM76nlcY4z lFoB5ktwqbJhJ8kEiRISqW5M3Me4cxKpqhLdkPl2QCNtzscVpXgbZQ9FACVykrz9rDlm 5MKUdpHrAbavmVHeopV8oXB6AqoEyMu8W0TQKHyUcIc8uuLaJcwUBvP/o7JubTTsNRiE 0JJGlN8n+fEbdq4koAgFDN/T+BDVBvgqPmP+uHjPp/mK9FeABaM3to/qWFecs5frwkr4 A2oKAjvStDmNfpWV52t1uuec28BHlwf9K1Dd6CkLMoSL67W9Fc91YElLcKcRdDxJSZcf fV8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature:dkim-signature; bh=2BFRYk4Moqh9lL8OQcoNVoZ0RV2c9czsoWnrNagsXik=; fh=P7I85FIabZcM8ojWdeG8ABpTZepe/Xtte9jKWDfUHBM=; b=ja4eD/QfhK5Z8bX3o1GVrVn+IbCWgMb8bp3g99jYLBORLNZiIkWZx/dvUUx08fyXGd w32IlkgmSpssa1MFMmUjw2mEHsq+8uZEnwixzQ5tbtyVIDtRd+MNIy0WsX/0qdCMYIWV YJBzf+9xPSTFM4fJOcHMb94HT2kWPEVK9csa7n0inEhGiK+WHwohqFbMxBtiCrK5NaLz qSLXuzcWmeUXyRDDKFzL02BO1d7+bHq7O492cgVsIjcHTLRvuAHkfEVPj9I/55AKRp3G UNbeP9bB7K/fMfk8I6J+VRjLgM08PSobtQLDb28aUG9MSL0N7G/TiiGOnJSW6eAqgYms hB+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=W9QM4y1P; dkim=pass header.i=@paragon-software.com header.s=mail header.b=LhPCq7kw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id jm1-20020a17090304c100b001d07d6916fesi6863337plb.88.2023.12.06.07.11.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 07:11:30 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=W9QM4y1P; dkim=pass header.i=@paragon-software.com header.s=mail header.b=LhPCq7kw; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id AB2C081BFCCD; Wed, 6 Dec 2023 07:11:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1379092AbjLFPLN (ORCPT <rfc822;pusanteemu@gmail.com> + 99 others); Wed, 6 Dec 2023 10:11:13 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1379096AbjLFPLJ (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Wed, 6 Dec 2023 10:11:09 -0500 Received: from relayaws-01.paragon-software.com (relayaws-01.paragon-software.com [35.157.23.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6BC519A; Wed, 6 Dec 2023 07:11:15 -0800 (PST) Received: from relayfre-01.paragon-software.com (unknown [172.30.72.12]) by relayaws-01.paragon-software.com (Postfix) with ESMTPS id 4775E1E1A; Wed, 6 Dec 2023 15:04:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1701875089; bh=2BFRYk4Moqh9lL8OQcoNVoZ0RV2c9czsoWnrNagsXik=; h=Date:Subject:From:To:CC:References:In-Reply-To; b=W9QM4y1PMOeSapyHHNSO54M7gNOc1aLuFNGjtTYjQSJV0htdC4x+VrQzupF0/j9I2 UQ/Qz+SxSN+tutElWa0RtsRilM5yspu+upzKbRQtGAS3NGzhFCZufJlfmJhGi0hO+U tyjNmuWSVtRiSUFQIzuDruoiwdUzHk7LPQA+M7rs= Received: from dlg2.mail.paragon-software.com (vdlg-exch-02.paragon-software.com [172.30.1.105]) by relayfre-01.paragon-software.com (Postfix) with ESMTPS id 7F1272117; Wed, 6 Dec 2023 15:11:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1701875473; bh=2BFRYk4Moqh9lL8OQcoNVoZ0RV2c9czsoWnrNagsXik=; h=Date:Subject:From:To:CC:References:In-Reply-To; b=LhPCq7kwV1lA63gtdTSLts0Uu8PS4YjNDVw1GJMjGvA42Ak90TZUseTrn1H2SP9cN sxA8xmWKrdoRbOZEcndzE9IUEt+a/pP//oH3NFdTK23dYF2ejGyECH6+V9PauMUPIH I7ouj8D/oTC4AJ8ES2dOWKSGaeBFkG1lESNnyQ7I= Received: from [172.16.192.129] (192.168.211.144) by vdlg-exch-02.paragon-software.com (172.30.1.105) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Wed, 6 Dec 2023 18:11:12 +0300 Message-ID: <44b1dd7e-f5fc-4908-84f1-8e631cdc23d9@paragon-software.com> Date: Wed, 6 Dec 2023 18:11:12 +0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: [PATCH 05/16] fs/ntfs3: Print warning while fixing hard links count Content-Language: en-US From: Konstantin Komarovc <almaz.alexandrovich@paragon-software.com> To: <ntfs3@lists.linux.dev> CC: <linux-kernel@vger.kernel.org>, <linux-fsdevel@vger.kernel.org> References: <00fd1558-fda5-421b-be43-7de69e32cb4e@paragon-software.com> In-Reply-To: <00fd1558-fda5-421b-be43-7de69e32cb4e@paragon-software.com> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 8bit X-Originating-IP: [192.168.211.144] X-ClientProxiedBy: vobn-exch-01.paragon-software.com (172.30.72.13) To vdlg-exch-02.paragon-software.com (172.30.1.105) X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Wed, 06 Dec 2023 07:11:28 -0800 (PST) X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1784545794366080576 X-GMAIL-MSGID: 1784545794366080576 |
Series |
fs/ntfs3: Bugfix and refactoring
|
|
Commit Message
Konstantin Komarov
Dec. 6, 2023, 3:11 p.m. UTC
Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
---
fs/ntfs3/inode.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/ntfs3/inode.c b/fs/ntfs3/inode.c index 5e3d71374918..fa6c7965473c 100644 --- a/fs/ntfs3/inode.c +++ b/fs/ntfs3/inode.c @@ -412,7 +412,6 @@ static struct inode *ntfs_read_mft(struct inode *inode, goto out; if (!is_match && name) { - /* Reuse rec as buffer for ascii name. */ err = -ENOENT; goto out; } @@ -427,6 +426,7 @@ static struct inode *ntfs_read_mft(struct inode *inode, if (names != le16_to_cpu(rec->hard_links)) { /* Correct minor error on the fly. Do not mark inode as dirty. */ + ntfs_inode_warn(inode, "Correct links count -> %u.", names); rec->hard_links = cpu_to_le16(names); ni->mi.dirty = true; }