Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp688926pxb; Thu, 23 Sep 2021 08:39:56 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy8hhWKkA0zK6grzbznmSlUkGAfJim6A9FvyDwy4cC2hJsj4ROpV1oZBGDWkz7rwevuO8pf X-Received: by 2002:a05:6e02:12c9:: with SMTP id i9mr4165374ilm.20.1632411596193; Thu, 23 Sep 2021 08:39:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1632411596; cv=none; d=google.com; s=arc-20160816; b=cKDG/VApSx8NmTqa4tgd/kE8J5CcSsaLXBq9IvgR1JWQM8CQs2vqlSJcSM+Cqb5hhL kS6S20RqohFnPcpU+eiHz+UhbhS5WRu0dwKv5QpOr0mEEzGxDxMG64n9AKCFLegtAxPN eTW3yVAftM0V/XXpw4WkNJryjynOfpLzt8zgwnDKB8hSoHuwE+QfhCT/5NQQkPxPPHbn AeQz0A7fApGAm/FsJpCimXpE8TK/Z7J/Qoq+cZbD2pNAxrSLph0S8SQtSECDDSTsM8Lc SV7Zv+gARTjiG0d0Pny5zEXYr4Waeaz77h3YvSneaHFOFR0d2RzAh6vSL8Kos39xDBeb /Kfg== 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=VNKx8KU7VfoNLnbUNfKMw8rrZuo+BUroDU6s4rSXPiY=; b=rJMQNaWX+BrpkGXop8mrv8RYWH62v3RssT9MEyJiPBgynQwvFuOxaMxajZhw63dQjY aqNbY3AFPanjA/n0G79DBr0W0j8eVDLT4IhkIIO3yeiXBOIoN684aZfWV4rHsjtPcln0 picGbo4HpMK1zdQZxqPl3IeVNGe/TZUCuadXUGA3RokXT4rgyqqnRnNtCqJZjUk/L/92 QbkUHCcyU2scxjdsIgygxfRGszjtyV2pVWxVZK5npKeNjQhDRM0R+DDE8hiJ/+iT0DUv L3BO+n/emiOCh34x5zCpwrwygsGVe77klGyIeRPHkzr7KFoIx23FnX7R2O9enCHyBbN0 g9mA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=bRLO7OuL; 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 l126si5979213ioa.77.2021.09.23.08.39.43; Thu, 23 Sep 2021 08:39:56 -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=bRLO7OuL; 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 S242014AbhIWPkO (ORCPT + 99 others); Thu, 23 Sep 2021 11:40:14 -0400 Received: from relaydlg-01.paragon-software.com ([81.5.88.159]:38835 "EHLO relaydlg-01.paragon-software.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233143AbhIWPkN (ORCPT ); Thu, 23 Sep 2021 11:40:13 -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 74F1082239; Thu, 23 Sep 2021 18:38:40 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1632411520; bh=VNKx8KU7VfoNLnbUNfKMw8rrZuo+BUroDU6s4rSXPiY=; h=Date:To:CC:From:Subject; b=bRLO7OuLumhQwR6YcEgUFb1N6ofZdiZZR8RhsY0gv3yhan9k7Z8Cl7VjdjVAzjzuT u9Ss6r2SbXxxNfoW+trG9S26+xDOaYymeQbDvFy+yBShPls1AVGF9uHo1m2Or2mcKK WfSQ1Uo30GafFW9VtYC2IBFFMq7OGibs+n/Qdkrg= Received: from [192.168.211.73] (192.168.211.73) 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; Thu, 23 Sep 2021 18:38:40 +0300 Message-ID: Date: Thu, 23 Sep 2021 18:38:39 +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/6] fs/ntfs3: Refactor locking in inode_operations Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.211.73] 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 Speed up work with dir lock. Theoretically in successful cases those locks aren't needed at all. But proving the same for error cases is difficult. So instead of removing them we just move them. V2: added patch, that fixes logical error in ntfs_create_inode Konstantin Komarov (6): fs/ntfs3: Fix logical error in ntfs_create_inode fs/ntfs3: Move ni_lock_dir and ni_unlock into ntfs_create_inode fs/ntfs3: Refactor ntfs_get_acl_ex for better readability fs/ntfs3: Pass flags to ntfs_set_ea in ntfs_set_acl_ex fs/ntfs3: Change posix_acl_equiv_mode to posix_acl_update_mode fs/ntfs3: Refactoring lock in ntfs_init_acl fs/ntfs3/inode.c | 19 ++++++++--- fs/ntfs3/namei.c | 20 ----------- fs/ntfs3/xattr.c | 88 +++++++++++++++++------------------------------- 3 files changed, 46 insertions(+), 81 deletions(-) -- 2.33.0