Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp1844205pxb; Tue, 26 Oct 2021 17:38:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw4JsW0tTkxSqcQvRh21jkvtwSiRBjGJBMZsTwyEqQ2KKlt+6zz+NmbHLPXkF7eYWAe5B+V X-Received: by 2002:a05:6402:10da:: with SMTP id p26mr40871011edu.283.1635295094826; Tue, 26 Oct 2021 17:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635295094; cv=none; d=google.com; s=arc-20160816; b=BhAy5LRyvMLnwuetefLQ5xrghMyOXz6sWsZ7lGpe+oWjSD+a5bO5rZMF9HMUxB9hK9 CI6fVaWBK5k3TZb+9JOa6YHAR9fZixqMw5WlR8JKkQTk1+PMswpFrma2CkUjTfHacoRx W+Wen8MRnAE9YVqECHoFmxg144kuqAMqc6kJL8ux0ILtXQ/yJRUfelK+qdtT/EDNSKjE CEA4HN6wP9aocaN75rYNBC4ChVpaSX74M30hYA75KOjd3+EWvBXWiL/Nwpuljm03Z7uA YRx2IOnggyx4lUU0/EiekaLdLDqvqMD4WPSF9Q0v+UCuUDcLEJXKRYdMYulPt7ek1FHh 9cgA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:references :cc:to:from:content-language:subject:user-agent:mime-version:date :message-id:dkim-signature; bh=Svw6iDPddCZzmIZAdwnbtfsGGI8IUqRP1pf1ufWd3nA=; b=ur3RWgvcWpZ8O0tPdeuqXSRaQ2kRCMGHpv0x+9bz42Vldudf92TPNjXCr5rTRY1m0z JVozjhi/c1yAfvMW7hNTk9cc2rX25DJlAcfFvjZKJJr2099pGR4BrP3fXaQpHGoNAgF3 NTaWGhLYcIJu2+/Mp3G7u3nCzlbNiCbqR64pb9zZneSgu9bJSJI4akh27rE3J1MDv2So RNX42Vy7JD3FFZb36WZ/Gb0NsemOhjugxPXB9Elv8TcNSOulgw7u1mxy5ixp6SQP/KQE OLh17Sji1t/VfKLEFtzh3lCZH+3hgYwwFmbsel9ADXPwUPQavERHFUO/6AZOw6Mjsx5C FUXw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@paragon-software.com header.s=mail header.b=NtdGpRZW; 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 h12si4972795edb.400.2021.10.26.17.37.31; Tue, 26 Oct 2021 17:38:14 -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=NtdGpRZW; 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 S237474AbhJZQoR (ORCPT + 99 others); Tue, 26 Oct 2021 12:44:17 -0400 Received: from relaydlg-01.paragon-software.com ([81.5.88.159]:54214 "EHLO relaydlg-01.paragon-software.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234249AbhJZQoR (ORCPT ); Tue, 26 Oct 2021 12:44:17 -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 A6DFA82240; Tue, 26 Oct 2021 19:41:51 +0300 (MSK) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragon-software.com; s=mail; t=1635266511; bh=Svw6iDPddCZzmIZAdwnbtfsGGI8IUqRP1pf1ufWd3nA=; h=Date:Subject:From:To:CC:References:In-Reply-To; b=NtdGpRZWeCWC5QEuFRvLX3/tvEw093+v4xywGaZm3vGuv+8d9+rHI+WbGvfyTI1Ai eWkzPFSnabv0OPllITjG1CvE3zyGj6rY4y4NbrqJVlL8Ic9qgcJcigwuIGzVjeEgwk NsVYx+m8bF0FfRqaL/aqr236Kjyyk53kxXTHokgs= Received: from [192.168.211.149] (192.168.211.149) 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; Tue, 26 Oct 2021 19:41:51 +0300 Message-ID: Date: Tue, 26 Oct 2021 19:41:50 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Subject: [PATCH 3/4] fs/ntfs3: Update i_ctime when xattr is added Content-Language: en-US From: Konstantin Komarov To: CC: , , References: In-Reply-To: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.211.149] X-ClientProxiedBy: vobn-exch-01.paragon-software.com (172.30.72.13) To vdlg-exch-02.paragon-software.com (172.30.1.105) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ctime wasn't updated after setfacl command. This commit fixes xfstest generic/307 Fixes: be71b5cba2e6 ("fs/ntfs3: Add attrib operations") Signed-off-by: Konstantin Komarov --- fs/ntfs3/xattr.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fs/ntfs3/xattr.c b/fs/ntfs3/xattr.c index 3ccdb8c2ac0b..157b70aecb4f 100644 --- a/fs/ntfs3/xattr.c +++ b/fs/ntfs3/xattr.c @@ -992,6 +992,9 @@ static noinline int ntfs_setxattr(const struct xattr_handler *handler, err = ntfs_set_ea(inode, name, name_len, value, size, flags); out: + inode->i_ctime = current_time(inode); + mark_inode_dirty(inode); + return err; } -- 2.33.0