get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 233,
    "url": "http://patchwork.ozlabs.org/api/patches/233/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1221083587-8091-3-git-send-email-yanok@emcraft.com/",
    "project": {
        "id": 2,
        "url": "http://patchwork.ozlabs.org/api/projects/2/?format=api",
        "name": "Linux PPC development",
        "link_name": "linuxppc-dev",
        "list_id": "linuxppc-dev.lists.ozlabs.org",
        "list_email": "linuxppc-dev@lists.ozlabs.org",
        "web_url": "https://github.com/linuxppc/wiki/wiki",
        "scm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git",
        "webscm_url": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/",
        "list_archive_url": "https://lore.kernel.org/linuxppc-dev/",
        "list_archive_url_format": "https://lore.kernel.org/linuxppc-dev/{}/",
        "commit_url_format": "https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id={}"
    },
    "msgid": "<1221083587-8091-3-git-send-email-yanok@emcraft.com>",
    "list_archive_url": "https://lore.kernel.org/linuxppc-dev/1221083587-8091-3-git-send-email-yanok@emcraft.com/",
    "date": "2008-09-10T21:53:07",
    "name": "mm: fix ENTRIES_PER_PAGEPAGE overflow with 256KB pages",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "8fdbaf012ee376a3f416fe7bcd899dfc8b349f0f",
    "submitter": {
        "id": 25,
        "url": "http://patchwork.ozlabs.org/api/people/25/?format=api",
        "name": "Ilya Yanok",
        "email": "yanok@emcraft.com"
    },
    "delegate": null,
    "mbox": "http://patchwork.ozlabs.org/project/linuxppc-dev/patch/1221083587-8091-3-git-send-email-yanok@emcraft.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/233/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/233/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<linuxppc-dev-bounces+patchwork=ozlabs.org@ozlabs.org>",
        "X-Original-To": [
            "patchwork@ozlabs.org",
            "linuxppc-dev@ozlabs.org"
        ],
        "Delivered-To": [
            "patchwork@ozlabs.org",
            "linuxppc-dev@ozlabs.org"
        ],
        "Received": [
            "from ozlabs.org (localhost [127.0.0.1])\n\tby ozlabs.org (Postfix) with ESMTP id AEF00DEAD1\n\tfor <patchwork@ozlabs.org>; Thu, 11 Sep 2008 07:54:42 +1000 (EST)",
            "from ocean.emcraft.com (ocean.emcraft.com [213.221.7.182])\n\t(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\n\t(Client did not present a certificate)\n\tby ozlabs.org (Postfix) with ESMTPS id F139DDE258\n\tfor <linuxppc-dev@ozlabs.org>; Thu, 11 Sep 2008 07:54:08 +1000 (EST)",
            "from [172.17.0.9] (helo=localhost.localdomain)\n\tby ocean.emcraft.com with esmtp (Exim 4.43)\n\tid 1KdXd5-0007Kn-Es; Thu, 11 Sep 2008 01:53:42 +0400"
        ],
        "From": "Ilya Yanok <yanok@emcraft.com>",
        "To": "linuxppc-dev@ozlabs.org",
        "Subject": "[PATCH] mm: fix ENTRIES_PER_PAGEPAGE overflow with 256KB pages",
        "Date": "Thu, 11 Sep 2008 01:53:07 +0400",
        "Message-Id": "<1221083587-8091-3-git-send-email-yanok@emcraft.com>",
        "X-Mailer": "git-send-email 1.5.6.5",
        "In-Reply-To": "<1221083587-8091-1-git-send-email-yanok@emcraft.com>",
        "References": "<1221083587-8091-1-git-send-email-yanok@emcraft.com>",
        "X-Spam-Score": "-4.3 (----)",
        "X-Spam-Report": "Spam detection software,\n\trunning on the system \"ocean.emcraft.com\", has\n\tidentified this incoming email as possible spam. The original message\n\thas been attached to this so you can view it (if it isn't spam) or\n\tlabel similar future email.  If you have any questions, see\n\tthe administrator of that system for details.\n\tContent preview: ENTRIES_PER_PAGEPAGE define in mm/shmem.c becomes\n\tzero\n\tif page size is 256KB. This patch fixes this. Signed-off-by: Ilya\n\tYanok\n\t<yanok@emcraft.com> --- mm/shmem.c | 6 +++--- 1 files changed, 3\n\tinsertions(+), 3 deletions(-) [...] \n\tContent analysis details:   (-4.3 points, 2.0 required)\n\tpts rule name              description\n\t---- ----------------------\n\t--------------------------------------------------\n\t-1.8 ALL_TRUSTED Passed through trusted hosts only via SMTP\n\t-2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1%\n\t[score: 0.0000]\n\t0.0 UPPERCASE_25_50        message body is 25-50% uppercase\n\t0.1 AWL AWL: From: address is in the auto white-list",
        "Cc": "Ilya Yanok <yanok@emcraft.com>, dzu@denx.de, wd@denx.de",
        "X-BeenThere": "linuxppc-dev@ozlabs.org",
        "X-Mailman-Version": "2.1.11",
        "Precedence": "list",
        "List-Id": "Linux on PowerPC Developers Mail List <linuxppc-dev.ozlabs.org>",
        "List-Unsubscribe": "<https://ozlabs.org/mailman/options/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@ozlabs.org?subject=unsubscribe>",
        "List-Archive": "<http://ozlabs.org/pipermail/linuxppc-dev>",
        "List-Post": "<mailto:linuxppc-dev@ozlabs.org>",
        "List-Help": "<mailto:linuxppc-dev-request@ozlabs.org?subject=help>",
        "List-Subscribe": "<https://ozlabs.org/mailman/listinfo/linuxppc-dev>,\n\t<mailto:linuxppc-dev-request@ozlabs.org?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "linuxppc-dev-bounces+patchwork=ozlabs.org@ozlabs.org",
        "Errors-To": "linuxppc-dev-bounces+patchwork=ozlabs.org@ozlabs.org"
    },
    "content": "ENTRIES_PER_PAGEPAGE define in mm/shmem.c becomes zero if page size is\n256KB. This patch fixes this.\n\nSigned-off-by: Ilya Yanok <yanok@emcraft.com>",
    "diff": "diff --git a/mm/shmem.c b/mm/shmem.c\nindex 04fb4f1..c603427 100644\n--- a/mm/shmem.c\n+++ b/mm/shmem.c\n@@ -59,7 +59,7 @@\n #define TMPFS_MAGIC\t0x01021994\n \n #define ENTRIES_PER_PAGE (PAGE_CACHE_SIZE/sizeof(unsigned long))\n-#define ENTRIES_PER_PAGEPAGE (ENTRIES_PER_PAGE*ENTRIES_PER_PAGE)\n+#define ENTRIES_PER_PAGEPAGE ((unsigned long long)ENTRIES_PER_PAGE*ENTRIES_PER_PAGE)\n #define BLOCKS_PER_PAGE  (PAGE_CACHE_SIZE/512)\n \n #define SHMEM_MAX_INDEX  (SHMEM_NR_DIRECT + (ENTRIES_PER_PAGEPAGE/2) * (ENTRIES_PER_PAGE+1))\n@@ -519,7 +519,7 @@ static void shmem_truncate_range(struct inode *inode, loff_t start, loff_t end)\n \tstruct shmem_inode_info *info = SHMEM_I(inode);\n \tunsigned long idx;\n \tunsigned long size;\n-\tunsigned long limit;\n+\tunsigned long long limit;\n \tunsigned long stage;\n \tunsigned long diroff;\n \tstruct page **dir;\n@@ -535,7 +535,7 @@ static void shmem_truncate_range(struct inode *inode, loff_t start, loff_t end)\n \tint punch_hole;\n \tspinlock_t *needs_lock;\n \tspinlock_t *punch_lock;\n-\tunsigned long upper_limit;\n+\tunsigned long long upper_limit;\n \n \tinode->i_ctime = inode->i_mtime = CURRENT_TIME;\n \tidx = (start + PAGE_CACHE_SIZE - 1) >> PAGE_CACHE_SHIFT;\n",
    "prefixes": []
}