Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.1/patches/2230342/?format=api
{ "id": 2230342, "url": "http://patchwork.ozlabs.org/api/1.1/patches/2230342/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/177747215753.4110581.7454259395904906217.stgit@frogsfrogsfrogs/", "project": { "id": 8, "url": "http://patchwork.ozlabs.org/api/1.1/projects/8/?format=api", "name": "Linux ext4 filesystem development", "link_name": "linux-ext4", "list_id": "linux-ext4.vger.kernel.org", "list_email": "linux-ext4@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null }, "msgid": "<177747215753.4110581.7454259395904906217.stgit@frogsfrogsfrogs>", "date": "2026-04-29T15:02:00", "name": "[3/4] fuse4fs: upsert first file mapping to kernel on open", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "edf945a3a36998b26fce7f744b6c41e719bf13e5", "submitter": { "id": 77032, "url": "http://patchwork.ozlabs.org/api/1.1/people/77032/?format=api", "name": "Darrick J. Wong", "email": "djwong@kernel.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/177747215753.4110581.7454259395904906217.stgit@frogsfrogsfrogs/mbox/", "series": [ { "id": 502093, "url": "http://patchwork.ozlabs.org/api/1.1/series/502093/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=502093", "date": "2026-04-29T15:01:29", "name": "[1/4] fuse2fs: enable caching of iomaps", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/502093/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2230342/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2230342/checks/", "tags": {}, "headers": { "Return-Path": "\n <SRS0=IT+p=C4=vger.kernel.org=linux-ext4+bounces-16225-patchwork-incoming=ozlabs.org@ozlabs.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-ext4@vger.kernel.org" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "patchwork-incoming@ozlabs.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=T+CXXnrC;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=ozlabs.org\n (client-ip=2404:9400:2221:ea00::3; helo=mail.ozlabs.org;\n envelope-from=srs0=it+p=c4=vger.kernel.org=linux-ext4+bounces-16225-patchwork-incoming=ozlabs.org@ozlabs.org;\n receiver=patchwork.ozlabs.org)", "gandalf.ozlabs.org;\n arc=pass smtp.remote-ip=104.64.211.4 arc.chain=subspace.kernel.org", "gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org", "gandalf.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=T+CXXnrC;\n\tdkim-atps=neutral", "gandalf.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=104.64.211.4; helo=sin.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16225-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=\"T+CXXnrC\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=10.30.226.201" ], "Received": [ "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1 raw public key)\n server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4g5LW52qVWz1yHX\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 01:16:49 +1000 (AEST)", "from mail.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3])\n\tby gandalf.ozlabs.org (Postfix) with ESMTP id 4g5LW524mMz4wHs\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 30 Apr 2026 01:16:49 +1000 (AEST)", "by gandalf.ozlabs.org (Postfix)\n\tid 4g5LW521g9z4wQg; Thu, 30 Apr 2026 01:16:49 +1000 (AEST)", "from sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519)\n\t(No client certificate requested)\n\tby gandalf.ozlabs.org (Postfix) with ESMTPS id 4g5LW15SGQz4wHs\n\tfor <patchwork-incoming@ozlabs.org>; Thu, 30 Apr 2026 01:16:45 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sin.lore.kernel.org (Postfix) with ESMTP id 024EE3011500\n\tfor <patchwork-incoming@ozlabs.org>; Wed, 29 Apr 2026 15:02:05 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id 564C6341660;\n\tWed, 29 Apr 2026 15:02:01 +0000 (UTC)", "from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org\n [10.30.226.201])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby smtp.subspace.kernel.org (Postfix) with ESMTPS id 1870433121C;\n\tWed, 29 Apr 2026 15:02:00 +0000 (UTC)", "by smtp.kernel.org (Postfix) with ESMTPSA id 9E8B4C19425;\n\tWed, 29 Apr 2026 15:02:00 +0000 (UTC)" ], "ARC-Seal": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707; t=1777475809; cv=pass;\n\tb=K8MLd3mqSmI8QdCGFTt8NJhjT4zUXC5pgG4ydPtEn62Xha3WEAHP6VXzYQxuLZWCIsDDNUhBDYGmj4+viiclwgHT2aPVvU2wT+9ox9zmpfjKqwVPfn3oxu329NV6XzmRHLxLnWq560ydy3PzgwAmORz73KgxC6Nri0Yk0dVluAFUkilydbQimYZ9DYbrbUM5IrFyd3H6fCL15VophmSGrzNKr/Kv5oximEfSagga9rTZWpQFdxKusvpnQc7kcfl7e8+SMxpR21DBNIsQkyLusiTEgQJmaPwhLqJYKdh2vJlTLK8rLBZq4MyfZstu/xYilF4h4myHsH38b1N1VF3SRw==", "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1777474921; cv=none;\n b=IE+tNgW9Ptvn2EZKRF7gqt3ObUmAUfXtvoIQJwanw1sfJrNyGM3DJiAritMymFnsvnuhrywGAHbDfkpSSQqNsZET/owROctb3Mp8StEnPH05Ko5MNukY8yhP3qq1APR8ErfpjyQQZla3SgUNTEIfurhypZcpRkvfv2EGY9d4VXc=" ], "ARC-Message-Signature": [ "i=2; a=rsa-sha256; d=ozlabs.org; s=201707;\n\tt=1777475809; c=relaxed/relaxed;\n\tbh=JdEQac0Qah48WJrKLeitiF3YMFkbhtXB1MkM9Bz0KtA=;\n\th=Date:Subject:From:To:Cc:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=e1EJJ5VxG2plXMd2l92S1ZAS0zWvGfpHKvAXcUbiT7vlVTqN8aJf/wTi+3Pf5MJgpHlQvEJny5i6v/2An1m124gWlwOCebMJzUaucSao+68yXrtsE35tPXBogOgF9CiKJ1GBQKMH87NgPKE5qByYYr3PObFAojOLPmQ827RnA54NUS3+HrxCXQG7TXxVuiB7feaaqzem1Lg7ntgY/H7dkhPY6YlmtmpKiTTcfTmMrX4c8Dl+kwyDRfnl9Gqwhnj2R2mz9C/1heEEloz/t+z9N1nL1sJsc1nCM0hqGhhp/ircn7MfS8zdd7yCrX49l1OYZ7dgqNgPRGBcPgEhuUacqg==", "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1777474921; c=relaxed/simple;\n\tbh=uhOEUfzc4WLHDPaUiJemNfGMbyvGoKbxSNV7FopaEPM=;\n\th=Date:Subject:From:To:Cc:Message-ID:In-Reply-To:References:\n\t MIME-Version:Content-Type;\n b=L2fp70hgtPUoJyB6wb2rbFAO7xwGhgHbx8LLQRF/6EXTOtDLwSehYaopLtl0wp1lrg6iQPYbS2zu+KkD+XcBMrrTR7LRQl5b5vOgFYQFm77hjeS4cIKoIvLARaO6W4wBaoH325y/IP2odi3QYR6GcLsxccs1WZ01wMingZrvNsQ=" ], "ARC-Authentication-Results": [ "i=2; gandalf.ozlabs.org;\n dmarc=pass (p=quarantine dis=none) header.from=kernel.org;\n dkim=pass (2048-bit key;\n unprotected) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256\n header.s=k20201202 header.b=T+CXXnrC; dkim-atps=neutral;\n spf=pass (client-ip=104.64.211.4; helo=sin.lore.kernel.org;\n envelope-from=linux-ext4+bounces-16225-patchwork-incoming=ozlabs.org@vger.kernel.org;\n receiver=ozlabs.org) smtp.mailfrom=vger.kernel.org", "i=1; smtp.subspace.kernel.org;\n dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org\n header.b=T+CXXnrC; arc=none smtp.client-ip=10.30.226.201" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org;\n\ts=k20201202; t=1777474920;\n\tbh=uhOEUfzc4WLHDPaUiJemNfGMbyvGoKbxSNV7FopaEPM=;\n\th=Date:Subject:From:To:Cc:In-Reply-To:References:From;\n\tb=T+CXXnrCSHJpijbz4lmaiwiXDHuMIiKrDYsme7qllLz1L6xVLq6aj3Wji9SHJZwBd\n\t BdC7/MG1dVg7yqlqYzqKYgiduxYTTR+1HX1weEPoSSNzpgJrGx/aQitnJgCrWpW+n4\n\t dX1QeGDZs6H/ZrdlZ9HSoYkfuGG24TXsO7mOmtETWaKIwZtzDrEjqn4HqIaUVRP7V6\n\t YWu7pQam77CHMlygrzRpspDne/ynfQENAemwrs93vNG6P6AnNKMxpc1nrKitq+Ulgo\n\t ABeJDqEEl7kI2oYtG1EfG/AwWqMD+piNfXiwT3sDU3ZXBRtLcm2t81AxyOf7PxuX1b\n\t BJzsHL7KuxMjg==", "Date": "Wed, 29 Apr 2026 08:02:00 -0700", "Subject": "[PATCH 3/4] fuse4fs: upsert first file mapping to kernel on open", "From": "\"Darrick J. Wong\" <djwong@kernel.org>", "To": "tytso@mit.edu", "Cc": "bernd@bsbernd.com, miklos@szeredi.hu, linux-ext4@vger.kernel.org,\n neal@gompa.dev, linux-fsdevel@vger.kernel.org, fuse-devel@lists.linux.dev,\n joannelkoong@gmail.com", "Message-ID": "<177747215753.4110581.7454259395904906217.stgit@frogsfrogsfrogs>", "In-Reply-To": "<177747215686.4110581.16852917113451473539.stgit@frogsfrogsfrogs>", "References": "<177747215686.4110581.16852917113451473539.stgit@frogsfrogsfrogs>", "Precedence": "bulk", "X-Mailing-List": "linux-ext4@vger.kernel.org", "List-Id": "<linux-ext4.vger.kernel.org>", "List-Subscribe": "<mailto:linux-ext4+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-ext4+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "X-Spam-Status": "No, score=-1.2 required=5.0 tests=ARC_SIGNED,ARC_VALID,\n\tDKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DMARC_PASS,\n\tMAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=disabled\n\tversion=4.0.1", "X-Spam-Checker-Version": "SpamAssassin 4.0.1 (2024-03-25) on gandalf.ozlabs.org" }, "content": "From: Darrick J. Wong <djwong@kernel.org>\n\nTry to speed up the first access to a file by upserting the first\nfile space mapping to the kernel at open time.\n\nSigned-off-by: \"Darrick J. Wong\" <djwong@kernel.org>\n---\n fuse4fs/fuse4fs.c | 36 +++++++++++++++++++++++++++++++++++-\n 1 file changed, 35 insertions(+), 1 deletion(-)", "diff": "diff --git a/fuse4fs/fuse4fs.c b/fuse4fs/fuse4fs.c\nindex d07c576d31862a..b10a9a8be00a08 100644\n--- a/fuse4fs/fuse4fs.c\n+++ b/fuse4fs/fuse4fs.c\n@@ -4415,6 +4415,9 @@ static void detect_linux_executable_open(int kernel_flags, int *access_check,\n }\n #endif /* __linux__ */\n \n+static void fuse4fs_try_upsert_first_mapping(struct fuse4fs *ff, ext2_ino_t ino,\n+\t\t\t\t\t struct fuse_file_info *fp);\n+\n static int fuse4fs_open_file(struct fuse4fs *ff, const struct fuse_ctx *ctxt,\n \t\t\t ext2_ino_t ino, bool linked,\n \t\t\t struct fuse_file_info *fp)\n@@ -4509,7 +4512,7 @@ static int fuse4fs_open_file(struct fuse4fs *ff, const struct fuse_ctx *ctxt,\n \t/* fuse 3.5: cache dirents from readdir contents */\n \tfp->cache_readdir = 1;\n #endif\n-\n+\tfuse4fs_try_upsert_first_mapping(ff, ino, fp);\n out:\n \tif (ret)\n \t\text2fs_free_mem(&file);\n@@ -7277,6 +7280,37 @@ static void op_iomap_end(fuse_req_t req, fuse_ino_t fino, uint64_t dontcare,\n \tfuse_reply_err(req, -ret);\n }\n \n+static void fuse4fs_try_upsert_first_mapping(struct fuse4fs *ff, ext2_ino_t ino,\n+\t\t\t\t\t struct fuse_file_info *fp)\n+{\n+\tstruct ext2_inode_large inode;\n+\tstruct fuse_file_iomap read = { };\n+\tuint64_t fsize;\n+\terrcode_t err;\n+\n+\tif (!ff->iomap_cache || (fp->flags & O_TRUNC))\n+\t\treturn;\n+\n+\terr = fuse4fs_read_inode(ff->fs, ino, &inode);\n+\tif (err)\n+\t\treturn;\n+\n+\tif (!S_ISREG(inode.i_mode))\n+\t\treturn;\n+\n+\tfsize = EXT2_I_SIZE(&inode);\n+\tif (!fsize)\n+\t\treturn;\n+\n+\t/* try to map the first 64k */\n+\terr = fuse4fs_iomap_begin_read(ff, ino, &inode, 0, min(fsize, 65536),\n+\t\t\t0, &read);\n+\tif (err)\n+\t\treturn;\n+\n+\tfuse_lowlevel_iomap_upsert_mappings(ff->fuse, ino, ino, &read, NULL);\n+}\n+\n /*\n * Maximal extent format file size.\n * Resulting logical blkno at s_maxbytes must fit in our on-disk\n", "prefixes": [ "3/4" ] }