Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp7140647rdb; Wed, 3 Jan 2024 06:04:48 -0800 (PST) X-Google-Smtp-Source: AGHT+IHBnI+nz6qyq5ie/WuiV0UTJOOcSzHxYQqEMJTg7/k0+ZnroP8vASX4TS4J//TpBY7qEIWm X-Received: by 2002:a17:906:c7d2:b0:a28:b184:544a with SMTP id dc18-20020a170906c7d200b00a28b184544amr104222ejb.202.1704290688349; Wed, 03 Jan 2024 06:04:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1704290688; cv=none; d=google.com; s=arc-20160816; b=D3dKvjipmKsqL9x1tgtIa+IDqCpVLch4ZKF40dH/veRoAzh1ufPiFo06uYCAhPVjXT 8GHG8GfcdqyMiAEK1Q+BfjRT56PSAuPMn0p2pAZTA3/lhTfNsi/8FAIR/F4QAQ8N9Qok V6N/NgdxIwO+0duvSQnJGun2+NDR6o6hUPGqB0UR4bBObO4Ofcoo5yKV0vSDbJ3vUvUv DQWK+FnXe6xGItVzICC24PzoM/3UluWhzr9WyPrup/nsL773jKCYLG24L+0+vGrPRfNj uhf5BE/t17rWY64zn+R3of/56BBADzOaIHlW7O3zG/DbN6XoDK0gA84AHpQr65m6CKwc Gtzg== ARC-Message-Signature: i=1; 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=dm5uQwn+49K96zJWxQsiqkazcQLayYKEShHZEQ+JYDg=; fh=BhDS1KcRJvXXD2Bl9bhuhq83dMEXwTkkC0RH5v6iCzY=; b=nbk2P3m+SpG/UopwhWJDRbN3ApO6w+0DdwQl2Q1ZJrKUQ65ypo2R+FBfPxlDBISYvE HTvYjuMFDH81WmWer6ib+isBbzugnq8a0kcBYwFJoLTS2d5MwCvhEa8FUzPPB85pOuC2 KUTRuIwDDf2eSH5DYp+hI2mQwFaIL41jeeR7iySY7nmwsbUhV44Wx1tKfraQZOihY/Bi KD9k0RwAj9bWNcpiHB5nvhbuInGtJOiO1ausT0JthUe/IRs3bkE+kAJaqPbz4nSXX7GS qa6RgT1sVOn8dq5A2EuqUbhpYsBOw+5Dz+qeKjSWTMJX4qccsK+mlAMWRSlQF6b34Bqr mTFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=d1oF5TCK; spf=pass (google.com: domain of linux-nfs+bounces-877-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-877-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id vl15-20020a17090730cf00b00a2362e9148fsi11232632ejb.257.2024.01.03.06.04.48 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Jan 2024 06:04:48 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-877-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=d1oF5TCK; spf=pass (google.com: domain of linux-nfs+bounces-877-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-nfs+bounces-877-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 198901F24428 for ; Wed, 3 Jan 2024 14:04:48 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id EBD881A59C; Wed, 3 Jan 2024 14:04:32 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="d1oF5TCK" X-Original-To: linux-nfs@vger.kernel.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 80B6C19BD8 for ; Wed, 3 Jan 2024 14:04:31 +0000 (UTC) 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=1704290670; 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=dm5uQwn+49K96zJWxQsiqkazcQLayYKEShHZEQ+JYDg=; b=d1oF5TCKj77QBWduueGBezNvH8XV/2ncicZizQivDByMTsS05ZISeuaP9QmSwpLJP8qV2T 3NO2oymSXe+6WpIK2eSdVRHsjrPVYQHaR2az8LnedNWCtOkN1JLF5QG3stHaBbNdToi+1M 4etKyS+hF3HfSEe0gZxMeNS6eXXzf5s= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-613-i-DxWH5nPu6c-fysuoabdA-1; Wed, 03 Jan 2024 09:04:26 -0500 X-MC-Unique: i-DxWH5nPu6c-fysuoabdA-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (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 1041384AF84; Wed, 3 Jan 2024 14:04:22 +0000 (UTC) Received: from warthog.procyon.org.uk (unknown [10.42.28.68]) by smtp.corp.redhat.com (Postfix) with ESMTP id 372852026D66; Wed, 3 Jan 2024 14:04:18 +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: References: <20231221132400.1601991-41-dhowells@redhat.com> <20231221132400.1601991-1-dhowells@redhat.com> <292837.1704232179@warthog.procyon.org.uk> To: Dominique Martinet Cc: dhowells@redhat.com, Eric Van Hensbergen , Latchesar Ionkov , Jeff Layton , Steve French , Matthew Wilcox , Marc Dionne , Paulo Alcantara , Shyam Prasad N , Tom Talpey , Ilya Dryomov , Christian Brauner , 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-fsdevel@vger.kernel.org, linux-mm@kvack.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Christian Schoenebeck Subject: Re: [PATCH] 9p: Fix initialisation of netfs_inode for 9p Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <368445.1704290657.1@warthog.procyon.org.uk> Date: Wed, 03 Jan 2024 14:04:17 +0000 Message-ID: <368446.1704290657@warthog.procyon.org.uk> X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.4 Dominique Martinet wrote: > Would it make sense to just always update netfs's ctx->remote_i_size in > the various stat2inode calls instead? Btw, v9fs_i_size_write() should be redundant. It should be sufficient to just use i_size_write() as long as you use i_size_read(). David