Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/2220026/?format=api
{ "id": 2220026, "url": "http://patchwork.ozlabs.org/api/1.2/patches/2220026/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260405211819.1251369-1-pc@manguebit.org/", "project": { "id": 12, "url": "http://patchwork.ozlabs.org/api/1.2/projects/12/?format=api", "name": "Linux CIFS Client", "link_name": "linux-cifs-client", "list_id": "linux-cifs.vger.kernel.org", "list_email": "linux-cifs@vger.kernel.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260405211819.1251369-1-pc@manguebit.org>", "list_archive_url": null, "date": "2026-04-05T21:18:18", "name": "[1/2] vfs: introduce d_mark_tmpfile_name()", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "cfc7aa5c8586681c5410ad9baf1c927a44a6efd9", "submitter": { "id": 91025, "url": "http://patchwork.ozlabs.org/api/1.2/people/91025/?format=api", "name": "Paulo Alcantara", "email": "pc@manguebit.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-cifs-client/patch/20260405211819.1251369-1-pc@manguebit.org/mbox/", "series": [ { "id": 498808, "url": "http://patchwork.ozlabs.org/api/1.2/series/498808/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-cifs-client/list/?series=498808", "date": "2026-04-05T21:18:18", "name": "[1/2] vfs: introduce d_mark_tmpfile_name()", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/498808/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2220026/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2220026/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-cifs+bounces-10667-incoming=patchwork.ozlabs.org@vger.kernel.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "linux-cifs@vger.kernel.org" ], "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=manguebit.org header.i=@manguebit.org header.a=rsa-sha256\n header.s=dkim header.b=B0i01b8q;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=vger.kernel.org\n (client-ip=2600:3c0a:e001:db::12fc:5321; helo=sea.lore.kernel.org;\n envelope-from=linux-cifs+bounces-10667-incoming=patchwork.ozlabs.org@vger.kernel.org;\n receiver=patchwork.ozlabs.org)", "smtp.subspace.kernel.org;\n\tdkim=pass (2048-bit key) header.d=manguebit.org header.i=@manguebit.org\n header.b=\"B0i01b8q\"", "smtp.subspace.kernel.org;\n arc=none smtp.client-ip=143.255.12.172", "smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=manguebit.org", "smtp.subspace.kernel.org;\n spf=pass smtp.mailfrom=manguebit.org" ], "Received": [ "from sea.lore.kernel.org (sea.lore.kernel.org\n [IPv6:2600:3c0a:e001:db::12fc:5321])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fplgd0wL1z1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 06 Apr 2026 07:18:37 +1000 (AEST)", "from smtp.subspace.kernel.org (conduit.subspace.kernel.org\n [100.90.174.1])\n\tby sea.lore.kernel.org (Postfix) with ESMTP id EB80530048E6\n\tfor <incoming@patchwork.ozlabs.org>; Sun, 5 Apr 2026 21:18:33 +0000 (UTC)", "from localhost.localdomain (localhost.localdomain [127.0.0.1])\n\tby smtp.subspace.kernel.org (Postfix) with ESMTP id D6344382392;\n\tSun, 5 Apr 2026 21:18:31 +0000 (UTC)", "from mx1.manguebit.org (mx1.manguebit.org [143.255.12.172])\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 11B47381B01;\n\tSun, 5 Apr 2026 21:18:28 +0000 (UTC)", "from pc by mx1.manguebit.org with local (Exim 4.99.1)\n\tid 1w9UrL-00000002GBi-2cBL;\n\tSun, 05 Apr 2026 18:18:19 -0300" ], "ARC-Seal": "i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116;\n\tt=1775423911; cv=none;\n b=sjTYQe9zMpE3DCnS3VUaF9jg/4DJmP0QHWz3y+oBI1DqUj5NmmYuN2nWhzBCMZ8ce46I9VYddqO3G1DpDEslv7o3usYS3A4pYOIycKZ1oU6fdQCzAaMRkXlSDZ4Q1PFlWQg1h7PKy18JBdVzMHdFB7Ug2KuabXd71OE8JTfegT8=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=subspace.kernel.org;\n\ts=arc-20240116; t=1775423911; c=relaxed/simple;\n\tbh=De9P1RCqPoG2wXGPrLaoafgTnqQFr7Gy4Q0m4jXzjKc=;\n\th=From:To:Cc:Subject:Date:Message-ID:MIME-Version;\n b=LG7xdu7dTWltoQ8uE71R87zxvXXwo8GBFkyXvQXRpUA6DhkAil4lQVI5qyutaE0kDNytiHrhcp4Md3M/b0LMRsoEoPHOZOamLYnKMDWJ1SJ3YjNhSLTcO0Rl6yjH8ppAd5TfEyLn5DpyzXmNUOeoy8dwFValvyIfzWwi2lJ4hCg=", "ARC-Authentication-Results": "i=1; smtp.subspace.kernel.org;\n dmarc=pass (p=quarantine dis=none) header.from=manguebit.org;\n spf=pass smtp.mailfrom=manguebit.org;\n dkim=pass (2048-bit key) header.d=manguebit.org header.i=@manguebit.org\n header.b=B0i01b8q; arc=none smtp.client-ip=143.255.12.172", "DKIM-Signature": "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=manguebit.org; s=dkim; h=Content-Transfer-Encoding:MIME-Version:Message-ID:\n\tDate:Subject:Cc:To:From:Sender:Content-Type:Reply-To:Content-ID:\n\tContent-Description:In-Reply-To:References;\n\tbh=R3hAMltGZXZBXMekdnU4F6nV3F8FNNgjvNrI3g9yUq0=; b=B0i01b8qY098hF/cM3fCuthraz\n\tIx/GjrEIY1vFBNafHYIn8CJG2aTtIcAk7RzFb+79fuNVZTOBd+ynQeKiqCXHQ5B1Gu0S3wyKFdGs+\n\ttdjjISnTVtQqTqtnKThaIWamgUTi/njGFmgxKCkGw3gvzjGBhjuPHPSbl/q5M4i4ucWGmkDEa01CA\n\ta75+aNGPxjOWEyIW9WL+UHaQU8OCPuGNL/uCOhEIh9OQltcDD86w2qPkMm665nzBqgq6/wmN2sgiH\n\tdzrGvk88hmtMMdo7YeveWi+p+0iIW3o/eM9FsLS4EFeVDRq1mS+LSFX7l/iWECbv5WDzjyOV2CR5h\n\tP2Y7jSMg==;", "From": "Paulo Alcantara <pc@manguebit.org>", "To": "viro@zeniv.linux.org.uk,\n\tsmfrench@gmail.com", "Cc": "\"Paulo Alcantara (Red Hat)\" <pc@manguebit.org>,\n\tChristian Brauner <brauner@kernel.org>,\n\tJan Kara <jack@suse.cz>,\n\tDavid Howells <dhowells@redhat.com>,\n\tlinux-fsdevel@vger.kernel.org,\n\tlinux-cifs@vger.kernel.org", "Subject": "[PATCH 1/2] vfs: introduce d_mark_tmpfile_name()", "Date": "Sun, 5 Apr 2026 18:18:18 -0300", "Message-ID": "<20260405211819.1251369-1-pc@manguebit.org>", "X-Mailer": "git-send-email 2.53.0", "Precedence": "bulk", "X-Mailing-List": "linux-cifs@vger.kernel.org", "List-Id": "<linux-cifs.vger.kernel.org>", "List-Subscribe": "<mailto:linux-cifs+subscribe@vger.kernel.org>", "List-Unsubscribe": "<mailto:linux-cifs+unsubscribe@vger.kernel.org>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit" }, "content": "CIFS requires O_TMPFILE dentries to have names of newly created\ndelete-on-close files in the server so it can build full pathnames\nfrom the root of the share when performing operations on them.\n\nSuggested-by: Al Viro <viro@zeniv.linux.org.uk>\nSigned-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>\nCc: Christian Brauner <brauner@kernel.org>\nCc: Jan Kara <jack@suse.cz>\nCc: David Howells <dhowells@redhat.com>\nCc: linux-fsdevel@vger.kernel.org\nCc: linux-cifs@vger.kernel.org\n---\n fs/dcache.c | 19 +++++++++++++++++++\n include/linux/dcache.h | 1 +\n 2 files changed, 20 insertions(+)", "diff": "diff --git a/fs/dcache.c b/fs/dcache.c\nindex 7ba1801d8132..c20a9c9e921c 100644\n--- a/fs/dcache.c\n+++ b/fs/dcache.c\n@@ -3196,6 +3196,25 @@ void d_mark_tmpfile(struct file *file, struct inode *inode)\n }\n EXPORT_SYMBOL(d_mark_tmpfile);\n \n+void d_mark_tmpfile_name(struct file *file, const struct qstr *name)\n+{\n+\tstruct dentry *dentry = file->f_path.dentry;\n+\tchar *dname = dentry->d_shortname.string;\n+\n+\tBUG_ON(dname_external(dentry) ||\n+\t d_really_is_positive(dentry) ||\n+\t !d_unlinked(dentry) ||\n+\t name->len > DNAME_INLINE_LEN - 1);\n+\tspin_lock(&dentry->d_parent->d_lock);\n+\tspin_lock_nested(&dentry->d_lock, DENTRY_D_LOCK_NESTED);\n+\tdentry->__d_name.len = name->len;\n+\tmemcpy(dname, name->name, name->len);\n+\tdname[name->len] = '\\0';\n+\tspin_unlock(&dentry->d_lock);\n+\tspin_unlock(&dentry->d_parent->d_lock);\n+}\n+EXPORT_SYMBOL(d_mark_tmpfile_name);\n+\n void d_tmpfile(struct file *file, struct inode *inode)\n {\n \tstruct dentry *dentry = file->f_path.dentry;\ndiff --git a/include/linux/dcache.h b/include/linux/dcache.h\nindex 898c60d21c92..f60819dcfebd 100644\n--- a/include/linux/dcache.h\n+++ b/include/linux/dcache.h\n@@ -264,6 +264,7 @@ extern void d_invalidate(struct dentry *);\n extern struct dentry * d_make_root(struct inode *);\n \n extern void d_mark_tmpfile(struct file *, struct inode *);\n+void d_mark_tmpfile_name(struct file *file, const struct qstr *name);\n extern void d_tmpfile(struct file *, struct inode *);\n \n extern struct dentry *d_find_alias(struct inode *);\n", "prefixes": [ "1/2" ] }