From patchwork Mon Sep 27 15:46:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konstantin Komarov X-Patchwork-Id: 12520251 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id E4A4EC433EF for ; Mon, 27 Sep 2021 15:46:22 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id BF4106109F for ; Mon, 27 Sep 2021 15:46:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235147AbhI0Pr7 (ORCPT ); Mon, 27 Sep 2021 11:47:59 -0400 Received: from relaydlg-01.paragon-software.com ([81.5.88.159]:44013 "EHLO relaydlg-01.paragon-software.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234500AbhI0Pr7 (ORCPT ); Mon, 27 Sep 2021 11:47:59 -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 B2740820E8; Mon, 27 Sep 2021 18:46:17 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1632757577; bh=NZiieUg67Jcn8Z9LRxeMObN8UOVIM8Yfq/fco7QwMXw=; h=Date:To:CC:From:Subject; b=O7P1qsBcuwdooTh5TFRUBqLNhvRfk/UyieUJDGOnNu5K+C2Dnq/vADNSDhwTbmd8P /xYkOMHBVGVDQq1JxIUHo66oiCKngPHI59jPKJ/PciZ/0BPH3HOv1MctqneZrprRCs Ubu8m1NTXohfMkod8dNn+bItPs+YQNSJMCWV2T50= Received: from [192.168.211.27] (192.168.211.27) 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; Mon, 27 Sep 2021 18:46:17 +0300 Message-ID: <16cbff75-f705-37cb-ad3f-43d433352f6b@paragon-software.com> Date: Mon, 27 Sep 2021 18:46:16 +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 0/3] fs/ntfs3: Refactoring of super.c X-Originating-IP: [192.168.211.27] 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-fsdevel@vger.kernel.org Fix memory leak in ntfs_discard. Reject mount so we won't corrupt fs. Refactor ntfs_init_from_boot function. 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(-)