Received: by 2002:a05:6359:6284:b0:131:369:b2a3 with SMTP id se4csp4669272rwb; Tue, 8 Aug 2023 11:50:06 -0700 (PDT) X-Google-Smtp-Source: AGHT+IH5p6WRk+dKNTkLXBPDoi2+YK3N/R6dLLwvBaVBAl/oW/d5PLHE6YD3i/6djzIAfT6+iTNT X-Received: by 2002:a17:90a:5b18:b0:268:2523:652c with SMTP id o24-20020a17090a5b1800b002682523652cmr380028pji.31.1691520606249; Tue, 08 Aug 2023 11:50:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1691520606; cv=none; d=google.com; s=arc-20160816; b=OYJILCSQsXxT0kqScRFl2LJN0W8upwdoAwCrSks95tGAwcgOCp5Jnwc37295Nag5VM RqWcR4nxulRZgFQ8AHUADmXUec4uCX7/0pzsC63QhQVsGvqIj7RYmSasDDVnMmHoSfAX 8mbUqvyeyCrULV6+Nf80RDqakAt6MynvnB7f8R650CAymGlvFoDsMXlXJBiLYDssbAxQ RYaNlCA5vGmjrde1xqauX9DjyAtm++dBIABXE9aA7GRSfReqoHZK1vo5y89V1ArrYsdO sBQtD5gNJtHpppvoy7PP9WGgzQsS2xf8t8T5rS7pY9FYBx0weYYVR2CvzOb7zA68Cb87 Hp1w== 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=wcZ0MvDWAvHGz+Tvz5BQspV1+Y90atrQ/21gTPDSJ5A=; fh=VDS1Ji1Jg94b8HYa+h+b069MTX7Y1JPYBeWAMaZH+VI=; b=nJyb0ttiPyAQbw1LL7T/C2vKNdFVYTNoQgf4pYfhqQ7byyM8feEuFGqMBh4usfu5oK zvWLxqk3XiWvIoqhS6iGBD0X3rMJkoyd9DxbgEy15JxUFKGYCGHyCCVjOjpKy2H0SB4D z2wo+sKsUh8MAr2yo2BeEFnjTkP4zjIGUVLCnSGk9anv/5HZxNahjXerGpIOl1oJ3PiL mDHC6Gver6nE96mapKksDys668yva4yps2l3z5TWXiBJQPADwt8+bBAGBWpC4TZLUG1s kswRPeHe6woZPeacz2FcMYzDFGwt0aws5xYBZMrjTIA+2k9mDJ+BvS1GNSGe68PyK6HV f8RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=ltvgN98j; dkim=neutral (no key) header.i=@suse.cz header.b=NtHl8v8f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-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 ml22-20020a17090b361600b0026577f28dbcsi5686973pjb.45.2023.08.08.11.49.54; Tue, 08 Aug 2023 11:50:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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=ltvgN98j; dkim=neutral (no key) header.i=@suse.cz header.b=NtHl8v8f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234722AbjHHRbE (ORCPT + 99 others); Tue, 8 Aug 2023 13:31:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58658 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234574AbjHHRaX (ORCPT ); Tue, 8 Aug 2023 13:30:23 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 44D95217B9; Tue, 8 Aug 2023 09:13:11 -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-out1.suse.de (Postfix) with ESMTPS id A7B1922468; Tue, 8 Aug 2023 09:05:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1691485527; 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=wcZ0MvDWAvHGz+Tvz5BQspV1+Y90atrQ/21gTPDSJ5A=; b=ltvgN98jUPLfVGzwkX2IMCxL1+gt7mU2eMGWerKExKXl9rFxELcQOOu6LDPvkVgELBTWMM RPR+CvNDbp+v8nhbcYMs5NsoZ+s9OQ/UvQVEgQ88doFw/btLczZrQg2i1eZV1+ZBjvbv6d v//UiKTWiNGL8LuYIfEW5snVicPsNCw= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1691485527; 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=wcZ0MvDWAvHGz+Tvz5BQspV1+Y90atrQ/21gTPDSJ5A=; b=NtHl8v8fs0QRleiCInWaMqHlp3B+YiNNeUD28RUprosc+RMkGA1oFQ5OJqyi3S1c2mho42 UGYfjYfTqGY9zJAQ== 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 903E5139E9; Tue, 8 Aug 2023 09:05:27 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id RgEgI1cF0mRWDgAAMHmgww (envelope-from ); Tue, 08 Aug 2023 09:05:27 +0000 Received: by quack3.suse.cz (Postfix, from userid 1000) id 215FCA0769; Tue, 8 Aug 2023 11:05:27 +0200 (CEST) Date: Tue, 8 Aug 2023 11:05:27 +0200 From: Jan Kara To: Jeff Layton Cc: Alexander Viro , Christian Brauner , 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 , 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 , Amir Goldstein , "Darrick J. Wong" , Benjamin Coddington , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, v9fs@lists.linux.dev, 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-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-unionfs@vger.kernel.org, linux-xfs@vger.kernel.org Subject: Re: [PATCH v7 01/13] fs: remove silly warning from current_time Message-ID: <20230808090527.nvn6vd5wdw4o5b2m@quack3> References: <20230807-mgctime-v7-0-d1dec143a704@kernel.org> <20230807-mgctime-v7-1-d1dec143a704@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230807-mgctime-v7-1-d1dec143a704@kernel.org> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,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-kernel@vger.kernel.org On Mon 07-08-23 15:38:32, Jeff Layton wrote: > An inode with no superblock? Unpossible! > > Signed-off-by: Jeff Layton Looks good. Feel free to add: Reviewed-by: Jan Kara Honza > --- > fs/inode.c | 6 ------ > 1 file changed, 6 deletions(-) > > diff --git a/fs/inode.c b/fs/inode.c > index d4ab92233062..3fc251bfaf73 100644 > --- a/fs/inode.c > +++ b/fs/inode.c > @@ -2495,12 +2495,6 @@ struct timespec64 current_time(struct inode *inode) > struct timespec64 now; > > ktime_get_coarse_real_ts64(&now); > - > - if (unlikely(!inode->i_sb)) { > - WARN(1, "current_time() called with uninitialized super_block in the inode"); > - return now; > - } > - > return timestamp_truncate(now, inode); > } > EXPORT_SYMBOL(current_time); > > -- > 2.41.0 > -- Jan Kara SUSE Labs, CR