get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/816615/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 816615,
    "url": "http://patchwork.ozlabs.org/api/patches/816615/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/patch/20170920224605.22030-23-ebiggers3@gmail.com/",
    "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": "<20170920224605.22030-23-ebiggers3@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-20T22:46:02",
    "name": "[22/25] ubifs: switch to fscrypt_prepare_link()",
    "commit_ref": null,
    "pull_url": null,
    "state": "deferred",
    "archived": false,
    "hash": "6dd9b3e45dcdcea00997059dbc7ed0df3e059a45",
    "submitter": {
        "id": 65202,
        "url": "http://patchwork.ozlabs.org/api/people/65202/?format=api",
        "name": "Eric Biggers",
        "email": "ebiggers3@gmail.com"
    },
    "delegate": {
        "id": 54851,
        "url": "http://patchwork.ozlabs.org/api/users/54851/?format=api",
        "username": "rw",
        "first_name": "Richard",
        "last_name": "Weinberger",
        "email": "richard@nod.at"
    },
    "mbox": "http://patchwork.ozlabs.org/project/linux-mtd/patch/20170920224605.22030-23-ebiggers3@gmail.com/mbox/",
    "series": [
        {
            "id": 4250,
            "url": "http://patchwork.ozlabs.org/api/series/4250/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/list/?series=4250",
            "date": "2017-09-20T22:45:45",
            "name": "fscrypt: add some higher-level helper functions",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/4250/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/816615/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/816615/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org>",
        "X-Original-To": "incoming@patchwork.ozlabs.org",
        "Delivered-To": "patchwork-incoming@bilbo.ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org; spf=none (mailfrom)\n\tsmtp.mailfrom=lists.infradead.org (client-ip=65.50.211.133;\n\thelo=bombadil.infradead.org;\n\tenvelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=lists.infradead.org\n\theader.i=@lists.infradead.org header.b=\"RYKFRJ7+\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=infradead.org header.i=@infradead.org\n\theader.b=\"kI43+5ar\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"V05ytSsS\"; dkim-atps=neutral"
        ],
        "Received": [
            "from bombadil.infradead.org (bombadil.infradead.org\n\t[65.50.211.133])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256\n\tbits)) (No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xyGhN3lMQz9sPm\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 21 Sep 2017 09:50:26 +1000 (AEST)",
            "from localhost ([127.0.0.1] helo=bombadil.infradead.org)\n\tby bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux))\n\tid 1duokz-000298-Fr; Wed, 20 Sep 2017 23:50:17 +0000",
            "from merlin.infradead.org ([2001:8b0:10b:1231::1])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1duok1-0001Bu-91\n\tfor linux-mtd@bombadil.infradead.org; Wed, 20 Sep 2017 23:49:17 +0000",
            "from mail-pf0-x243.google.com ([2607:f8b0:400e:c00::243])\n\tby merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dunmL-00017k-98\n\tfor linux-mtd@lists.infradead.org; Wed, 20 Sep 2017 22:47:38 +0000",
            "by mail-pf0-x243.google.com with SMTP id a7so1717877pfj.5\n\tfor <linux-mtd@lists.infradead.org>;\n\tWed, 20 Sep 2017 15:47:16 -0700 (PDT)",
            "from ebiggers-linuxstation.kir.corp.google.com ([100.66.174.81])\n\tby smtp.gmail.com with ESMTPSA id j2sm6249pgn.26.2017.09.20.15.47.14\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 20 Sep 2017 15:47:14 -0700 (PDT)"
        ],
        "DKIM-Signature": [
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=lists.infradead.org; s=bombadil.20170209; h=Sender:\n\tContent-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe:\n\tList-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References:\n\tIn-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID:\n\tContent-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc\n\t:Resent-Message-ID:List-Owner;\n\tbh=f3OL3WY2I/4wH5iQ18aT0h8mU8yXM488bTD8Mba66So=;\n\tb=RYKFRJ7+7ABn6cdVytCO4heVEl\n\t1N3cnGZEc5uTQb/ZuOAPe0j4uZR0LogciFVG8ms9eX6tmERqcS5u+lRW4jdtM8T/OBtTWurJa1gQt\n\td31fNAsM6ImQGzQMfNHlmUp/REpKWkBSerFU48GyTWh8Bl0Cxt1VuiuMV3aLqeamkMAQVgnFkq2Pi\n\tMYwuKgcmB+E6K2Kd4RA1JhjLMJy31uUCQFY77xV9knAm9aGdDuJI7NQ7fCuU3W7h3mayyJ8h/sCQk\n\tww4XPEaGLq4+tn7Ae10yhxa0Qpbo5TKpK4w7GDPiRq2NlQnFDuxGhsD1WwQOmWlnBG5diOrOliitf\n\t7aNJ55vw==;",
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=infradead.org; s=merlin.20170209;\n\th=References:In-Reply-To:Message-Id:Date:\n\tSubject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type:\n\tContent-Transfer-Encoding:Content-ID:Content-Description:Resent-Date:\n\tResent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:\n\tList-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive;\n\tbh=5PybDI8cOBLVG5Z56DnOikm/sdc+J5uxv9MOaClgZv8=;\n\tb=kI43+5arX1kom2s+tTuNVCFE5\n\to+T6laPGNfUPODcf8pJLKdeTVVIZDBEwdjqRb/cNwxgZc4ZtEu85vq5KN1ndEcgnK9HD8EyV0fAlc\n\teAxzO7PdiLZ2cz3gjvdg8REY9s4F4vRB4dI5pqV17oE6YKauS31pyzf+P8/vrjv3OStCybuz5m1dd\n\tnpUeji4kG7YD9mX63uxsS26uf+wNsokKFDaYGkzC0WSUZZx/NoV54vsiwNK7bB9Lgqlj93lVMg8fF\n\tTsd3UM/WVOty8Og3az+ejPLQ3UfBR+UNm/v2Y09VXUsnuRKXwhqmnVfZVnmwcEXbCz3RHfgB5qSfH\n\t6G0yPr0SQ==;",
            "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=5PybDI8cOBLVG5Z56DnOikm/sdc+J5uxv9MOaClgZv8=;\n\tb=V05ytSsSDj5vTsHc+JjgI6Dh20+zZvEoYZwWXLhmSXtS4/SYb1cyTTv3IYBCsk8C+s\n\tcy9JmacRCKl1oUloYgqIA5fHhpQdjvi4tovsIqgGhUURQqpbzDLprFO19xIQwNmEX3Bi\n\tWgdmvJyQCfs49p/BbzyPTFbX3FOXYwegwgQJQDXXgddjXC7QbI5MVNK+pn+kDiCuTKlC\n\tPnsfS5cMT+LTumsW1+fTSCiC6mOQQCyhcfNTItgbiVjLBPSI8njYRrIvoekpI1DaPlRw\n\tfd9NHeqi1AHQVc3PHZt+EVb7f3VogdsNeemX05J91iqdoDqzbWZKckNGjSVpVWeD/pXb\n\t7IWw=="
        ],
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=5PybDI8cOBLVG5Z56DnOikm/sdc+J5uxv9MOaClgZv8=;\n\tb=TN4w6iYbHhuulZxFU42/jCbQiNYSCPF203uvHPqAxnAgAyWrIWai/4RPEiUcK0sBiy\n\ta9PH4i7uMltqjvfYxDx0TL9LUeOW9siNVRuWFfAqzDqMjM17kWnOvFF+p5VOFTUBN4WX\n\tkBmsd2juLR/RuCrOJuI1poDxkoMjwHX7tmfHJj5LBuH+gpnZyrpVCUEOD0ZUdVcdLUGm\n\tSvp925o6fhkBn17uOlT7K1zkyokRgRTwG6e9a+qswD4T4d73XLJi/v3Zb3A87DcbD/Aq\n\tD2X5+Vt28KR7C1UXM8k+n2cqa0X/Un2AGpGd82I5sPGT1Nl39hwAsmJqdIukbTMaG34D\n\tzSkQ==",
        "X-Gm-Message-State": "AHPjjUjxUnehy3J4Gx3LEAQJQFXBAMgH7v8VU7S5cCiywAEAzPVLjQC7\n\tmCDGI2EnwdBoIjvlrmyyYsY=",
        "X-Google-Smtp-Source": "AOwi7QBhgnei7emHNPiDdv42pXNMtV8cAULQVh4gYzVxNsjQAaDxxn8QVvVoll8R84v6AleUqXZ5ig==",
        "X-Received": "by 10.84.211.36 with SMTP id b33mr3625976pli.47.1505947635030;\n\tWed, 20 Sep 2017 15:47:15 -0700 (PDT)",
        "From": "Eric Biggers <ebiggers3@gmail.com>",
        "To": "linux-fscrypt@vger.kernel.org",
        "Subject": "[PATCH 22/25] ubifs: switch to fscrypt_prepare_link()",
        "Date": "Wed, 20 Sep 2017 15:46:02 -0700",
        "Message-Id": "<20170920224605.22030-23-ebiggers3@gmail.com>",
        "X-Mailer": "git-send-email 2.14.1.821.g8fa685d3b7-goog",
        "In-Reply-To": "<20170920224605.22030-1-ebiggers3@gmail.com>",
        "References": "<20170920224605.22030-1-ebiggers3@gmail.com>",
        "X-Spam-Note": "CRM114 invocation failed",
        "X-Spam-Score": "-1.8 (-)",
        "X-Spam-Report": "SpamAssassin version 3.4.1 on merlin.infradead.org summary:\n\tContent analysis details:   (-1.8 points)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/,\n\tno\n\ttrust [2607:f8b0:400e:c00:0:0:0:243 listed in] [list.dnswl.org]\n\t0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends\n\tin digit (ebiggers3[at]gmail.com)\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail\n\tprovider (ebiggers3[at]gmail.com)\n\t-1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%\n\t[score: 0.0000]\n\t0.1 DKIM_SIGNED            Message has a DKIM or DK signature,\n\tnot necessarily valid\n\t-0.1 DKIM_VALID Message has at least one valid DKIM or DK signature\n\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain",
        "X-BeenThere": "linux-mtd@lists.infradead.org",
        "X-Mailman-Version": "2.1.21",
        "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\t<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\t<mailto:linux-mtd-request@lists.infradead.org?subject=subscribe>",
        "Cc": "\"Theodore Y . Ts'o\" <tytso@mit.edu>, Eric Biggers <ebiggers@google.com>, \n\tMichael Halcrow <mhalcrow@google.com>,\n\tlinux-f2fs-devel@lists.sourceforge.net, \n\tlinux-mtd@lists.infradead.org, linux-fsdevel@vger.kernel.org,\n\tJaegeuk Kim <jaegeuk@kernel.org>, linux-ext4@vger.kernel.org",
        "MIME-Version": "1.0",
        "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": "From: Eric Biggers <ebiggers@google.com>\n\nSigned-off-by: Eric Biggers <ebiggers@google.com>\n---\n fs/ubifs/dir.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/fs/ubifs/dir.c b/fs/ubifs/dir.c\nindex 417fe0b29f23..09e6c56b11bc 100644\n--- a/fs/ubifs/dir.c\n+++ b/fs/ubifs/dir.c\n@@ -743,9 +743,9 @@ static int ubifs_link(struct dentry *old_dentry, struct inode *dir,\n \tubifs_assert(inode_is_locked(dir));\n \tubifs_assert(inode_is_locked(inode));\n \n-\tif (ubifs_crypt_is_encrypted(dir) &&\n-\t    !fscrypt_has_permitted_context(dir, inode))\n-\t\treturn -EPERM;\n+\terr = fscrypt_prepare_link(old_dentry, dir, dentry);\n+\tif (err)\n+\t\treturn err;\n \n \terr = fscrypt_setup_filename(dir, &dentry->d_name, 0, &nm);\n \tif (err)\n",
    "prefixes": [
        "22/25"
    ]
}