get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 816552,
    "url": "http://patchwork.ozlabs.org/api/patches/816552/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20170920224605.22030-18-ebiggers3@gmail.com/",
    "project": {
        "id": 8,
        "url": "http://patchwork.ozlabs.org/api/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,
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20170920224605.22030-18-ebiggers3@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-20T22:45:57",
    "name": "[17/25] f2fs: switch to fscrypt_prepare_link()",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": true,
    "hash": "e4bac6fceb5f7e257c67f869d7b4264f5d1ae574",
    "submitter": {
        "id": 65202,
        "url": "http://patchwork.ozlabs.org/api/people/65202/?format=api",
        "name": "Eric Biggers",
        "email": "ebiggers3@gmail.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20170920224605.22030-18-ebiggers3@gmail.com/mbox/",
    "series": [
        {
            "id": 4249,
            "url": "http://patchwork.ozlabs.org/api/series/4249/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=4249",
            "date": "2017-09-20T22:45:40",
            "name": "fscrypt: add some higher-level helper functions",
            "version": 1,
            "mbox": "http://patchwork.ozlabs.org/series/4249/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/816552/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/816552/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linux-ext4-owner@vger.kernel.org>",
        "X-Original-To": "patchwork-incoming@ozlabs.org",
        "Delivered-To": "patchwork-incoming@ozlabs.org",
        "Authentication-Results": [
            "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=linux-ext4-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)",
            "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"LLS4T3XH\"; dkim-atps=neutral"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xyFHs6Bh1z9sRV\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 21 Sep 2017 08:47:37 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752010AbdITWrP (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tWed, 20 Sep 2017 18:47:15 -0400",
            "from mail-pf0-f195.google.com ([209.85.192.195]:33209 \"EHLO\n\tmail-pf0-f195.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751973AbdITWrK (ORCPT\n\t<rfc822; linux-ext4@vger.kernel.org>); Wed, 20 Sep 2017 18:47:10 -0400",
            "by mail-pf0-f195.google.com with SMTP id h4so1728642pfk.0;\n\tWed, 20 Sep 2017 15:47:10 -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.08\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 20 Sep 2017 15:47:09 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=gmail.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=ywnmT6n59+Xpv6fhlcK7gzredb959P8opuLuaqGP3qQ=;\n\tb=LLS4T3XHf8LZZeynHewIsS1jboFW+vz9Xtvdpy6Vo7bBAcIqFACzzQrnXzCSP6JJFt\n\t5ffeuzclPq2Qm57YyBpR8rAN2UK5I3TZRscq51KFPcKn038oMfLr5J6jSRJzK2teQ1Hd\n\tmTrOBywA7AwcKLIG9qhXqNhZjbANiPZdNwijK2smP11vvy461lQFI2WeyQI0CfomuQ6E\n\tMM/VgtRv13Zgcx89yuxT5b/KzIIpET/m2sYKe3KAbQfCsB3vd+5R0a2I7RseR8swWoGj\n\tccVLJrE+mF0gyYKidpynChYM/gqxKbGoLp+In9ueEMafwbO7F2jMIkA6vlDKg1jHpwtW\n\t0kPQ==",
        "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=ywnmT6n59+Xpv6fhlcK7gzredb959P8opuLuaqGP3qQ=;\n\tb=UIBwyiVqrZNukFg+4PM3NtjbqiRkEn8Kb5tLiaEo28vVjQXIPlDDZJPSzJWj6XGLFg\n\toJgeQofBKPmX4tSzQ+z6k8hi2C7JDOjw+4kmvWTtZTEbQuKEiZLUlrmFF04w60PKp4xv\n\tGv6OLDT8Po2JSPiAQa9LlenrnZGcDKuLuyN2FESSrv5HQYse+LBLqI02HfiDG+bnMcGC\n\tAhv/uFLIs2QV1UvTMrBVbx6HlRy6YsSdJ1HEpAM4Thz9cTERjIC7CALN8e9cdFLUC9bU\n\tSshJlvQ/uDYAKMPlLe8RAjggqljQbZN66tu5F9m2oAhlBr0ND0+zZF53lPZFxUJwa3Oq\n\tILag==",
        "X-Gm-Message-State": "AHPjjUhlRPPuK3qwmww94/ff52HjzB/z1pjbrsEJeR8jXFpBsBe54QO4\n\tVSoQ4CnoPSxgLh510SmdzlyF5bsQdzQ=",
        "X-Google-Smtp-Source": "AOwi7QD0QLa93r73SuYjXSLfkQ53JO+50SYfOcr/UYab2Td9qVEpjpTUkhjUPR5v17trh2oTtIa5qg==",
        "X-Received": "by 10.84.129.71 with SMTP id 65mr3492806plb.250.1505947629592;\n\tWed, 20 Sep 2017 15:47:09 -0700 (PDT)",
        "From": "Eric Biggers <ebiggers3@gmail.com>",
        "To": "linux-fscrypt@vger.kernel.org",
        "Cc": "linux-fsdevel@vger.kernel.org, linux-ext4@vger.kernel.org,\n\tlinux-f2fs-devel@lists.sourceforge.net,\n\tlinux-mtd@lists.infradead.org, \"Theodore Y . Ts'o\" <tytso@mit.edu>,\n\tJaegeuk Kim <jaegeuk@kernel.org>, Michael Halcrow <mhalcrow@google.com>,\n\tEric Biggers <ebiggers@google.com>",
        "Subject": "[PATCH 17/25] f2fs: switch to fscrypt_prepare_link()",
        "Date": "Wed, 20 Sep 2017 15:45:57 -0700",
        "Message-Id": "<20170920224605.22030-18-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>",
        "Sender": "linux-ext4-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<linux-ext4.vger.kernel.org>",
        "X-Mailing-List": "linux-ext4@vger.kernel.org"
    },
    "content": "From: Eric Biggers <ebiggers@google.com>\n\nSigned-off-by: Eric Biggers <ebiggers@google.com>\n---\n fs/f2fs/namei.c | 6 +++---\n 1 file changed, 3 insertions(+), 3 deletions(-)",
    "diff": "diff --git a/fs/f2fs/namei.c b/fs/f2fs/namei.c\nindex a4dab98c4b7b..cf4e4294e450 100644\n--- a/fs/f2fs/namei.c\n+++ b/fs/f2fs/namei.c\n@@ -221,9 +221,9 @@ static int f2fs_link(struct dentry *old_dentry, struct inode *dir,\n \tstruct f2fs_sb_info *sbi = F2FS_I_SB(dir);\n \tint err;\n \n-\tif (f2fs_encrypted_inode(dir) &&\n-\t\t\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 \tif (is_inode_flag_set(dir, FI_PROJ_INHERIT) &&\n \t\t\t(!projid_eq(F2FS_I(dir)->i_projid,\n",
    "prefixes": [
        "17/25"
    ]
}