Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp1423743lqp; Mon, 15 Apr 2024 06:21:08 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXGI0+c0vgTwxgMQ1JVruT4GD47Fjz+3ZIlwNcgIyOhCuSQmhLMS9XYu8YdsqPfwN2qQFEKEELbuacuatqh5Hi1+PtF6+NW8mHvlWQ4Wg== X-Google-Smtp-Source: AGHT+IEacBVAS1K4gD9EptvywyAvZ3l1bGnqkM8BftI7FWqo0nWK5tO/h3xnjEYPtQE5SV3FkRAY X-Received: by 2002:a67:ee82:0:b0:47a:1ca9:bd6f with SMTP id n2-20020a67ee82000000b0047a1ca9bd6fmr9476952vsp.12.1713187268307; Mon, 15 Apr 2024 06:21:08 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713187268; cv=pass; d=google.com; s=arc-20160816; b=ts5GvIHlAwBBaMZMCfLLrbpf4yKAxmcHlf1V2mcS20gIKKkbc/04AxVeiT/NEoaCG2 6sUXdWDOG7yLCNBMzNwc11leyiUsfBCUyRCumIjD+fqQ1uMOab+kNNhEvcOLl9dxpGIM 8cJwF1TJKWx6tfzv4vCVKuh7e5RqHVcSbw9pg/jcLLpgPZviP1w3b7PEX/f5nfchVNcb ygXKwKbjl6ELw0TkP/8HBTOvaq06UTodQdP+WFeCrb54fae+jn3o/TJjd4twXgnWujL6 GUqYdfx9z7myYJ3rJzxDzaaizrLeykRg9joJKzprGvxGJZwBCEW2j8g//AE3GV1aEWXm pERg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:content-id:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:subject:cc:to:references :in-reply-to:from:organization:dkim-signature; bh=+Ptvnzk1WkI8ph1+6mQtrYI+ziVGUn1LcaZGMSp9/x0=; fh=2/oUan3/SY46zlzXjlk1LikiWiQopetIpsetBnZdtnQ=; b=Ll09RF8BdYXZXfdz+Csq+7PC86jNjo0SjjLx+gAiai3ZlJ6WumKX1MiX4GL3WaExIe lm940ZXFXTfilFfAIyr2jrVQXlRWucvGVUt4YXQ8bHMgzflb+DWVjuC/nnOf5gjFN7HS wOnx54VY1ZKBmX0KUg2mnMT/keRdkFmfv5yVAVFqMTyE+nhDfaa7+lvVAXv0M0ooLppU Lb4wRzCwqPAmFaQ6+jgISzQOL+V4OXYMVMw3m4GnlEWoUg9XucHz/i36+OmAv9/xAX1I B2qpV91M4E1HYh4lBPaK3EMidIQ7DC12DY27lOUiVZFbFcwrY77meuQNhRWVBdDPrnYK ecSA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="BGo6Vqh/"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-145217-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145217-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id h26-20020a056102209a00b00476a126daacsi1323022vsr.731.2024.04.15.06.21.08 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Apr 2024 06:21:08 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-145217-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="BGo6Vqh/"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-145217-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-145217-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 07D3D1C21DB7 for ; Mon, 15 Apr 2024 13:21:08 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1858D129A7E; Mon, 15 Apr 2024 13:04:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="BGo6Vqh/" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 009961292D7 for ; Mon, 15 Apr 2024 13:04:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713186250; cv=none; b=djyQs5iXf4CA3FH0OAKwCmF7HeKJOmr6DCrtgi6VsOHbU1XVqiAOPxgq9zW/wvnoMVZvsfASZhHsrXmuk3M68WJVgPBI6H/n1kNJE0OGmBM+Wz9+rJiMaG7OkhBl5Du2YsEYTH1hL9Bz05qIcvkA7i4zuYSIHdQ/H4Z3El/E8eU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713186250; c=relaxed/simple; bh=9+bMhlfMhCt5MDDi+GnzheGMjkv5c6dD/+ouIDPqjHE=; h=From:In-Reply-To:References:To:Cc:Subject:MIME-Version: Content-Type:Date:Message-ID; b=gohkBL2SbQvwZ7nDjKWzUFIBYKN7iKe9NbjyYfj131BrIHK1n2GzBW7tJyTYJJFyywLbnUhJ8pabsUck9X3/5I4KYk7L11KbkUKPVoN0z1mGnEnEg0m0I4wpmBuJEU14HjXmGZyraNYse4scmvGjxoZnJ/p2fE5pp0dujUX1UDs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=BGo6Vqh/; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713186248; h=from:from:reply-to:subject:subject: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=+Ptvnzk1WkI8ph1+6mQtrYI+ziVGUn1LcaZGMSp9/x0=; b=BGo6Vqh/EPBz2MVjEwjHMTiPOm4mSa73rUjP4P5pFSbfc4g3mSfgcfNlkcPrUgltfmHO56 Y7FWmKanjNJugd1o3FZTddM3G1UpVAp94X995TzHCJncpEZsz1fdaRHwyTk4wupRFqNuQ5 WXLegkImII9qFBTgfsah24aAtLAnB5Y= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-438-A9VRT3_LO8mlZjn-t-8k9g-1; Mon, 15 Apr 2024 09:04:04 -0400 X-MC-Unique: A9VRT3_LO8mlZjn-t-8k9g-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id EE6CA2999B20; Mon, 15 Apr 2024 13:04:02 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.10]) by smtp.corp.redhat.com (Postfix) with ESMTP id 367FB492BC7; Mon, 15 Apr 2024 13:03:59 +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: <39de1e2ac2ae6a535e23faccd304d7c5459054a2.camel@kernel.org> References: <39de1e2ac2ae6a535e23faccd304d7c5459054a2.camel@kernel.org> <20240328163424.2781320-1-dhowells@redhat.com> <20240328163424.2781320-2-dhowells@redhat.com> To: Jeff Layton Cc: dhowells@redhat.com, Christian Brauner , Gao Xiang , Dominique Martinet , Matthew Wilcox , Steve French , Marc Dionne , Paulo Alcantara , Shyam Prasad N , Tom Talpey , Eric Van Hensbergen , Ilya Dryomov , netfs@lists.linux.dev, linux-cachefs@redhat.com, linux-afs@lists.infradead.org, linux-cifs@vger.kernel.org, linux-nfs@vger.kernel.org, ceph-devel@vger.kernel.org, v9fs@lists.linux.dev, linux-erofs@lists.ozlabs.org, linux-fsdevel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Steve French , Shyam Prasad N , Rohith Surabattula Subject: Re: [PATCH 01/26] cifs: Fix duplicate fscache cookie warnings Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2345943.1713186234.1@warthog.procyon.org.uk> Date: Mon, 15 Apr 2024 14:03:54 +0100 Message-ID: <2345944.1713186234@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.9 Jeff Layton wrote: > > +struct cifs_fscache_inode_key { > > + > > + __le64 uniqueid; /* server inode number */ > > + __le64 createtime; /* creation time on server */ > > + u8 type; /* S_IFMT file type */ > > +} __packed; > > + > > Interesting. So the uniqueid of the inode is not unique within the fs? > Or are the clients are mounting shares that span multiple filesystems? > Or, are we looking at a situation where the uniqueid is being quickly > reused for new inodes after the original inode is unlinked? The problem is that it's not unique over time. creat(); unlink(); creat(); may yield a repeat of the uniqueid. It's like i_ino in that respect. David