Received: by 10.213.65.68 with SMTP id h4csp188813imn; Mon, 26 Mar 2018 18:52:17 -0700 (PDT) X-Google-Smtp-Source: AG47ELtwoOpoTKJj+ydlaTNvJ7q7h8rgxf4hf8CsZpzugwi8dmj2ZMkf9WjYEG68ZcKBatOE9XPs X-Received: by 2002:a17:902:51ce:: with SMTP id y72-v6mr42346110plh.157.1522115537164; Mon, 26 Mar 2018 18:52:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522115537; cv=none; d=google.com; s=arc-20160816; b=TKEchN0GqAgwyf5+3lLe6TqLiw3EWZxeSr5suZcs1kJh81WDNVHZJfbVpqL7IUdXe1 VSKmYf0C17sb8sjVImPJGq9tLVaA67Wso/6MnUebiz3QLhTBkvX9PaRjR7q9xN1HXmn1 1zgAev7tRu93V2QXkOSIarWvlseeqtXHF4pBf8VMM9bFjRbQG1RWZXAHgDR3+w4SGn8p Gv6tZpy6lwefBF54XYaUhvRHQ2LkNY5W6ILOmsvw6CYAE9kZYbUFVd8OHL4NyMskY9is uiqhxHd59hAK8zhwyUJkG2BCiJVyWOblsHUFqx9YfnT+rMYKPSphVuguc3bUdsdM6OXX XNzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:date:message-id:subject:from:cc:to :arc-authentication-results; bh=hbP0RcwkLraySIM6LAlQR8IIWfwJhhzTuva+364z9hE=; b=ZTjVGpSFysQJ6E8WTJ5hsSOGWJNbueOQ1TMajdlnJnIzYHV6CWEa4zn6XmOJyp8mDO +erb4S6JEZPPh0zNdL/S6BpKELRrgDf7nnYKzyHlFjYlz3QiTSXTwJXVQTn2rM8TbPIJ r9/m6crxUcngAqK98HD9Zx47YXy0CUim9e3/YM4o0BXimQ9/x9ixRBxtHYTTBA6xlPPR LQpovAv+6DmTVlrUkXiwKeTbzZ7/5YNgxPzeOYWbBQheEJa4SVf/a5mspwty5gsRVhcd L5b5VEak8L6l4wofaLyhpsEI2A4LtteUwjREemIO5O9Z5HhpZaKNRAKEdI3Zp3WnvZfC IMCw== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n16-v6si110060pll.669.2018.03.26.18.52.03; Mon, 26 Mar 2018 18:52:17 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752190AbeC0BvA (ORCPT + 99 others); Mon, 26 Mar 2018 21:51:00 -0400 Received: from szxga06-in.huawei.com ([45.249.212.32]:40555 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1751714AbeC0Bu7 (ORCPT ); Mon, 26 Mar 2018 21:50:59 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id 51D27DC552D1D; Tue, 27 Mar 2018 09:50:55 +0800 (CST) Received: from [127.0.0.1] (10.177.16.168) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.361.1; Tue, 27 Mar 2018 09:50:52 +0800 To: Andrew Morton , Eric Van Hensbergen , Ron Minnich , Latchesar Ionkov CC: , , Greg Kurz From: jiangyiwen Subject: [V9fs-developer] [PATCH] fs/9p: don't set SB_NOATIME by default Message-ID: <5AB9A377.6080906@huawei.com> Date: Tue, 27 Mar 2018 09:50:47 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.177.16.168] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org User use some syscall, for example mmap(v9fs_file_mmap), it will not update atime even if user's mnt_flags without MNT_NOATIME, because v9fs default set SB_NOATIME in v9fs_set_super. For supporting access time is updated when user mount with relatime, we should not set SB_NOATIME by default. Signed-off-by: Yiwen Jiang Reviewed-by: Greg Kurz --- fs/9p/vfs_super.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/9p/vfs_super.c b/fs/9p/vfs_super.c index af03c2a..48ce504 100644 --- a/fs/9p/vfs_super.c +++ b/fs/9p/vfs_super.c @@ -94,7 +94,7 @@ static int v9fs_set_super(struct super_block *s, void *data) if (v9ses->cache) sb->s_bdi->ra_pages = (VM_MAX_READAHEAD * 1024)/PAGE_SIZE; - sb->s_flags |= SB_ACTIVE | SB_DIRSYNC | SB_NOATIME; + sb->s_flags |= SB_ACTIVE | SB_DIRSYNC; if (!v9ses->cache) sb->s_flags |= SB_SYNCHRONOUS; -- 1.8.3.1