Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/1890366/?format=api
{ "id": 1890366, "url": "http://patchwork.ozlabs.org/api/patches/1890366/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/patch/20240124175302.1750912-3-willy@infradead.org/", "project": { "id": 3, "url": "http://patchwork.ozlabs.org/api/projects/3/?format=api", "name": "Linux MTD development", "link_name": "linux-mtd", "list_id": "linux-mtd.lists.infradead.org", "list_email": "linux-mtd@lists.infradead.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20240124175302.1750912-3-willy@infradead.org>", "list_archive_url": null, "date": "2024-01-24T17:52:45", "name": "[v2,02/15] ubifs: Convert from writepage to writepages", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": false, "hash": "c709672e461fcd02b3f37ce1205127327fb15152", "submitter": { "id": 70855, "url": "http://patchwork.ozlabs.org/api/people/70855/?format=api", "name": "Matthew Wilcox", "email": "willy@infradead.org" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-mtd/patch/20240124175302.1750912-3-willy@infradead.org/mbox/", "series": [ { "id": 391975, "url": "http://patchwork.ozlabs.org/api/series/391975/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/list/?series=391975", "date": "2024-01-24T17:52:56", "name": "ubifs folio conversion", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/391975/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/1890366/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/1890366/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "\n <linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n secure) header.d=lists.infradead.org header.i=@lists.infradead.org\n header.a=rsa-sha256 header.s=bombadil.20210309 header.b=UBsG0DBa;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n secure) header.d=infradead.org header.i=@infradead.org header.a=rsa-sha256\n header.s=casper.20170209 header.b=DsPuPe34;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=none (no SPF record) smtp.mailfrom=lists.infradead.org\n (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org;\n envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n receiver=patchwork.ozlabs.org)" ], "Received": [ "from bombadil.infradead.org (bombadil.infradead.org\n [IPv6:2607:7c80:54:3::133])\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 4TKs5S0M0Mz23g8\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 25 Jan 2024 04:53:48 +1100 (AEDT)", "from localhost ([::1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux))\n\tid 1rShRG-004a0m-0n;\n\tWed, 24 Jan 2024 17:53:26 +0000", "from casper.infradead.org ([2001:8b0:10b:1236::1])\n\tby bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux))\n\tid 1rShRC-004Zvu-2M\n\tfor linux-mtd@bombadil.infradead.org;\n\tWed, 24 Jan 2024 17:53:22 +0000", "from willy by casper.infradead.org with local (Exim 4.97.1 #2 (Red\n Hat Linux))\n\tid 1rShQu-00000007LVN-3daS;\n\tWed, 24 Jan 2024 17:53:04 +0000" ], "DKIM-Signature": [ "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20210309; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post:\n\tList-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:\n\tMessage-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:\n\tResent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:\n\tList-Owner; bh=FcBJBxc92jExQwls5/JPXy1mESmopCkO7pEteoTnNAo=; b=UBsG0DBa/VRuUc\n\tEsI6FFSPYGbVfe067A8LBA+TTQ/q4CG2QI+n7nsP5LYtPPxMuFN3bTMJcTlQB2JGuUoWqLCOf3D7S\n\toFOsFenBborGdiBOXiLw4LDYP3i1/fWyRfJy6A90nrAebPYEhc8oicvGTY3krLkz4EYxHvXUjjjC3\n\t04Yu1NZzuSOhjIW7wbrIdDWKomCZg2oAk0XYKJt7y1TwElKJ9Uf1oRQ/2ysJ2ic2vHsPW/YAgDj8J\n\tCcw9OJ+HXJoN4KdpLofrMaBHlEtwde4nK2dOsdJqupJzJE2ev8//OFmgRvP0COGATb6m0Joo7EnzO\n\tHGlJHRg35o53hRRQ4hVg==;", "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:MIME-Version:\n\tReferences:In-Reply-To:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:\n\tContent-Type:Content-ID:Content-Description;\n\tbh=SWTrdgNrExHVtkdgx6uI7WIrqFvFEgIAoz3yv5G0N9E=; b=DsPuPe34pBg4Fa7Eva4fodqenO\n\tn4EPtHZ+BZeoFfG8pvbQ6WhboFIL1688YhIjEDkju7TA3lzq/eUg6Mi5kEd+CBV09QFoXwDGat1Rc\n\tx5UhkAp+pvkzlNeGGGCCHnDAHx4NtMYQ77aIm7q4KvqUQgubhozA9u0+hbSPhvqvD8msfqB4FnI5w\n\tTqa5PygbB8TxbJGWK88ru1tvMHIQpM+WTCmJStI9uXKJJFoQLBtzczAoAGEeeY8iC02p6kYG0CIFu\n\taoE1QaYvKCOxT2w1dS2ttjmndGnpwl+/ZXnyFiUGYYY6GDbcGcOwI20uYrcv5bxXYHlh0XYKoMbYF\n\tAC2dhA4g==;" ], "From": "\"Matthew Wilcox (Oracle)\" <willy@infradead.org>", "To": "Richard Weinberger <richard@nod.at>", "Cc": "\"Matthew Wilcox (Oracle)\" <willy@infradead.org>,\n\tlinux-mtd@lists.infradead.org,\n\tZhihao Cheng <chengzhihao1@huawei.com>", "Subject": "[PATCH v2 02/15] ubifs: Convert from writepage to writepages", "Date": "Wed, 24 Jan 2024 17:52:45 +0000", "Message-ID": "<20240124175302.1750912-3-willy@infradead.org>", "X-Mailer": "git-send-email 2.43.0", "In-Reply-To": "<20240124175302.1750912-1-willy@infradead.org>", "References": "<20240124175302.1750912-1-willy@infradead.org>", "MIME-Version": "1.0", "X-BeenThere": "linux-mtd@lists.infradead.org", "X-Mailman-Version": "2.1.34", "Precedence": "list", "List-Id": "Linux MTD discussion mailing list <linux-mtd.lists.infradead.org>", "List-Unsubscribe": "<http://lists.infradead.org/mailman/options/linux-mtd>,\n <mailto:linux-mtd-request@lists.infradead.org?subject=unsubscribe>", "List-Archive": "<http://lists.infradead.org/pipermail/linux-mtd/>", "List-Post": "<mailto:linux-mtd@lists.infradead.org>", "List-Help": "<mailto:linux-mtd-request@lists.infradead.org?subject=help>", "List-Subscribe": "<http://lists.infradead.org/mailman/listinfo/linux-mtd>,\n <mailto:linux-mtd-request@lists.infradead.org?subject=subscribe>", "Content-Type": "text/plain; charset=\"us-ascii\"", "Content-Transfer-Encoding": "7bit", "Sender": "\"linux-mtd\" <linux-mtd-bounces@lists.infradead.org>", "Errors-To": "linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org" }, "content": "This is a simplistic conversion to separate out any effects of\nno longer having a writepage method.\n\nSigned-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>\nReviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>\n---\n fs/ubifs/file.c | 12 ++++++++++--\n 1 file changed, 10 insertions(+), 2 deletions(-)", "diff": "diff --git a/fs/ubifs/file.c b/fs/ubifs/file.c\nindex d0694b83dd02..2022a31006df 100644\n--- a/fs/ubifs/file.c\n+++ b/fs/ubifs/file.c\n@@ -1001,8 +1001,10 @@ static int do_writepage(struct page *page, int len)\n * on the page lock and it would not write the truncated inode node to the\n * journal before we have finished.\n */\n-static int ubifs_writepage(struct page *page, struct writeback_control *wbc)\n+static int ubifs_writepage(struct folio *folio, struct writeback_control *wbc,\n+\t\tvoid *data)\n {\n+\tstruct page *page = &folio->page;\n \tstruct inode *inode = page->mapping->host;\n \tstruct ubifs_info *c = inode->i_sb->s_fs_info;\n \tstruct ubifs_inode *ui = ubifs_inode(inode);\n@@ -1074,6 +1076,12 @@ static int ubifs_writepage(struct page *page, struct writeback_control *wbc)\n \treturn err;\n }\n \n+static int ubifs_writepages(struct address_space *mapping,\n+\t\tstruct writeback_control *wbc)\n+{\n+\treturn write_cache_pages(mapping, wbc, ubifs_writepage, NULL);\n+}\n+\n /**\n * do_attr_changes - change inode attributes.\n * @inode: inode to change attributes for\n@@ -1643,7 +1651,7 @@ static int ubifs_symlink_getattr(struct mnt_idmap *idmap,\n \n const struct address_space_operations ubifs_file_address_operations = {\n \t.read_folio = ubifs_read_folio,\n-\t.writepage = ubifs_writepage,\n+\t.writepages = ubifs_writepages,\n \t.write_begin = ubifs_write_begin,\n \t.write_end = ubifs_write_end,\n \t.invalidate_folio = ubifs_invalidate_folio,\n", "prefixes": [ "v2", "02/15" ] }