Received: by 2002:a05:7412:3b8b:b0:fc:a2b0:25d7 with SMTP id nd11csp2773063rdb; Mon, 12 Feb 2024 16:50:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXGqTBVt1Z3lqYzu9T+EboMJOy8MOrXRBJa185TPRqlVyXcBQwO7AJ01Nn/xoSI2FsDbuQq8WOlYAbfE+L0ZlxioL6J61w61VPKv9M1UA== X-Google-Smtp-Source: AGHT+IHJ0nXJkaiGi/Cb6cWsP2Xf8Zj2kfKOIj7tWRZ0Ojn7Wey5qfaVJPltTHmjqAvTjLFOIyId X-Received: by 2002:a05:6a21:1743:b0:19e:cae4:7c15 with SMTP id nw3-20020a056a21174300b0019ecae47c15mr8093141pzb.24.1707785432828; Mon, 12 Feb 2024 16:50:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707785432; cv=pass; d=google.com; s=arc-20160816; b=M1xJdqb5SGubKztOcPEx9IsRp0cMTRVKLj7B4nuhqXfxsKXUhabd+goCqw7czo1BVn 74T9dslS+uan82GfwiRFHhaCeV4vZn9ocVOWBqEGoMejcwN7+k+GrDFiVjTsefvcZ5gQ L9OUBTD6nL5SnVW62GOTNSAPdspCV6j0QBinC+IC+rH3xtuyvlpXf4EZyLSD0jS+nU+R f6QAHlyh+kdLHYrb6zm8pLwKuyl+sM7zpWx9idePl76YEiZ9uBmr3McssUjHnZqSJ/K7 y8WpasL0rOGkwyRKl9jM6mHhXrOg4qpvXXTjkHo9jwDjRPi8CJyEC/1dCf9HGNTlF45t 3NNw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=3q7rN3GcUN80C/OSUYoXbLFBwLsZwybvDF8hGYT8uvI=; fh=dAy4XUQGPKlFKCIcTgOHDVOz5V/J3PSbyK3uW5motAg=; b=UTBJ/HrD8aLUJXNQHj+FmrjZDd+c/6LSEuF2MNMoUedF7cfrSMija90+igNejf7SqN x8f/NSLo1upIgEBW3jpSZ14NM0sHKI/JzvSfhbzx/qScPy3wyTDHCQgaISEZdA0MebGs 4EcmyJbeg8n9gotr7gO0iOD+kzUUlmgj91MTaziVZnMGAcYaM7kC3T5DuFh3fF3H4Rio GLJ0aO7gVWyRBZ5izU502pDoDqXUfdTTfk3OaTx7u+wTy1I31/JwvbC5eWTBrp0xRmja Cbtw15wJ0d64S4K6KUi46nB7lr0eIgt5Tm7nq1Z4/NNK1Y41PHKvqF2VbAD+OvOzUc7h XaJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JSO6cXP5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62687-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62687-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org X-Forwarded-Encrypted: i=2; AJvYcCVHUYuZOOZWEOTtggc4cUHXNYj2U6kGDKqc/HQe965FWsn+kY1GmCUAR4ZrfJ/sLp7KzFr+dkPhQIwc0z3WZ9Qoirn7K/wCh2WwvS1SBg== Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id q11-20020a056a00088b00b006e05de14bd2si5834772pfj.318.2024.02.12.16.50.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 12 Feb 2024 16:50:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-62687-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=JSO6cXP5; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-62687-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-62687-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 751342849CE for ; Tue, 13 Feb 2024 00:50:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5272D76900; Tue, 13 Feb 2024 00:22:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="JSO6cXP5" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7599E74E25; Tue, 13 Feb 2024 00:22:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707783761; cv=none; b=FWDR/Wbe223mOKE0PcW20EgzKgNTl0xbiAYe8rjv3gnpl0wi0G0jeG7RdYbZoUQMRYuapY3cg4Oy5qm+0wsDwIggF0tDgzeyQdGzykTw6xLJ/OL40zGV2w/Wheq7WuXDhvDPOQB+J7nb8mdE7hRuKsF6DxR4hI+qvfNq2l67U/g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707783761; c=relaxed/simple; bh=dh8OhucC/BjL6q7utBgUUWgc9gRocKPR4IaU13t7+Vg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MpPxnzL4lBEms0qY85gu8wA16NQYr+Od/iffCooybidRLNJZOV4QfYEoZVuSZ1EbDXgfGV2fbeXeWEr5oB0Pp8/6/aDUZ4xYw1JpqpVJWP/zitMIfH8dkHnmMRUTONIRvhJAJ7/qSDoaH4+eUa9fBXgGddfTvwKmZw2UIJZkrUg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=JSO6cXP5; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99C73C433C7; Tue, 13 Feb 2024 00:22:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1707783761; bh=dh8OhucC/BjL6q7utBgUUWgc9gRocKPR4IaU13t7+Vg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JSO6cXP5xpGK7DMMi5qzubLOEWqyvPDNtvVs/s89OcOtb6wawUcb8kcNbAiUxbPNB IPFQIBvNNlscOZCRuZdjR+SiB6qOF8tuHjn8IIZR5GHaJWOT7mS/tp49rcOieLAFeA 2MAbfJ1kE94+vW7quu7ZuSagcaPc6dN6qaL3hKA2f9N3ZiLKc/rNW6S+BHB3mjl22x aeHK+iwbEhdC2GMyZDm7KmCf+RsTAPo3SGv3iINl6VdnynqX8Cm7xabHNErUR1e80U OuG1IWS80QERTx/oikRwnJhn9ubh0xXn7+xIT4Jv85AyxZBFPKvXCh0cvobbZhrgY7 J8xz2Yff1fnew== From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Konstantin Komarov , Sasha Levin , ntfs3@lists.linux.dev Subject: [PATCH AUTOSEL 6.1 04/28] fs/ntfs3: Print warning while fixing hard links count Date: Mon, 12 Feb 2024 19:22:02 -0500 Message-ID: <20240213002235.671934-4-sashal@kernel.org> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240213002235.671934-1-sashal@kernel.org> References: <20240213002235.671934-1-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore X-stable-base: Linux 6.1.77 Content-Transfer-Encoding: 8bit From: Konstantin Komarov [ Upstream commit 85ba2a75faee759809a7e43b4c103ac59bac1026 ] Signed-off-by: Konstantin Komarov Signed-off-by: Sasha Levin --- 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 dc937089a464..42dd9fdaf415 100644 --- a/fs/ntfs3/inode.c +++ b/fs/ntfs3/inode.c @@ -402,7 +402,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; } @@ -417,6 +416,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; } -- 2.43.0