)]}'
{
  "commit": "8feae13110d60cc6287afabc2887366b0eb226c2",
  "tree": "b3188986faab70e753e00ea8670a11ba8ec844c0",
  "parents": [
    "41836382ebb415d68d3ebc4525e78e871fe58baf"
  ],
  "author": {
    "name": "David Howells",
    "email": "dhowells@redhat.com",
    "time": "Thu Jan 08 12:04:47 2009 +0000"
  },
  "committer": {
    "name": "David Howells",
    "email": "dhowells@redhat.com",
    "time": "Thu Jan 08 12:04:47 2009 +0000"
  },
  "message": "NOMMU: Make VMAs per MM as for MMU-mode linux\n\nMake VMAs per mm_struct as for MMU-mode linux.  This solves two problems:\n\n (1) In SYSV SHM where nattch for a segment does not reflect the number of\n     shmat\u0027s (and forks) done.\n\n (2) In mmap() where the VMA\u0027s vm_mm is set to point to the parent mm by an\n     exec\u0027ing process when VM_EXECUTABLE is specified, regardless of the fact\n     that a VMA might be shared and already have its vm_mm assigned to another\n     process or a dead process.\n\nA new struct (vm_region) is introduced to track a mapped region and to remember\nthe circumstances under which it may be shared and the vm_list_struct structure\nis discarded as it\u0027s no longer required.\n\nThis patch makes the following additional changes:\n\n (1) Regions are now allocated with alloc_pages() rather than kmalloc() and\n     with no recourse to __GFP_COMP, so the pages are not composite.  Instead,\n     each page has a reference on it held by the region.  Anything else that is\n     interested in such a page will have to get a reference on it to retain it.\n     When the pages are released due to unmapping, each page is passed to\n     put_page() and will be freed when the page usage count reaches zero.\n\n (2) Excess pages are trimmed after an allocation as the allocation must be\n     made as a power-of-2 quantity of pages.\n\n (3) VMAs are added to the parent MM\u0027s R/B tree and mmap lists.  As an MM may\n     end up with overlapping VMAs within the tree, the VMA struct address is\n     appended to the sort key.\n\n (4) Non-anonymous VMAs are now added to the backing inode\u0027s prio list.\n\n (5) Holes may be punched in anonymous VMAs with munmap(), releasing parts of\n     the backing region.  The VMA and region structs will be split if\n     necessary.\n\n (6) sys_shmdt() only releases one attachment to a SYSV IPC shared memory\n     segment instead of all the attachments at that addresss.  Multiple\n     shmat()\u0027s return the same address under NOMMU-mode instead of different\n     virtual addresses as under MMU-mode.\n\n (7) Core dumping for ELF-FDPIC requires fewer exceptions for NOMMU-mode.\n\n (8) /proc/maps is now the global list of mapped regions, and may list bits\n     that aren\u0027t actually mapped anywhere.\n\n (9) /proc/meminfo gains a line (tagged \"MmapCopy\") that indicates the amount\n     of RAM currently allocated by mmap to hold mappable regions that can\u0027t be\n     mapped directly.  These are copies of the backing device or file if not\n     anonymous.\n\nThese changes make NOMMU mode more similar to MMU mode.  The downside is that\nNOMMU mode requires some extra memory to track things over NOMMU without this\npatch (VMAs are no longer shared, and there are now region structs).\n\nSigned-off-by: David Howells \u003cdhowells@redhat.com\u003e\nTested-by: Mike Frysinger \u003cvapier.adi@gmail.com\u003e\nAcked-by: Paul Mundt \u003clethal@linux-sh.org\u003e\n",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "7714f57caad5b4312e7289761c0561c68b822049",
      "old_mode": 33188,
      "old_path": "Documentation/nommu-mmap.txt",
      "new_id": "02b89dcf38ac599c1dcca687f1ba763912232017",
      "new_mode": 33188,
      "new_path": "Documentation/nommu-mmap.txt"
    },
    {
      "type": "modify",
      "old_id": "53099d4ee4211d072741841a6513aebf74161a54",
      "old_mode": 33188,
      "old_path": "arch/arm/include/asm/mmu.h",
      "new_id": "b561584d04a18ef6c631d1e05d69f6ff4b22d194",
      "new_mode": 33188,
      "new_path": "arch/arm/include/asm/mmu.h"
    },
    {
      "type": "modify",
      "old_id": "757e43906ed4b45b5b3bf410ecb24db3f946ef0b",
      "old_mode": 33188,
      "old_path": "arch/blackfin/include/asm/mmu.h",
      "new_id": "dbfd686360e6bf65dd0aa0f5a7dc2f178b84f377",
      "new_mode": 33188,
      "new_path": "arch/blackfin/include/asm/mmu.h"
    },
    {
      "type": "modify",
      "old_id": "d2d3885366304ea38826c0c2897c0a4008184c20",
      "old_mode": 33188,
      "old_path": "arch/blackfin/kernel/ptrace.c",
      "new_id": "594e325b40e4fa078ce1c7aee07041a20a0ac4d0",
      "new_mode": 33188,
      "new_path": "arch/blackfin/kernel/ptrace.c"
    },
    {
      "type": "modify",
      "old_id": "17d8e4172896c6dabfe3e48eb122b6e517d0435f",
      "old_mode": 33188,
      "old_path": "arch/blackfin/kernel/traps.c",
      "new_id": "5b0667da8d05ef3256c3b403111075028ef31bb7",
      "new_mode": 33188,
      "new_path": "arch/blackfin/kernel/traps.c"
    },
    {
      "type": "modify",
      "old_id": "709e9bdc6126de06417624a0edd8297dca38dc22",
      "old_mode": 33188,
      "old_path": "arch/frv/kernel/ptrace.c",
      "new_id": "5e7d401d21e7d6455883f118213a040e97754fbf",
      "new_mode": 33188,
      "new_path": "arch/frv/kernel/ptrace.c"
    },
    {
      "type": "modify",
      "old_id": "2ce06ea46104c36cb8f59e9c65abc6d4f437c9bd",
      "old_mode": 33188,
      "old_path": "arch/h8300/include/asm/mmu.h",
      "new_id": "31309969df705ce5c2a80b8638cb6ceac8e0ef9a",
      "new_mode": 33188,
      "new_path": "arch/h8300/include/asm/mmu.h"
    },
    {
      "type": "modify",
      "old_id": "5fa6b68353bab9403e1f9bbd543880427516c5d7",
      "old_mode": 33188,
      "old_path": "arch/m68knommu/include/asm/mmu.h",
      "new_id": "e2da1e6f09fe4c16a1576a407ca168d296edd141",
      "new_mode": 33188,
      "new_path": "arch/m68knommu/include/asm/mmu.h"
    },
    {
      "type": "modify",
      "old_id": "fdcb93bc6d11d3126093409580f9243e7d1b1e8a",
      "old_mode": 33188,
      "old_path": "arch/sh/include/asm/mmu.h",
      "new_id": "6c43625bb1a5ecbee71f8249546e297178ab8980",
      "new_mode": 33188,
      "new_path": "arch/sh/include/asm/mmu.h"
    },
    {
      "type": "modify",
      "old_id": "aa5b43205e3732a622e849d157b6227bb722ca81",
      "old_mode": 33188,
      "old_path": "fs/binfmt_elf_fdpic.c",
      "new_id": "22baf1b134934ac1634f79ac75a2432a8eee52cd",
      "new_mode": 33188,
      "new_path": "fs/binfmt_elf_fdpic.c"
    },
    {
      "type": "modify",
      "old_id": "3e8aeb8b61ce251601f8795d3f6bd4fd423beed0",
      "old_mode": 33188,
      "old_path": "fs/proc/internal.h",
      "new_id": "cd53ff838498de03973494d6a70ddae9f193a1ce",
      "new_mode": 33188,
      "new_path": "fs/proc/internal.h"
    },
    {
      "type": "modify",
      "old_id": "b1675c4e66dae952d5b1dfbf0eade72f83077b7f",
      "old_mode": 33188,
      "old_path": "fs/proc/meminfo.c",
      "new_id": "43d23948384addca6930aa65acbf49804226827f",
      "new_mode": 33188,
      "new_path": "fs/proc/meminfo.c"
    },
    {
      "type": "modify",
      "old_id": "3f87d2632947371b47df580c32d041fb39bb91ba",
      "old_mode": 33188,
      "old_path": "fs/proc/nommu.c",
      "new_id": "b446d7ad0b0da469f02521c451b98ec8cc1bed32",
      "new_mode": 33188,
      "new_path": "fs/proc/nommu.c"
    },
    {
      "type": "modify",
      "old_id": "d4a8be32b902279a3f2c84b1d4d137636dd3f7de",
      "old_mode": 33188,
      "old_path": "fs/proc/task_nommu.c",
      "new_id": "ca4a48d0d31144f341229e9352a88d85f3b7964d",
      "new_mode": 33188,
      "new_path": "fs/proc/task_nommu.c"
    },
    {
      "type": "modify",
      "old_id": "22c03714fb144d30b4c1bfd76fb30556eac373fa",
      "old_mode": 33188,
      "old_path": "include/asm-frv/mmu.h",
      "new_id": "86ca0e86e7d2579c0c096f7a57037627cf9dfa94",
      "new_mode": 33188,
      "new_path": "include/asm-frv/mmu.h"
    },
    {
      "type": "modify",
      "old_id": "d9bd724479cf0a078ea9b92fa4f73045468a8234",
      "old_mode": 33188,
      "old_path": "include/asm-m32r/mmu.h",
      "new_id": "150cb92bb6664e0ead1795a81e93ebed8f33f579",
      "new_mode": 33188,
      "new_path": "include/asm-m32r/mmu.h"
    },
    {
      "type": "modify",
      "old_id": "4a3d28c86443f8dfdfe5e4ee49a47ef1d27a0f44",
      "old_mode": 33188,
      "old_path": "include/linux/mm.h",
      "new_id": "b91a73fd1bcc2d22f64d5387b5c2dfe7473456c8",
      "new_mode": 33188,
      "new_path": "include/linux/mm.h"
    },
    {
      "type": "modify",
      "old_id": "9cfc9b627fdd745d4702a903e29db36f2676aa34",
      "old_mode": 33188,
      "old_path": "include/linux/mm_types.h",
      "new_id": "1c1e0d3a1714d6e5931728228b6b57b2fd6e7439",
      "new_mode": 33188,
      "new_path": "include/linux/mm_types.h"
    },
    {
      "type": "modify",
      "old_id": "b125b560240ec1ceb204f5ed0ff6f63ba97081d8",
      "old_mode": 33188,
      "old_path": "ipc/shm.c",
      "new_id": "d0ab5527bf45607ae5ba8abc66219c218fab694a",
      "new_mode": 33188,
      "new_path": "ipc/shm.c"
    },
    {
      "type": "modify",
      "old_id": "7b8f2a78be3db0820c479cba2d83ea8f2562be46",
      "old_mode": 33188,
      "old_path": "kernel/fork.c",
      "new_id": "0bce4a43bb371eaccc9439056fb88fdb4dc2a2c8",
      "new_mode": 33188,
      "new_path": "kernel/fork.c"
    },
    {
      "type": "modify",
      "old_id": "2e75478e9c696bc6933ca8952c0a013dd30eb78a",
      "old_mode": 33188,
      "old_path": "lib/Kconfig.debug",
      "new_id": "d0a32aab03ff66cbda68d3d60b30980d006d86ba",
      "new_mode": 33188,
      "new_path": "lib/Kconfig.debug"
    },
    {
      "type": "modify",
      "old_id": "a910c045cfd4241601306257c8822bda7f1ee05a",
      "old_mode": 33188,
      "old_path": "mm/mmap.c",
      "new_id": "749623196cb96facba001c1dc55ae3ab235ff67b",
      "new_mode": 33188,
      "new_path": "mm/mmap.c"
    },
    {
      "type": "modify",
      "old_id": "23f355bbe2628b12dc0be3e7c38003c10b49c33c",
      "old_mode": 33188,
      "old_path": "mm/nommu.c",
      "new_id": "0d363dfcf10e1de316ba3071dfa28f3d1c9ce8c8",
      "new_mode": 33188,
      "new_path": "mm/nommu.c"
    }
  ]
}
