Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp3319216imm; Fri, 19 Oct 2018 08:40:52 -0700 (PDT) X-Google-Smtp-Source: ACcGV63OKnyOdMdT+7MCJtUv08pc0VVwZcuNdhKx5h/HvNHMxJM3tLyDcdzMXZO2TNLOkaNGpEVR X-Received: by 2002:a17:902:2de4:: with SMTP id p91-v6mr34089322plb.148.1539963652885; Fri, 19 Oct 2018 08:40:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1539963652; cv=none; d=google.com; s=arc-20160816; b=CjQLzcVW9sysT20gkfiLU2DR4BlRkpjDWlnyrJ+/O+ihjLlVP9OoHgJEGbNdxLi5k5 Tw7Ofjyap4Jx8qtqHdr1FmnDM92wJf/J98pjXz0wZM71peQZ8YynRrviC0/s1uXi/p6e 4AC6ylW/sH3tsAD2Zn2LI5Q1MFopIJVMKr7m3DIb5VT1GrXIp9+i+Q5VLGXv9sSZPXIn znzc+v20ohzoimAJDgJbkJB301rB5BeLnO0ynMp+waKf9eDg2eh+iZZRLGpSF6sXPORe znLsD8GPpiDS/R9XWGwgWUpxLDlYvXVCOFQOFarh52K5afLLYjt/9OR43OGhle8vEN5k Rj1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:content-id:mime-version :subject:cc:to:references:in-reply-to:from:organization; bh=9dq7MNfA0u5118wIPtjO03nNO3wrfbq1rEvyNgRZXmA=; b=m5mhPPR5B/eg4eZZb9k1ZhrNMryVYoP3vTn5rkrsh6DhV2cXYuJZ2ZszvrBDpKQ1D4 psV9PXAV1YQOiTDoDoHn9F6kQaOHgiQz3xiSPMMlNRapnBdkeqPWAR7oiHuFWpFSqPw7 hVedguHWIqpkLH463gwJO1Y2vQx3N0yw98jYaF9zlTueH8xhpeV6hcE0NaH1Xe51p0+c c8IPk2C+gLNQMQMhunzKYTe0bMNfGbIj+AfflKL51c+CUl4SwCbU5BEWZ+YQXI6ExqJ7 hrJCYt6UvcbgDTUVL1j8dyuru348gpGy5UajH+UhhSa4bpGK38QPA5HER0fFl2KE7O5J H7gw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y18-v6si24580420plp.61.2018.10.19.08.40.36; Fri, 19 Oct 2018 08:40:52 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727329AbeJSXqu (ORCPT + 99 others); Fri, 19 Oct 2018 19:46:50 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47224 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726702AbeJSXqu (ORCPT ); Fri, 19 Oct 2018 19:46:50 -0400 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 216393078AAF; Fri, 19 Oct 2018 15:40:13 +0000 (UTC) Received: from warthog.procyon.org.uk (ovpn-120-250.rdu2.redhat.com [10.10.120.250]) by smtp.corp.redhat.com (Postfix) with ESMTP id 25BBA56D7B; Fri, 19 Oct 2018 15:40:10 +0000 (UTC) Organization: Red Hat UK Ltd. Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod Street, Windsor, Berkshire, SI4 1TE, United Kingdom. Registered in England and Wales under Company Registration No. 3798903 From: David Howells In-Reply-To: <20181019122049.27121-4-mszeredi@redhat.com> References: <20181019122049.27121-4-mszeredi@redhat.com> <20181019122049.27121-1-mszeredi@redhat.com> To: Miklos Szeredi Cc: dhowells@redhat.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, Michael Kerrisk , Andreas Dilger , Florian Weimer , Amir Goldstein Subject: Re: [PATCH v2 4/5] statx: don't clear STATX_ATIME on SB_RDONLY MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <16707.1539963610.1@warthog.procyon.org.uk> Date: Fri, 19 Oct 2018 16:40:10 +0100 Message-ID: <16708.1539963610@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.48]); Fri, 19 Oct 2018 15:40:13 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Miklos Szeredi wrote: > IS_NOATIME(inode) is defined as __IS_FLG(inode, SB_RDONLY|SB_NOATIME), so > generic_fillattr() will clear STATX_ATIME from the result_mask if the super > block is marked read only. > > This was probably not the intention, so fix to only clear STATX_ATIME if > the fs doesn't support atime at all. > > Signed-off-by: Miklos Szeredi Acked-by: David Howells