get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 816599,
    "url": "http://patchwork.ozlabs.org/api/patches/816599/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linux-mtd/patch/20170920224605.22030-16-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-16-ebiggers3@gmail.com>",
    "list_archive_url": null,
    "date": "2017-09-20T22:45:55",
    "name": "[15/25] ext4: switch to fscrypt_prepare_setattr()",
    "commit_ref": null,
    "pull_url": null,
    "state": "not-applicable",
    "archived": false,
    "hash": "6591071d3fafea769728b32e8c7c67266d4549fa",
    "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-mtd/patch/20170920224605.22030-16-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/816599/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/816599/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=\"Su4AnrJI\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=infradead.org header.i=@infradead.org\n\theader.b=\"NNb4ykAc\"; \n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com\n\theader.b=\"Tq8AbgOE\"; 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 3xyFww4tm6z9sNr\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 21 Sep 2017 09:16:16 +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 1duoDw-0002q5-Bp; Wed, 20 Sep 2017 23:16:08 +0000",
            "from casper.infradead.org ([2001:8b0:10b:1236::1])\n\tby bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1duoAr-0006fH-0a\n\tfor linux-mtd@bombadil.infradead.org; Wed, 20 Sep 2017 23:12:57 +0000",
            "from mail-pg0-x243.google.com ([2607:f8b0:400e:c05::243])\n\tby casper.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux))\n\tid 1dunmA-0004sv-63\n\tfor linux-mtd@lists.infradead.org; Wed, 20 Sep 2017 22:47:27 +0000",
            "by mail-pg0-x243.google.com with SMTP id v5so2365456pgn.4\n\tfor <linux-mtd@lists.infradead.org>;\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:07 -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=quXsP9MloM2wIIJYtoU49i9LNbaRY6n/qYDZ1pGQHuE=;\n\tb=Su4AnrJIiS3aACvImOpGwdXO4b\n\thuxgUsA6Y3klOZQg3cuOtb3yAm8wvMupli0d7CV/WoSSvG4aJ7lS3Z2BEoAbj5IMM0vAyt5uFD1st\n\t2ZDHbqjBuznwmBZg5d+lziuy32DktIFokTsCUAOidb0pmMOaZ/UauPRZ4X66WmtUIX5hdzLJo6MHD\n\tjkEKPvMLPHf3PJKQTzHARbXGzcxqGJPGxzTywKcYgfuFc82oMb9R5Q3x9xixB6ZNP8DGpdQAaWuPA\n\tUtvqe3MnLVdKFPBl3mgFLwirFdUKAHZczJKaugX85svPHUVleY0QHCTAomaYCqBh49LZzvp6s/Vx4\n\tc5xubjog==;",
            "v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;\n\td=infradead.org; s=casper.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=IggHwABRZFA4QcnHeUfeWTo3vHu5MJz9hAOmovqjsmc=;\n\tb=NNb4ykAc9PYKguOn+At5ReYbp\n\tAgYvS7zWdTYSpAvddYZVJcY8Du3AmxsysD4y0D7usbMYeTKfOKgao+aekv1X2pVPqJCXffOFIhvhB\n\txt0/92mRWCPhI+OfUc3S471LjpqWZvG4LsXKMVtRM976KZ1eOIf3CDNtl1btKnLkHe3OPxEMBt1rw\n\tmfZts8OMoxuIPJv4rTI+aB/iXgd/Jd5i8DaWXgzE1zjGXq7DvuwSgKqlMGHzVtd2/aBmi/lEaI/k1\n\tS8/Ni7GNdCdAq2fVImqCrKuu3WbFgjfOkEnQZRGaenqWcmjX7clWSTCM28CGs0RAaz6bzLL5yS4zP\n\tRb5ws1NOA==;",
            "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=IggHwABRZFA4QcnHeUfeWTo3vHu5MJz9hAOmovqjsmc=;\n\tb=Tq8AbgOEcuQEvMA6z0iwMbYdEHQN/t+LyWxtSU7IOzucc6wdbMEM16rBAJFXH5U2xm\n\taWQDoGBnKbgWDv5E+8Kw/36+vE8Lo0Qj3M2Pi6PKHqBRvjvWKj/Ho/eNpjOxJUEz9DFT\n\tKqSAHdGDphLcr/8+9iiLyVNOBN0b58V6sv7dogYy9WBpIxQgURmGm7CTMaEFvKYvKqps\n\t0XuBqoLYrlo2F9nT6oYCLuD+c08obL9Qs57iV2Bh5I8B306mP31Q1P2GvZgi7Gl6l0Kq\n\thgA6J9ckS8vVNjctg3ZYRE4OgQklAOnRXR9YSGx1X3/hvc25aQkJ8uFfMZW91lKVt8wL\n\ttDDQ=="
        ],
        "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=IggHwABRZFA4QcnHeUfeWTo3vHu5MJz9hAOmovqjsmc=;\n\tb=hW/nOsbr24uFXVHjVnWOOE0Yd6iTzlhPDDuXXZQDlvoV4p/FTmCjVs+D/oGxNMrLsV\n\tTCxvXbGu95uBkNzMI1hbr7QO1TWFIEZVJHNeHWe5cxhV/fT9VKou45/eamSiVk/Pjz79\n\tKNpinGIMB8AZbgjId6hHirxqwJwrWVfdt8JX99SfGFa1zSvR2NoNylF4OSJm1UH68YGc\n\t8ejZooZAyWp+6V1iZ0xFTHkLUr8v0TKRtw6RV8SNcnfejLO2Tjxl7+9uaaio4HJ/p83S\n\tnOEhsmj+krU30fpk1BQAU4oaG6MgRxHAnE68nxH9//7T69HVYpMmyK6l8wLjTFfPjVzR\n\tq3kg==",
        "X-Gm-Message-State": "AHPjjUh+ON83ak1S5CPWvpr3US8y9FXkYex1Nmn9s1XmmaCEGCefVeew\n\tbAfvsgkwdiPBSFfI5vo9/W0=",
        "X-Google-Smtp-Source": "AOwi7QDu9zLe9MpV2DEY8V5dX957ETiMp/SmMH349YX3kQs/5nXlouGJ2Z29Awi0NhxQ+BmfuH9MJg==",
        "X-Received": "by 10.84.216.87 with SMTP id f23mr3512435plj.307.1505947627777; \n\tWed, 20 Sep 2017 15:47:07 -0700 (PDT)",
        "From": "Eric Biggers <ebiggers3@gmail.com>",
        "To": "linux-fscrypt@vger.kernel.org",
        "Subject": "[PATCH 15/25] ext4: switch to fscrypt_prepare_setattr()",
        "Date": "Wed, 20 Sep 2017 15:45:55 -0700",
        "Message-Id": "<20170920224605.22030-16-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-CRM114-Version": "20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 ",
        "X-CRM114-CacheID": "sfid-20170920_234726_375441_4E2BDD95 ",
        "X-CRM114-Status": "GOOD (  10.96  )",
        "X-Spam-Score": "-1.8 (-)",
        "X-Spam-Report": "SpamAssassin version 3.4.1 on casper.infradead.org summary:\n\tContent analysis details:   (-1.8 points, 5.0 required)\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:c05:0:0:0:243 listed in] [list.dnswl.org]\n\t-0.0 SPF_PASS               SPF: sender matches SPF record\n\t0.2 FREEMAIL_ENVFROM_END_DIGIT Envelope-from freemail username ends\n\tin digit (ebiggers3[at]gmail.com)\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\t-0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from\n\tauthor's domain\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",
        "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/ext4/inode.c | 12 ++++--------\n 1 file changed, 4 insertions(+), 8 deletions(-)",
    "diff": "diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c\nindex d5a471939fbc..617c7feced24 100644\n--- a/fs/ext4/inode.c\n+++ b/fs/ext4/inode.c\n@@ -5311,6 +5311,10 @@ int ext4_setattr(struct dentry *dentry, struct iattr *attr)\n \tif (error)\n \t\treturn error;\n \n+\terror = fscrypt_prepare_setattr(dentry, attr);\n+\tif (error)\n+\t\treturn error;\n+\n \tif (is_quota_modification(inode, attr)) {\n \t\terror = dquot_initialize(inode);\n \t\tif (error)\n@@ -5356,14 +5360,6 @@ int ext4_setattr(struct dentry *dentry, struct iattr *attr)\n \t\tloff_t oldsize = inode->i_size;\n \t\tint shrink = (attr->ia_size <= inode->i_size);\n \n-\t\tif (ext4_encrypted_inode(inode)) {\n-\t\t\terror = fscrypt_get_encryption_info(inode);\n-\t\t\tif (error)\n-\t\t\t\treturn error;\n-\t\t\tif (!fscrypt_has_encryption_key(inode))\n-\t\t\t\treturn -ENOKEY;\n-\t\t}\n-\n \t\tif (!(ext4_test_inode_flag(inode, EXT4_INODE_EXTENTS))) {\n \t\t\tstruct ext4_sb_info *sbi = EXT4_SB(inode->i_sb);\n \n",
    "prefixes": [
        "15/25"
    ]
}