Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp2404290ioo; Sat, 28 May 2022 12:33:26 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwHuO7X2Un0ytWyv0COAuRZr2p3EB0opEaIFu6W1b8S5ijfApXPnoboN3tUA6C8mW/gS7+P X-Received: by 2002:a63:7c5:0:b0:3f5:d0e3:92bf with SMTP id 188-20020a6307c5000000b003f5d0e392bfmr42295958pgh.155.1653766406398; Sat, 28 May 2022 12:33:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653766406; cv=none; d=google.com; s=arc-20160816; b=0Rooixr6X97hkRvdY2xxhSUu3SDdaZbjsoYqmUE5/Nlg/sMVk8kjcoD2icPsXFAZla sDDZXTOmJ82h/zceaVQbyjXEJxtCK6q9JinjyuVGM/ahD99sEqyx+gIb9DefXYz+bgMp gkUhw/SggCx4nnll+SCYyLlUE7Df3T0VLqC2zfpOOkx0pLAZOJMEFmuWPZrBk7jpbm2S nT/zMw86Wt/M0dgjo2sj/Rg9ZRkj+J73snWB8YDlQ7yHAIXmfG4lZ4FZ/5tZcYlOF2qf KYBDCEo/YSamtfRB+R+4Edc78a+Mz8/GYNMe3pna2AVMgWUAeGs20XCwhzLubdjJyRa1 0eJA== 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:dkim-signature; bh=67MOUGxu0l15uGeKsZwN2GwiXwDwoeIuJxDyF86Rp9U=; b=eexf328oYyjghtW9ADSGCrQzb9/893JPKov474mioE7ReU6iCRP0yhtI6vIKDUMVJC rLqVyO5sQN7mYklsg9pb+z2h7wAQ+HLprc+NOEgqMRen8MAK60baFPopE3QlsKI2qquY J8RsCGKKZbH8IItDxpDc/LAKeFP/kdM4l0nRRkfttZosikT6ug0MffTU/P2PhotMGjGK JwPLVUkDji201zB9mWSYc+TcwonreahwzRX4DG3aYMSg+vWM9DYqKZp9nW9kQH+P1Xcz t3aG0lfo6/wjjMnawxV5flGna4WrH/3aXe/C/HZdrYFJUx0szcamIi6hkWYeesO2QgFb Hs/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=amn5Gupq; dkim=pass header.i=@paragon-software.com header.s=mail header.b=l00AhmcI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id mt2-20020a17090b230200b001e29c6b2ff5si2586186pjb.151.2022.05.28.12.33.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 12:33:26 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=amn5Gupq; dkim=pass header.i=@paragon-software.com header.s=mail header.b=l00AhmcI; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 3778559BA1; Sat, 28 May 2022 12:00:40 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240030AbiE0OP1 (ORCPT + 99 others); Fri, 27 May 2022 10:15:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52984 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234155AbiE0OP0 (ORCPT ); Fri, 27 May 2022 10:15:26 -0400 Received: from relayaws-01.paragon-software.com (relayaws-01.paragon-software.com [35.157.23.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 016144C79F for ; Fri, 27 May 2022 07:15:25 -0700 (PDT) Received: from relayfre-01.paragon-software.com (unknown [172.30.72.12]) by relayaws-01.paragon-software.com (Postfix) with ESMTPS id 419F22628; Fri, 27 May 2022 14:14:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1653660896; bh=67MOUGxu0l15uGeKsZwN2GwiXwDwoeIuJxDyF86Rp9U=; h=Date:To:CC:From:Subject; b=amn5GupqaKheBOh3foRQJg0q+Q1T9FL43e+1OorHlIYvnwEKZdYfJz2IRiwsJMNy8 krwm/TM5NwgnZBeB6neVxrONgK2rSWyKsPPtBGyVmniLxknEDEcRe3AaTLUjy8T877 bnVvNzxeRT7j5f9M7Q2gNAN+7Q7n1NhL2OAORC8g= 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 E352D220D; Fri, 27 May 2022 14:15:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1653660923; bh=67MOUGxu0l15uGeKsZwN2GwiXwDwoeIuJxDyF86Rp9U=; h=Date:To:CC:From:Subject; b=l00AhmcIDSaUNE9GoTj82KzDDZAvSu7h9onySYWhTC/m6KqTtvQGRPIxrYhDdIOCh uXcrk0VPAUB0wgUJJchpz9pZRNcxjKbw9MXq7dIJbxbKY/sACZkRp1OhFvWC01t6nS 3Cb4tQPCoBRxA9qy+gjbKHL8voDTmoY0y6IDW0QI= Received: from [172.30.8.65] (172.30.8.65) 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; Fri, 27 May 2022 17:15:23 +0300 Message-ID: <75a1215a-eda2-d0dc-b962-0334356eef7c@paragon-software.com> Date: Fri, 27 May 2022 17:15:23 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.0 Content-Language: en-US To: CC: , From: Almaz Alexandrovich Subject: [PATCH 0/3] fs/ntfs3: Refactoring and bugfix Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [172.30.8.65] 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=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org There are 3 commits. First - to improve code readability. Second - bugfix for xfstest (fixing wrong logic). Third - restructuring function logic so we can restore inode in some error cases. Konstantin Komarov (3): fs/ntfs3: Refactoring of indx_find function fs/ntfs3: Fix double free on remount fs/ntfs3: Refactor ni_try_remove_attr_list function fs/ntfs3/frecord.c | 49 ++++++++++++++++++++++++++++++++++------------ fs/ntfs3/index.c | 20 ++++++------------- fs/ntfs3/record.c | 5 ++--- fs/ntfs3/super.c | 8 ++++---- 4 files changed, 49 insertions(+), 33 deletions(-) -- 2.36.1