Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp5089831pxb; Tue, 28 Sep 2021 10:17:51 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxKYxX3EEGtheJHQTQQVYlKJ2nmpm/LUrNgtpVkhsgPi4qGfwAyWtzKQWa0Nqi8qcJjtVvB X-Received: by 2002:a63:b147:: with SMTP id g7mr5734808pgp.478.1632849471531; Tue, 28 Sep 2021 10:17:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632849471; cv=none; d=google.com; s=arc-20160816; b=xPK0cUbEKYh7lUoNIdTMF98fvQ6NOhp2P3lyZzyr7ifSU60a4PJlpL2VcQzvzx8Hym rpIGApxgYV//dPEZXZ9KYFk55rAnJWjlfL2R0kXjrLqpTqdGF9TkzykV1Q3KyR3wV7Md 9ECsEd8j3wKZhvIakFYXpjxoNeK4ZywqDfMIZJLN7eVHsU3PuYum/PsSYZq9Jfw/su9Q OiQrUsVv2yEPaKljEI8+44Q/Ga8Uhfg4/Q+gmpJXk5/HeD0VnlUe78AM4Xae0YySMxZT ZpZ42gfQCK1M4G+8whcVNqiFftEGDwO9jVzSYAYMNX2aLXdEwfH64BEf9sF8y+QoMVtv +rew== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:subject:from:cc:to :content-language:user-agent:mime-version:date:message-id :dkim-signature; bh=q9FQW1NyPX+/PEIXZoUtfUROqa82bC7XxrBaUVEa47g=; b=gZBIi9pVVBuHdMGi7QIeh2zb7pc3jEjH5f+7DMw9wMiolX2N9c5UPHvxR34H7Z+2yj 7/m5GLCcx29+DtIQmFm+JfPbvC7WMuO0RczuRivfStYmDkhqlzEtSaAKZLXmYYJLpbpM VBcw4Gm59Jg63QhgtS37tNpRIvbzGe+XN7ar7WPUObszypbKQO1zobbWjMlz1N2jkQgh LbDuZcgK/CS80who+X5GR2dgBoNX1Keo5oNHPDdXnp/TsT/xzywM/MMlpiqyNTtIhkXr MMCaP6BsprBE6JYIH8SVcC2m5PiE0H45FerBZ+qspYatbphthtLR/GvYU/nWfZuVlEIX Ob9g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=Jn1HIwnc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=paragon-software.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y6si23647279pfq.305.2021.09.28.10.17.33; Tue, 28 Sep 2021 10:17:51 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=Jn1HIwnc; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S241959AbhI1RSF (ORCPT + 99 others); Tue, 28 Sep 2021 13:18:05 -0400 Received: from relaydlg-01.paragon-software.com ([81.5.88.159]:51360 "EHLO relaydlg-01.paragon-software.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241935AbhI1RSE (ORCPT ); Tue, 28 Sep 2021 13:18:04 -0400 Received: from dlg2.mail.paragon-software.com (vdlg-exch-02.paragon-software.com [172.30.1.105]) by relaydlg-01.paragon-software.com (Postfix) with ESMTPS id D6C7F81FE6; Tue, 28 Sep 2021 20:16:22 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1632849382; bh=q9FQW1NyPX+/PEIXZoUtfUROqa82bC7XxrBaUVEa47g=; h=Date:To:CC:From:Subject; b=Jn1HIwncXV3i6cPUwtI4YlFT5xHagzc+ohiRu/AKMhvQcqH6j8xiU+xdW+x3xCZFv 7vn0Rgc/SsFBA19DWM1kcnpM5MGOQz+W5duFqUHtYDs77IW6exfr7C0CEXiFJy1vB5 OpOV6NnZinexR4bStw6PDfJ69+u47eD1/mK+wwvs= Received: from [192.168.211.85] (192.168.211.85) 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.2176.2; Tue, 28 Sep 2021 20:16:22 +0300 Message-ID: Date: Tue, 28 Sep 2021 20:16:20 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.1.1 Content-Language: en-US To: CC: , , From: Konstantin Komarov Subject: [PATCH v2 0/3] fs/ntfs3: Refactoring of super.c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.211.85] X-ClientProxiedBy: vdlg-exch-02.paragon-software.com (172.30.1.105) To vdlg-exch-02.paragon-software.com (172.30.1.105) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix memory leak in ntfs_discard. Reject mount so we won't corrupt fs. Refactor ntfs_init_from_boot function. v2: Fixed wrong patch 1/3. Merged two changes to the same piece of code. Konstantin Komarov (3): fs/ntfs3: Fix memory leak if fill_super failed fs/ntfs3: Reject mount if boot's cluster size < media sector size fs/ntfs3: Refactoring of ntfs_init_from_boot fs/ntfs3/ntfs_fs.h | 2 -- fs/ntfs3/super.c | 36 +++++++++++++++++++++++++----------- 2 files changed, 25 insertions(+), 13 deletions(-) -- 2.33.0