From patchwork Fri Oct 28 17:00:40 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Konstantin Komarov X-Patchwork-Id: 841 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp941976wru; Fri, 28 Oct 2022 10:04:55 -0700 (PDT) X-Google-Smtp-Source: AMsMyM5sO6/rauyUwWvpEFOxRVb31Rw36A6ckDrNp55UrxsmHHqh3EC+PYHPdAXeDIvKljneccqu X-Received: by 2002:a05:6402:1454:b0:461:9b5c:2fbc with SMTP id d20-20020a056402145400b004619b5c2fbcmr399050edx.276.1666976695395; Fri, 28 Oct 2022 10:04:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666976695; cv=none; d=google.com; s=arc-20160816; b=WNuaRI6Gfgv0uBo26RK+Kb0IxpURjPESReEqRaU1sPWVdITU0zGPcXvX8HkXZw7OwV k2ZEO2XFD3DK56PKwRg7ngQmj31prVtgGu1gEKcpzdhegZksrweO+l5YhlPFO7Z+PEm+ 499s8xpd0fP8JIpPYelQXbngZfHbIbwVNMetz1tQEixj95btErpTyg29QIh59K8ERrIE d3Xigb3asszIFKkKJGMTQnSXl6IUNKxHvNVkRrz2+uxpntOl9sItcBk3CVLMJbqQiao2 7WuHf6SWeHw3RY1MNJsygytg93tnoMvDuW/skMrfMvlQEP7jirnn9ZaeFXc/c39m/W+k 0jlw== 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=dcXBJqP5J7y8af2ml7/6zVJ1mbSL2vR83MREQmr2Fo4=; b=LJZKTyEc4h2oRTx0PM/dJsp5mGyBmYO36QOZ3CiOit0Vshq10uEftUdUf/+oOqJyKh oS6P1HDQrr1QGiT6ycoRYFGilGoGbgsH5TRSTiJQP/YieMMxWxB8vhyZIrsxn/sFHrfq ZeZWCHKiHXe9gAzjRpMRnHQnB6r9N9LMnZlwd7nz7MfVgdHaJFh0fuBWvXkSjJiMh9aM 4D5vcN3FiJOj64pyMcD+YqaZrOYEdEHKby9BwbCH0aG1fdArvjVp+A+Pi5T4OY0ytWnk ryTuP3nhHHzLtrA8Z1NCWvm3OuCDTTumZCYc0vvCHBrSAeetRvxojPac8rN9s/oobpUw NM6Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=Nkry+1za; dkim=pass header.i=@paragon-software.com header.s=mail header.b=a61ub4n7; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c7-20020aa7c747000000b00459dc4e4b7fsi4536397eds.143.2022.10.28.10.04.21; Fri, 28 Oct 2022 10:04:55 -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=Nkry+1za; dkim=pass header.i=@paragon-software.com header.s=mail header.b=a61ub4n7; 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 S230463AbiJ1RCz (ORCPT + 99 others); Fri, 28 Oct 2022 13:02:55 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42344 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230487AbiJ1RCT (ORCPT ); Fri, 28 Oct 2022 13:02:19 -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 5A83E107CDD; Fri, 28 Oct 2022 10:00:43 -0700 (PDT) Received: from relayfre-01.paragon-software.com (unknown [172.30.72.12]) by relayaws-01.paragon-software.com (Postfix) with ESMTPS id 8FA89218D; Fri, 28 Oct 2022 16:58:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1666976282; bh=dcXBJqP5J7y8af2ml7/6zVJ1mbSL2vR83MREQmr2Fo4=; h=Date:To:CC:From:Subject; b=Nkry+1za2eS5K3TDmAS6oj14shR/MZNT0XF8u9zF9m+DtGjARsYFN5hdgZmN6RNzL IkuAxuMtQoN0bUc1lFBNYjnjFMazCyIRFn+JJCsgQMvHoNms7HaqAi9eHIgch4nLZh cfXNtkzFrIuOlD6sYJH1guqwuZvzuQNemLXYcph0= 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 83EC8DD; Fri, 28 Oct 2022 17:00:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1666976441; bh=dcXBJqP5J7y8af2ml7/6zVJ1mbSL2vR83MREQmr2Fo4=; h=Date:To:CC:From:Subject; b=a61ub4n7+duuS061L8SfOxG51d4ioIvVEfzk+81yhrb/CoCPxL5jTTrfRC+OU83DG ZnY8l7awLkOapAt8/HBFZBSSxQZQFc6VIvIamZ2dNDU66sVzOl0iCYKqv1WFle38Eb 0iY4HTCnQZ8DGe0u6YBGzskl2dfR1R869CQOMzqU= 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, 28 Oct 2022 20:00:41 +0300 Message-ID: Date: Fri, 28 Oct 2022 20:00:40 +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 00/14] fs/ntfs3: Additional bugfix and refactoring 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 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 X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1747951755373331235?= X-GMAIL-MSGID: =?utf-8?q?1747951755373331235?= Second part of various fixes and refactoring for ntfs3. Konstantin Komarov (14): fs/ntfs3: Fixing work with sparse clusters fs/ntfs3: Change new sparse cluster processing fs/ntfs3: Fix wrong indentations fs/ntfs3: atomic_open implementation fs/ntfs3: Fixing wrong logic in attr_set_size and ntfs_fallocate fs/ntfs3: Changing locking in ntfs_rename fs/ntfs3: Restore correct state after ENOSPC in attr_data_get_block fs/ntfs3: Correct ntfs_check_for_free_space fs/ntfs3: Check fields while reading fs/ntfs3: Fix incorrect if in ntfs_set_acl_ex fs/ntfs3: Use ALIGN kernel macro fs/ntfs3: Fix wrong if in hdr_first_de fs/ntfs3: Improve checking of bad clusters fs/ntfs3: Make if more readable fs/ntfs3/attrib.c | 338 +++++++++++++++++++++++++++++---------------- fs/ntfs3/bitmap.c | 38 +++++ fs/ntfs3/file.c | 203 ++++++++------------------- fs/ntfs3/frecord.c | 2 +- fs/ntfs3/fslog.c | 3 +- fs/ntfs3/fsntfs.c | 35 ++++- fs/ntfs3/index.c | 105 ++++++++++++-- fs/ntfs3/inode.c | 86 +++++++----- fs/ntfs3/namei.c | 104 ++++++++++++++ fs/ntfs3/ntfs.h | 6 +- fs/ntfs3/ntfs_fs.h | 22 ++- fs/ntfs3/record.c | 5 +- fs/ntfs3/run.c | 28 +--- fs/ntfs3/super.c | 64 +++++---- fs/ntfs3/xattr.c | 116 ++++++++++------ 15 files changed, 737 insertions(+), 418 deletions(-)