Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1376886rwo; Wed, 2 Aug 2023 13:04:19 -0700 (PDT) X-Google-Smtp-Source: APBJJlG0iUTI/FxH3y5SXnf5PUsNgJ0+akpd63LyG2D9gn8aPXsOMPoFzf3poG7EDVjmfPV/lwa9 X-Received: by 2002:a17:906:4e:b0:99b:d440:bf0c with SMTP id 14-20020a170906004e00b0099bd440bf0cmr5658932ejg.57.1691006659432; Wed, 02 Aug 2023 13:04:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691006659; cv=none; d=google.com; s=arc-20160816; b=YSBfmGioUZ8aIcBs//blbuOwjHy10ocUs5TK8LjBKrK4F8g1jo7bLA8TZCR32ay13y W8c6DeUV59ebmjGYDIJTZ6TllmEZWLzzGOZi6NT9xI1e6lFaMBCXMsQU8jtQLnR2S/di JElH1hd07/xR+CKdYhrYnpHVQAOtgIilIKngXFIQ7EPr8rIHEuN+VmVNmUEo1mLP6Txx vFgmGiYUz391w01r9xX3ZUysWdwET1cKGXdgZU9Vte4lpP/g+Gexvb9N9Wt1l3WOAsyw uaIiSe6KwQ+Nd0x/grIKtqmsKrLmmq1SsEa/aUojRoreeMvP0CLPVqNf1k8H64rvYF+L y2xw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=hej32SUQUL4wq5J7Js3JkDxcXNHsWA1VwQ0tN8Q+liI=; fh=csDU+nr5oB6Cwi/nIZ7ITv/0DkDW2LWn+PQJZTILIdE=; b=pD4HGagAvyRq1++u8eNbDytbHYlgN+gskCxs6Gfgt0r0cdN/mc+t3QgJb+Q8BpxLGa s0tFEyTZS8HKsui1vpsZHr04EHqoPNRgzP6A60fDrANFGSwAg98lm9OxveJe8KZAl/6Q /031s3L/wVhxtTHETELXa1FGkZpgP4eJWMil9VOKNjc6c9r7oprdM8eeUnBovS70XVYx ybcV2Vkypt5AES29yzb4AMHZOoboPMjHgxpq3sXqwQkcwD6tu9lniPnEfAURhZdAL1GK qlOS9Pu3ZIQ1Pg+Mlho9wAh3No8g7j3nVbJN16MPXaDZypB6Epmy1N2CousNWc9+PGth tzLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=UU3Tm3G6; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=NX6MG0fd; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j10-20020a170906410a00b0099bd7d056e9si10878242ejk.670.2023.08.02.13.03.55; Wed, 02 Aug 2023 13:04:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=UU3Tm3G6; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=NX6MG0fd; spf=pass (google.com: domain of linux-ext4-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-ext4-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232803AbjHBTht (ORCPT + 99 others); Wed, 2 Aug 2023 15:37:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44248 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231432AbjHBThr (ORCPT ); Wed, 2 Aug 2023 15:37:47 -0400 Received: from smtp-out2.suse.de (smtp-out2.suse.de [IPv6:2001:67c:2178:6::1d]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3CF0919B9; Wed, 2 Aug 2023 12:37:46 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id B56941F390; Wed, 2 Aug 2023 19:37:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1691005064; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hej32SUQUL4wq5J7Js3JkDxcXNHsWA1VwQ0tN8Q+liI=; b=UU3Tm3G6FjCiIipHgljAOgzfMZUvjNWSdsYJJguFbMcYv2scO9r7dcYFw5uMe9CC4Ad2Qy FUudTxu/2yivhdo/UZ5ja6uq7Y8xdfcD076CUCQw9ZWJtvqXlN1rOkolKNpsEKUGhppUdv mjpPxkrZ0aUM04DZ+ksCa0CPDmtuXDE= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1691005064; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=hej32SUQUL4wq5J7Js3JkDxcXNHsWA1VwQ0tN8Q+liI=; b=NX6MG0fdteUMkKXyD+4G36a30wQWbVAM4a8TsTJKCdzWP/Zccm95SaZr1qpnKF7LvVwXes KKCtU/rORrmysuAg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 9734013919; Wed, 2 Aug 2023 19:37:44 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id SvbwJIiwymQJHwAAMHmgww (envelope-from ); Wed, 02 Aug 2023 19:37:44 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id B8B08A076B; Wed, 2 Aug 2023 21:37:43 +0200 (CEST) Date: Wed, 2 Aug 2023 21:37:43 +0200 From: Jan Kara To: Jeff Layton Cc: Eric Van Hensbergen , Latchesar Ionkov , Dominique Martinet , Christian Schoenebeck , David Howells , Marc Dionne , Chris Mason , Josef Bacik , David Sterba , Xiubo Li , Ilya Dryomov , Jan Harkes , coda@cs.cmu.edu, Tyler Hicks , Gao Xiang , Chao Yu , Yue Hu , Jeffle Xu , Namjae Jeon , Sungjong Seo , Jan Kara , Theodore Ts'o , Andreas Dilger , Jaegeuk Kim , OGAWA Hirofumi , Miklos Szeredi , Bob Peterson , Andreas Gruenbacher , Greg Kroah-Hartman , Tejun Heo , Alexander Viro , Christian Brauner , Trond Myklebust , Anna Schumaker , Konstantin Komarov , Mark Fasheh , Joel Becker , Joseph Qi , Mike Marshall , Martin Brandenburg , Luis Chamberlain , Kees Cook , Iurii Zaikin , Steve French , Paulo Alcantara , Ronnie Sahlberg , Shyam Prasad N , Tom Talpey , Sergey Senozhatsky , Richard Weinberger , Hans de Goede , Hugh Dickins , Andrew Morton , "Darrick J. Wong" , Dave Chinner , Anthony Iliopoulos , v9fs@lists.linux.dev, linux-kernel@vger.kernel.org, linux-afs@lists.infradead.org, linux-btrfs@vger.kernel.org, ceph-devel@vger.kernel.org, codalist@coda.cs.cmu.edu, ecryptfs@vger.kernel.org, linux-erofs@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net, cluster-devel@redhat.com, linux-nfs@vger.kernel.org, ntfs3@lists.linux.dev, ocfs2-devel@lists.linux.dev, devel@lists.orangefs.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-mtd@lists.infradead.org, linux-mm@kvack.org, linux-xfs@vger.kernel.org Subject: Re: [PATCH v6 4/7] tmpfs: add support for multigrain timestamps Message-ID: <20230802193743.3nomcrox6pqhsc5x@quack3> References: <20230725-mgctime-v6-0-a794c2b7abca@kernel.org> <20230725-mgctime-v6-4-a794c2b7abca@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230725-mgctime-v6-4-a794c2b7abca@kernel.org> X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_SOFTFAIL,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-ext4@vger.kernel.org On Tue 25-07-23 10:58:17, Jeff Layton wrote: > Enable multigrain timestamps, which should ensure that there is an > apparent change to the timestamp whenever it has been written after > being actively observed via getattr. > > tmpfs only requires the FS_MGTIME flag. > > Signed-off-by: Jeff Layton Looks good. Feel free to add: Reviewed-by: Jan Kara Honza > --- > mm/shmem.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/mm/shmem.c b/mm/shmem.c > index 654d9a585820..b6019c905058 100644 > --- a/mm/shmem.c > +++ b/mm/shmem.c > @@ -4264,7 +4264,7 @@ static struct file_system_type shmem_fs_type = { > #endif > .kill_sb = kill_litter_super, > #ifdef CONFIG_SHMEM > - .fs_flags = FS_USERNS_MOUNT | FS_ALLOW_IDMAP, > + .fs_flags = FS_USERNS_MOUNT | FS_ALLOW_IDMAP | FS_MGTIME, > #else > .fs_flags = FS_USERNS_MOUNT, > #endif > > -- > 2.41.0 > -- Jan Kara SUSE Labs, CR