get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 816547,
    "url": "http://patchwork.ozlabs.org/api/patches/816547/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20170920224605.22030-17-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-17-ebiggers3@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-20T22:45:56",
    "name": "[16/25] f2fs: switch to fscrypt_file_open()",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": true,
    "hash": "12dc426051d9d8d6dfeeb6e0598c449bf46bf829",
    "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-17-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/816547/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/816547/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=\"NgTwGUYd\"; dkim-atps=neutral"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xyFHV1THPz9sPk\n\tfor <patchwork-incoming@ozlabs.org>;\n\tThu, 21 Sep 2017 08:47:18 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752039AbdITWrQ (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tWed, 20 Sep 2017 18:47:16 -0400",
            "from mail-pf0-f194.google.com ([209.85.192.194]:36388 \"EHLO\n\tmail-pf0-f194.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751899AbdITWrJ (ORCPT\n\t<rfc822; linux-ext4@vger.kernel.org>); Wed, 20 Sep 2017 18:47:09 -0400",
            "by mail-pf0-f194.google.com with SMTP id f84so1721686pfj.3;\n\tWed, 20 Sep 2017 15:47:09 -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.07\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tWed, 20 Sep 2017 15:47:08 -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=lWFOShztuG2e44vH8e1SgZf/UIwGJpJgCSa+VYbcXO4=;\n\tb=NgTwGUYdOUjO/fXYhw2ld4SZkileaQ+9XFm1uzpt1ObOHN8vIXW0004SALfA4k007s\n\tPCFsFkaugfIbP8yXm+ZELQwbLOEkIbInasImNw1YyHLI3XBxjHIHw6WGeN5hyYIPv23r\n\t3LsyS2uuNyTW1OUMiihUrHx55OXiFC9RbTZKLFz3FBgkQoufFhWiY6MXhIWRHKPMu6Vz\n\tBgIi7W4FuVgqogVoh4EJW3BBj6wWvoKPb62LRJ1W+ood82UvFWdDR2wgls5zblDDuapX\n\tnyosoWThF9ByPpEYZ9nIxiR7VOnuCTAa5r3qn434zDgGiKR8PgHhy9GiwrAz9X2dtn7N\n\tiZKg==",
        "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=lWFOShztuG2e44vH8e1SgZf/UIwGJpJgCSa+VYbcXO4=;\n\tb=U03DaF5ylInzMcApg6ap7bdrpGv61MnAT32jewrJ7MoG7ciyzdrzUxtlrNEn3XpS6b\n\tR7BXkfizEdvFFyVXd23sajQ/vw4QEro46MmP/jrOq50eY3m1ng3UpXNHPN/oHswjayFw\n\twizHGzXmsiZefavplLaitORuESzkVb92u3lvwUtahss4JvYDEmj9jwWDyKdMHn+T5zQ/\n\tjZeLxJj3Aysjfsu6BpxzvjZfIbiKOpNE+3w+4cQjQvya4rncdW/5nKYv5+IAKqC4mhZC\n\txtUCXHimFIWosGw0AuoaZMlRSREq5UOmtB9UECDjP48UNlCUgnIPuUtFSpTgFFWW5kyj\n\t9kgQ==",
        "X-Gm-Message-State": "AHPjjUhOdYRkmMmtdm95HDSITRPg8jCPaNtw6puMiE/5Ze6oOjBlofBT\n\tNY6zWj/EJjlWyoMwvKIxZ1QhlWQp/Ts=",
        "X-Google-Smtp-Source": "AOwi7QAH1K8wlhT8uaaAMUDMhjqW0utGUe71+/SneycNajOruJVSL1mIOwZkmX3djJPL+pQ45IyukQ==",
        "X-Received": "by 10.98.157.139 with SMTP id a11mr3733281pfk.70.1505947628626; \n\tWed, 20 Sep 2017 15:47:08 -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 16/25] f2fs: switch to fscrypt_file_open()",
        "Date": "Wed, 20 Sep 2017 15:45:56 -0700",
        "Message-Id": "<20170920224605.22030-17-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/file.c | 18 +++---------------\n 1 file changed, 3 insertions(+), 15 deletions(-)",
    "diff": "diff --git a/fs/f2fs/file.c b/fs/f2fs/file.c\nindex 517e112c8a9a..8cef3931a00b 100644\n--- a/fs/f2fs/file.c\n+++ b/fs/f2fs/file.c\n@@ -455,22 +455,10 @@ static int f2fs_file_mmap(struct file *file, struct vm_area_struct *vma)\n \n static int f2fs_file_open(struct inode *inode, struct file *filp)\n {\n-\tstruct dentry *dir;\n+\tint err = fscrypt_file_open(inode, filp);\n \n-\tif (f2fs_encrypted_inode(inode)) {\n-\t\tint ret = fscrypt_get_encryption_info(inode);\n-\t\tif (ret)\n-\t\t\treturn -EACCES;\n-\t\tif (!fscrypt_has_encryption_key(inode))\n-\t\t\treturn -ENOKEY;\n-\t}\n-\tdir = dget_parent(file_dentry(filp));\n-\tif (f2fs_encrypted_inode(d_inode(dir)) &&\n-\t\t\t!fscrypt_has_permitted_context(d_inode(dir), inode)) {\n-\t\tdput(dir);\n-\t\treturn -EPERM;\n-\t}\n-\tdput(dir);\n+\tif (err)\n+\t\treturn err;\n \treturn dquot_file_open(inode, filp);\n }\n \n",
    "prefixes": [
        "16/25"
    ]
}