Received: by 2002:ad5:4acb:0:0:0:0:0 with SMTP id n11csp2753465imw; Wed, 6 Jul 2022 11:08:04 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vaEsun1PwIrpmGw7QZFxszBDrr9AbLtcWkNfHzL4KnJxZsnc+Lwzfbg2U1JzPJFgq18MI/ X-Received: by 2002:a05:6402:12c2:b0:43a:276b:e54d with SMTP id k2-20020a05640212c200b0043a276be54dmr7729672edx.278.1657130884188; Wed, 06 Jul 2022 11:08:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1657130884; cv=none; d=google.com; s=arc-20160816; b=nw9cHc2NSD2anT0Rh4SxB2M63QFZqLPpRFXo275Li5ib6PiLS4kh0cnqE+i/Wqd5xz Jedb7d/yAzbq8kcfCiSg8UiyymqFCaRIxw064EARjBLKvf38LuuYcV6MCl46rE6eJApR GdMx5zWe23XiLaqDNqlOBtqcdM0pLlLYi+/teYsh0XedJTe8k/6a33Dn7Qq9i3N6KUGa Te8I7fepDGAuSSRGMv6km19M6X2izmqO+hKjEc+8TZGWaQRb9/Ui6PFVdaTGYuze7iNl 88iNznNH6ThkN7kCf9RQ+IW+HuO2PgjmcP5MQWjGSu7WfNj9YKh4YHj5yLkI0EgEyoR5 wSdQ== 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=TxFto+XyTzzpSGbGmxKAFRhYC4BH97NHqyyBDVSPC14=; b=vrjKmC6zbT7S+Wgvtm2r9u4O8iOa0PYnWx/LBMHTxwM7iptLU+914ofLBrgcgKB8ge Z6orEJFkab3gisTTQ0OQgPACDynBdoCeJ7U3UNVatRnLy53ffHG1MLWGNGu5odaKzNuW YFktni8J4IsFT6mOGCuWjn+/WXH1pz7T7sHTZ3jTQHfY+KwRhcyT4aEdMtiOR8uD8tE/ 28DQ8TMLX2jeKV6pgN3RwGkPd6k5bBJ6eEM1Y/0u8b/LFP58VwVaVqoXjz0oct3fjXXz Ys76b2kfX9mV1jcXXxOFUh9Ph4A0TiOwra9cKeIlR6N5BBAhkO/0wCxMEHil+DFZ4N5j r4NA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=TOFZ47Jv; dkim=pass header.i=@paragon-software.com header.s=mail header.b=uV4GCvSL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg36-20020a170907972400b00717f2a08a31si3834787ejc.581.2022.07.06.11.07.37; Wed, 06 Jul 2022 11:08:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=TOFZ47Jv; dkim=pass header.i=@paragon-software.com header.s=mail header.b=uV4GCvSL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S233270AbiGFRba (ORCPT + 99 others); Wed, 6 Jul 2022 13:31:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51430 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232118AbiGFRb3 (ORCPT ); Wed, 6 Jul 2022 13:31:29 -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 651ED2408C; Wed, 6 Jul 2022 10:31:28 -0700 (PDT) Received: from relayfre-01.paragon-software.com (unknown [172.30.72.12]) by relayaws-01.paragon-software.com (Postfix) with ESMTPS id B5F7E1D06; Wed, 6 Jul 2022 17:30:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1657128624; bh=TxFto+XyTzzpSGbGmxKAFRhYC4BH97NHqyyBDVSPC14=; h=Date:To:CC:From:Subject; b=TOFZ47Jv8S/zLdB944jKEvgNjZK9KpdRFOCxO0fRq1KgkVW3bsQAKBne5Dvz4SI7w PHCwZpHnfn+7LL5gK8jvB3Vkp3HU27uRo8ttsiQQ4YEOqdFNGhqB3MX4mb0vOlpn8r uMQdNcwaP2KCpTXO8Rml66BrUgHaxchfd5YAE4Co= 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 6FC762133; Wed, 6 Jul 2022 17:31:26 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1657128686; bh=TxFto+XyTzzpSGbGmxKAFRhYC4BH97NHqyyBDVSPC14=; h=Date:To:CC:From:Subject; b=uV4GCvSLVBrIjnxduhw1q78x8XN27Sq7LdiktiX55UKoKVLD0vS+tlJnhckIbbo50 FFuE7Y57cZ9drf9mrz5hqY7bttGnqJpel8JftbvaAqmaAB/KLEg/0XX2FvIjcGQlE0 bGmwPfc5pq5bz714eF1eg9/ppjgMcoqNst+vBLKs= 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; Wed, 6 Jul 2022 20:31:26 +0300 Message-ID: Date: Wed, 6 Jul 2022 20:31:25 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Content-Language: en-US To: CC: , From: Konstantin Komarov Subject: [PATCH 0/2] fs/ntfs3: Refactoring and improving logic in run_pack Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [172.30.8.65] X-ClientProxiedBy: vdlg-exch-02.paragon-software.com (172.30.1.105) To vdlg-exch-02.paragon-software.com (172.30.1.105) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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 2 patches: - some comments and making function static; - improving speed of run_pack by checking runs in advance Konstantin Komarov (2): fs/ntfs3: Added comments to frecord functions fs/ntfs3: Check possible errors in run_pack in advance fs/ntfs3/bitmap.c | 3 +-- fs/ntfs3/frecord.c | 8 ++++---- fs/ntfs3/ntfs_fs.h | 1 - fs/ntfs3/run.c | 41 +++++++++++++++++++++++------------------ 4 files changed, 28 insertions(+), 25 deletions(-) -- 2.37.0