Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/829952/?format=api
{ "id": 829952, "url": "http://patchwork.ozlabs.org/api/1.2/patches/829952/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20171024152415.22864-13-jack@suse.cz/", "project": { "id": 8, "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20171024152415.22864-13-jack@suse.cz>", "list_archive_url": null, "date": "2017-10-24T15:24:09", "name": "[12/17] mm: Define MAP_SYNC and VM_SYNC flags", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "44d626bdc978eaa30dc7cd84025fc4a9f2e8d4ff", "submitter": { "id": 363, "url": "http://patchwork.ozlabs.org/api/1.2/people/363/?format=api", "name": "Jan Kara", "email": "jack@suse.cz" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/linux-ext4/patch/20171024152415.22864-13-jack@suse.cz/mbox/", "series": [ { "id": 10008, "url": "http://patchwork.ozlabs.org/api/1.2/series/10008/?format=api", "web_url": "http://patchwork.ozlabs.org/project/linux-ext4/list/?series=10008", "date": "2017-10-24T15:23:57", "name": "dax, ext4, xfs: Synchronous page faults", "version": 5, "mbox": "http://patchwork.ozlabs.org/series/10008/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/829952/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/829952/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>)", "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3yLxvR3ltTz9t3s\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 25 Oct 2017 02:26:43 +1100 (AEDT)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S932354AbdJXP0V (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tTue, 24 Oct 2017 11:26:21 -0400", "from mx2.suse.de ([195.135.220.15]:36118 \"EHLO mx2.suse.de\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S932343AbdJXPZc (ORCPT <rfc822;linux-ext4@vger.kernel.org>);\n\tTue, 24 Oct 2017 11:25:32 -0400", "from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254])\n\tby mx2.suse.de (Postfix) with ESMTP id 29C13AD42;\n\tTue, 24 Oct 2017 15:25:28 +0000 (UTC)", "by quack2.suse.cz (Postfix, from userid 1000)\n\tid 6ACC61E35D2; Tue, 24 Oct 2017 17:25:27 +0200 (CEST)" ], "X-Virus-Scanned": "by amavisd-new at test-mx.suse.de", "From": "Jan Kara <jack@suse.cz>", "To": "Dan Williams <dan.j.williams@intel.com>", "Cc": "Ross Zwisler <ross.zwisler@linux.intel.com>,\n\tChristoph Hellwig <hch@infradead.org>,\n\t<linux-ext4@vger.kernel.org>, linux-nvdimm@lists.01.org,\n\t<linux-fsdevel@vger.kernel.org>, <linux-xfs@vger.kernel.org>,\n\tlinux-api@vger.kernel.org, <linux-mm@kvack.org>, Jan Kara <jack@suse.cz>", "Subject": "[PATCH 12/17] mm: Define MAP_SYNC and VM_SYNC flags", "Date": "Tue, 24 Oct 2017 17:24:09 +0200", "Message-Id": "<20171024152415.22864-13-jack@suse.cz>", "X-Mailer": "git-send-email 2.12.3", "In-Reply-To": "<20171024152415.22864-1-jack@suse.cz>", "References": "<20171024152415.22864-1-jack@suse.cz>", "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": "Define new MAP_SYNC flag and corresponding VMA VM_SYNC flag. As the\nMAP_SYNC flag is not part of LEGACY_MAP_MASK, currently it will be\nrefused by all MAP_SHARED_VALIDATE map attempts and silently ignored for\neverything else.\n\nReviewed-by: Ross Zwisler <ross.zwisler@linux.intel.com>\nReviewed-by: Christoph Hellwig <hch@lst.de>\nSigned-off-by: Jan Kara <jack@suse.cz>\n---\n fs/proc/task_mmu.c | 1 +\n include/linux/mm.h | 1 +\n include/linux/mman.h | 8 ++++++--\n include/uapi/asm-generic/mman.h | 1 +\n 4 files changed, 9 insertions(+), 2 deletions(-)", "diff": "diff --git a/fs/proc/task_mmu.c b/fs/proc/task_mmu.c\nindex 5589b4bd4b85..ea78b37deeaa 100644\n--- a/fs/proc/task_mmu.c\n+++ b/fs/proc/task_mmu.c\n@@ -664,6 +664,7 @@ static void show_smap_vma_flags(struct seq_file *m, struct vm_area_struct *vma)\n \t\t[ilog2(VM_ACCOUNT)]\t= \"ac\",\n \t\t[ilog2(VM_NORESERVE)]\t= \"nr\",\n \t\t[ilog2(VM_HUGETLB)]\t= \"ht\",\n+\t\t[ilog2(VM_SYNC)]\t= \"sf\",\n \t\t[ilog2(VM_ARCH_1)]\t= \"ar\",\n \t\t[ilog2(VM_WIPEONFORK)]\t= \"wf\",\n \t\t[ilog2(VM_DONTDUMP)]\t= \"dd\",\ndiff --git a/include/linux/mm.h b/include/linux/mm.h\nindex ca72b67153d5..5411cb7442de 100644\n--- a/include/linux/mm.h\n+++ b/include/linux/mm.h\n@@ -189,6 +189,7 @@ extern unsigned int kobjsize(const void *objp);\n #define VM_ACCOUNT\t0x00100000\t/* Is a VM accounted object */\n #define VM_NORESERVE\t0x00200000\t/* should the VM suppress accounting */\n #define VM_HUGETLB\t0x00400000\t/* Huge TLB Page VM */\n+#define VM_SYNC\t\t0x00800000\t/* Synchronous page faults */\n #define VM_ARCH_1\t0x01000000\t/* Architecture-specific flag */\n #define VM_WIPEONFORK\t0x02000000\t/* Wipe VMA contents in child. */\n #define VM_DONTDUMP\t0x04000000\t/* Do not include in the core dump */\ndiff --git a/include/linux/mman.h b/include/linux/mman.h\nindex 94b63b4d71ff..8f7cc87828e6 100644\n--- a/include/linux/mman.h\n+++ b/include/linux/mman.h\n@@ -9,7 +9,7 @@\n \n /*\n * Arrange for legacy / undefined architecture specific flags to be\n- * ignored by default in LEGACY_MAP_MASK.\n+ * ignored by mmap handling code.\n */\n #ifndef MAP_32BIT\n #define MAP_32BIT 0\n@@ -23,6 +23,9 @@\n #ifndef MAP_UNINITIALIZED\n #define MAP_UNINITIALIZED 0\n #endif\n+#ifndef MAP_SYNC\n+#define MAP_SYNC 0\n+#endif\n \n /*\n * The historical set of flags that all mmap implementations implicitly\n@@ -125,7 +128,8 @@ calc_vm_flag_bits(unsigned long flags)\n {\n \treturn _calc_vm_trans(flags, MAP_GROWSDOWN, VM_GROWSDOWN ) |\n \t _calc_vm_trans(flags, MAP_DENYWRITE, VM_DENYWRITE ) |\n-\t _calc_vm_trans(flags, MAP_LOCKED, VM_LOCKED );\n+\t _calc_vm_trans(flags, MAP_LOCKED, VM_LOCKED ) |\n+\t _calc_vm_trans(flags, MAP_SYNC,\t VM_SYNC );\n }\n \n unsigned long vm_commit_limit(void);\ndiff --git a/include/uapi/asm-generic/mman.h b/include/uapi/asm-generic/mman.h\nindex 7162cd4cca73..00e55627d2df 100644\n--- a/include/uapi/asm-generic/mman.h\n+++ b/include/uapi/asm-generic/mman.h\n@@ -12,6 +12,7 @@\n #define MAP_NONBLOCK\t0x10000\t\t/* do not block on IO */\n #define MAP_STACK\t0x20000\t\t/* give out an address that is best suited for process/thread stacks */\n #define MAP_HUGETLB\t0x40000\t\t/* create a huge page mapping */\n+#define MAP_SYNC\t0x80000\t\t/* perform synchronous page faults for the mapping */\n \n /* Bits [26:31] are reserved, see mman-common.h for MAP_HUGETLB usage */\n \n", "prefixes": [ "12/17" ] }