From patchwork Wed Jan 3 14:59:24 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Howells X-Patchwork-Id: 13510160 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id B8519C47073 for ; Wed, 3 Jan 2024 14:59:49 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id E604C6B0392; Wed, 3 Jan 2024 09:59:48 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id DE9876B0393; Wed, 3 Jan 2024 09:59:48 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id C88A76B0394; Wed, 3 Jan 2024 09:59:48 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0014.hostedemail.com [216.40.44.14]) by kanga.kvack.org (Postfix) with ESMTP id B4C7F6B0392 for ; Wed, 3 Jan 2024 09:59:48 -0500 (EST) Received: from smtpin19.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 7621E1603B6 for ; Wed, 3 Jan 2024 14:59:48 +0000 (UTC) X-FDA: 81638309256.19.9AE927F Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by imf15.hostedemail.com (Postfix) with ESMTP id C10F4A000E for ; Wed, 3 Jan 2024 14:59:46 +0000 (UTC) Authentication-Results: imf15.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=HSbXC+oD; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf15.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1704293986; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references:dkim-signature; bh=s3o3MrTd6nm5lawOB5Ax6jA2uuGzy36Eef5IBUe+5HY=; b=ykHV3xZCECRcFR3hJT271agbjFBgFK24ZhkHCjTeiWzna9wwp8pvrlsOnS4/Q7TrP3Zg2m 1ye6RUTSLbfSTvqN4UFo0gOZcGbr0iFQ/uGfw7aWfW3KrqtAOiVqzVmXu5Jjz0ZdnKr4z5 0aXp7sefpCeFgXBU5bnONGZRtwUtGfI= ARC-Authentication-Results: i=1; imf15.hostedemail.com; dkim=pass header.d=redhat.com header.s=mimecast20190719 header.b=HSbXC+oD; dmarc=pass (policy=none) header.from=redhat.com; spf=pass (imf15.hostedemail.com: domain of dhowells@redhat.com designates 170.10.133.124 as permitted sender) smtp.mailfrom=dhowells@redhat.com ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1704293986; a=rsa-sha256; cv=none; b=rUfj784at6DI9jTUSCY1xliKI2T8olD9cWrdyyiU4rRX3WqXoFmHoWZcycVWVYxdhqivKE u6lgaxVFBg+tEnv6bUSOIdiETkraQ0vnky3sk/wp0ZjNsAf/XgjDcKNa1FSoyeYtiNDc89 VbSyigRO8sWxgyhV/EiOlFDrLjKDStI= DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1704293986; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=s3o3MrTd6nm5lawOB5Ax6jA2uuGzy36Eef5IBUe+5HY=; b=HSbXC+oDHmMAyySC3bMh7FgNgTVOVbCgEnEEWtcpmKf+8EtyO6Q5oQOINXsz82KWZaPGzN gNSzryMtuoh4BO1DgIXY2iEUxkpufkN8aa5xU62d/kFnb+0uTPsK2/CXVPCM3Oo2sKJsmL ARHAZ9JCcv7to9MTlNMWYRyvCuzdBng= 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-298-3VxcmtpCOkq8GL6PiBMlJQ-1; Wed, 03 Jan 2024 09:59:43 -0500 X-MC-Unique: 3VxcmtpCOkq8GL6PiBMlJQ-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (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 4F93C83B821; Wed, 3 Jan 2024 14:59:42 +0000 (UTC) Received: from warthog.procyon.org.com (unknown [10.42.28.68]) by smtp.corp.redhat.com (Postfix) with ESMTP id 24175C15A0C; Wed, 3 Jan 2024 14:59:37 +0000 (UTC) From: David Howells To: Christian Brauner , Jeff Layton , Gao Xiang , Dominique Martinet Cc: David Howells , Steve French , Matthew Wilcox , Marc Dionne , Paulo Alcantara , Shyam Prasad N , Tom Talpey , Eric Van Hensbergen , Ilya Dryomov , 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 Subject: [PATCH 0/5] netfs, cachefiles, 9p: Additional patches Date: Wed, 3 Jan 2024 14:59:24 +0000 Message-ID: <20240103145935.384404-1-dhowells@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Rspamd-Queue-Id: C10F4A000E X-Rspam-User: X-Rspamd-Server: rspam04 X-Stat-Signature: kudc58w35bu6rpf37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TimIr8dlUrmL6utvQjXLhplq65mV/xs1hUjv1JLjYzvXZTMWQuCcgTAYWaOseiP0ZVIBdZnb6CuUjdvq0aqZqAEpRuW9uPGV/An9NGz0egukR/g1YOI4DxFGMv+Xd/cq6bRcj6rumLuxZDJSDdphqc7fVS7No4nPZ88ULfVcxxoVfg= X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: List-Subscribe: List-Unsubscribe: Hi Christian, Jeff, Gao, Dominique, Here are some additional patches for my netfs-lib tree: (1) Fix __cachefiles_prepare_write() to correctly validate against the DIO alignment. (2) 9p: Fix initialisation of the netfs_inode so that i_size is set before netfs_inode_init() is called. (3) 9p: Do a couple of cleanups (remove a couple of unused vars and turn a BUG_ON() into a warning). (4) 9p: Always update remote_i_size, even if we're asked not to update i_size in stat2inode. (5) 9p: Return the amount written in preference to an error if we wrote something. David The netfslib postings: Link: https://lore.kernel.org/r/20231013160423.2218093-1-dhowells@redhat.com/ # v1 Link: https://lore.kernel.org/r/20231117211544.1740466-1-dhowells@redhat.com/ # v2 Link: https://lore.kernel.org/r/20231207212206.1379128-1-dhowells@redhat.com/ # v3 Link: https://lore.kernel.org/r/20231213152350.431591-1-dhowells@redhat.com/ # v4 Link: https://lore.kernel.org/r/20231221132400.1601991-1-dhowells@redhat.com/ # v5 David Howells (5): cachefiles: Fix __cachefiles_prepare_write() 9p: Fix initialisation of netfs_inode for 9p 9p: Do a couple of cleanups 9p: Always update remote_i_size in stat2inode 9p: Use length of data written to the server in preference to error fs/9p/v9fs_vfs.h | 1 + fs/9p/vfs_addr.c | 24 ++++++++++++------------ fs/9p/vfs_inode.c | 6 +++--- fs/9p/vfs_inode_dotl.c | 7 ++++--- fs/cachefiles/io.c | 28 +++++++++++++++++----------- 5 files changed, 37 insertions(+), 29 deletions(-)