Received: by 10.223.176.5 with SMTP id f5csp296265wra; Thu, 8 Feb 2018 22:14:37 -0800 (PST) X-Google-Smtp-Source: AH8x227+PQcK7nPNPCErvJm6VYbUIAK6q9U2fX0irB6pTs27QEvrdOois2T4lyxtdVNk9ibudNfr X-Received: by 10.101.69.141 with SMTP id o13mr1414317pgq.394.1518156877590; Thu, 08 Feb 2018 22:14:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518156877; cv=none; d=google.com; s=arc-20160816; b=E2AcZuJ6WUQifWG0+vxq8JWUS9qVCLnq+0EHO2+l+w+lwDSlHW6XdTml6370wZUbwQ +FJKsH2XvhZsXbQaQgXrH5eBRNP9xqaOBuGYSkhE4tM6h41GNePdfLzdjvdCM4VdNRtt qRbTNVZtC8k+dtSlQkIQC2qpiOs0UVpmPemEXNFsrkX4asl1Q/fSW3mXFgGg78qu6hFj pDdIeCLz5EcqhIWmuqZ4c5+wJlgA54WXnPZxFnoL587NAjobTLt6JyZYNz81jj4F3EVY Ma2j4Cy1nKMmJ5mtBMNyeyMMN91e18oBVJ5yWQe8zB06XDhQ6s9SaXVOAzTUncfWCScS E81Q== 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:cc:to:subject:from :arc-authentication-results; bh=psqxKl0tBhHsTibCs4Vg/6pmPtXPwBT0qHZxioAAk1U=; b=B5lCeTy+Fam+fXXaX3WEFpcrnUBpqGk/KsaIIwhTD4FqOUL2Y3QPbDnf3CwXuI3ZQS t1hoz2mnl86YBHjboA9IovQNrUJoX4IKBIT8Vc9CpbN0pT2D68ZuA0bjJSMsAFl9Mu34 snvZLIkHgK3x8XR0p8b/SwRf7Wzj9nKryJoyhH2+7q2q7U+2WWK+Ke9yEH2eROGhPLzm bk5ZEEw//1niKXjdxL8oJBk1t7I43IjgZBCPWstrWOiHLMK/RUp8Se5TJbmj+QyMAfqW VOy/PSm2mMs2Lp79XU6/lkIwz9WDo53dzY/nkSSQjTF9qAFFzfxZFmaCvKz1HWAXqQ3K QWsA== 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 z14-v6si1079133plo.668.2018.02.08.22.14.23; Thu, 08 Feb 2018 22:14:37 -0800 (PST) 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 S1751034AbeBIGNp (ORCPT + 99 others); Fri, 9 Feb 2018 01:13:45 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:57356 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750828AbeBIGNo (ORCPT ); Fri, 9 Feb 2018 01:13:44 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 315FAF84F419F; Fri, 9 Feb 2018 14:13:31 +0800 (CST) Received: from [127.0.0.1] (10.177.16.168) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.361.1; Fri, 9 Feb 2018 14:13:29 +0800 From: jiangyiwen Subject: [V9fs-developer] [PATCH] fs/9p: don't set SB_NOATIME by default To: CC: Eric Van Hensbergen , Ron Minnich , Latchesar Ionkov , , Message-ID: <5A7D3C08.7020309@huawei.com> Date: Fri, 9 Feb 2018 14:13:28 +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 have 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 clear SB_NOATIME by default. Signed-off-by: Yiwen Jiang --- 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