David Howells
33e5d76979
nommu: fix a number of issues with the per-MM VMA patch
...
Fix a number of issues with the per-MM VMA patch:
(1) Make mmap_pages_allocated an atomic_long_t, just in case this is used on
a NOMMU system with more than 2G pages. Makes no difference on a 32-bit
system.
(2) Report vma->vm_pgoff * PAGE_SIZE as a 64-bit value, not a 32-bit value,
lest it overflow.
(3) Move the allocation of the vm_area_struct slab back for fork.c.
(4) Use KMEM_CACHE() for both vm_area_struct and vm_region slabs.
(5) Use BUG_ON() rather than if () BUG().
(6) Make the default validate_nommu_regions() a static inline rather than a
#define.
(7) Make free_page_series()'s objection to pages with a refcount != 1 more
informative.
(8) Adjust the __put_nommu_region() banner comment to indicate that the
semaphore must be held for writing.
(9) Limit the number of warnings about munmaps of non-mmapped regions.
Reported-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: David Howells <dhowells@redhat.com >
Cc: Greg Ungerer <gerg@snapgear.com >
Signed-off-by: Andrew Morton <akpm@linux-foundation.org >
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org >
2009-04-02 19:04:48 -07:00
..
2009-03-26 18:14:15 +01:00
2009-03-10 20:33:19 -04:00
2009-03-11 13:49:46 +00:00
2009-03-18 19:45:11 -07:00
2009-03-26 22:45:23 -07:00
2009-03-26 18:14:14 +01:00
2009-03-26 16:11:41 -07:00
2009-03-05 14:39:32 -05:00
2009-03-28 15:54:48 -04:00
2009-03-26 15:23:24 -07:00
2009-03-24 16:38:23 -07:00
2009-04-01 09:47:12 -07:00
2009-03-26 18:14:14 +01:00
2009-03-26 11:20:23 -07:00
2009-03-26 18:14:15 +01:00
2009-03-26 18:14:15 +01:00
2009-04-01 08:59:23 -07:00
2009-04-01 08:59:23 -07:00
2009-03-24 12:35:17 +01:00
2009-04-01 08:59:14 -07:00
2009-03-28 13:30:43 -07:00
2009-04-01 08:59:14 -07:00
2009-03-17 14:55:55 -04:00
2009-03-27 14:51:13 +01:00
2009-03-26 18:14:15 +01:00
2009-03-26 18:14:14 +01:00
2009-03-27 14:43:57 -04:00
2009-03-26 18:14:23 +01:00
2009-03-12 21:33:03 +00:00
2009-03-24 16:38:26 -07:00
2009-03-09 15:07:33 -04:00
2009-03-30 22:05:16 +10:30
2009-03-04 15:05:33 +08:00
2009-03-26 18:14:14 +01:00
2009-03-21 13:31:23 -07:00
2009-03-27 14:43:59 -04:00
2009-03-24 16:38:26 -07:00
2009-03-26 18:14:15 +01:00
2009-03-26 18:14:15 +01:00
2009-03-18 11:53:48 +01:00
2009-03-08 10:23:05 -07:00
2009-03-17 15:45:07 -07:00
2009-03-30 21:46:44 +02:00
2009-03-24 16:38:27 -07:00
2009-04-01 08:59:20 -07:00
2009-03-16 08:32:27 -06:00
2009-04-01 08:59:29 -07:00
2009-03-24 20:56:50 +01:00
2009-03-28 17:30:00 -07:00
2009-04-01 08:59:17 -07:00
2009-04-01 08:59:22 -07:00
2009-03-20 01:33:32 -07:00
2009-03-24 12:35:17 +01:00
2009-03-05 16:10:59 +01:00
2009-04-01 08:59:14 -07:00
2009-03-28 21:34:44 +01:00
2009-03-30 12:43:28 -03:00
2009-03-28 21:34:45 +01:00
2009-03-31 20:15:33 +02:00
2009-03-27 20:13:02 -04:00
2009-03-26 18:14:15 +01:00
2009-03-28 13:30:43 -07:00
2009-03-27 00:46:44 -07:00
2009-03-26 18:14:14 +01:00
2009-03-24 00:35:43 +01:00
2009-03-30 13:41:00 -07:00
2009-03-30 21:46:54 +02:00
2009-03-26 18:14:15 +01:00
2009-03-31 01:14:44 +04:00
2009-03-30 21:46:54 +02:00
2009-03-27 17:28:43 +01:00
2009-03-13 14:32:29 +01:00
2009-03-30 12:43:22 -03:00
2009-03-26 18:14:15 +01:00
2009-03-25 23:35:46 -04:00
2009-03-26 18:14:17 +01:00
2009-03-30 12:43:15 -03:00
2009-04-01 08:59:18 -07:00
2009-03-24 16:38:26 -07:00
2009-03-24 11:03:11 +02:00
2009-03-24 11:02:55 +02:00
2009-03-24 11:03:15 +02:00
2009-03-24 22:52:39 -04:00
2009-04-01 08:59:17 -07:00
2009-03-12 12:58:05 -05:00
2009-03-26 18:14:15 +01:00
2009-03-13 15:57:40 -05:00
2009-04-02 19:04:48 -07:00
2009-04-02 19:04:48 -07:00
2009-04-01 08:59:11 -07:00
2009-03-24 16:38:24 -07:00
2009-03-26 10:56:35 -07:00
2009-03-26 18:14:14 +01:00
2009-03-20 10:48:14 -07:00
2009-03-27 14:44:00 -04:00
2009-03-04 00:03:08 -08:00
2009-03-13 12:09:29 -07:00
2009-03-15 19:59:13 -07:00
2009-03-28 13:30:43 -07:00
2009-03-24 16:37:55 -07:00
2009-03-28 23:55:58 -07:00
2009-03-11 14:10:28 -04:00
2009-04-01 13:28:15 -04:00
2009-04-01 13:28:15 -04:00
2009-03-10 20:33:18 -04:00
2009-03-27 20:13:04 -04:00
2009-04-01 08:59:13 -07:00
2009-04-01 08:59:14 -07:00
2009-04-01 08:59:13 -07:00
2009-04-01 09:47:12 -07:00
2009-03-26 16:02:30 -07:00
2009-03-20 10:47:57 -07:00
2009-04-01 09:47:12 -07:00
2009-03-20 10:47:49 -07:00
2009-03-10 16:27:48 +09:00
2009-03-26 18:14:15 +01:00
2009-03-13 15:41:19 -07:00
2009-03-24 16:38:26 -07:00
2009-03-24 16:38:26 -07:00
2009-04-01 08:59:13 -07:00
2009-03-13 16:09:12 -07:00
2009-03-26 18:14:14 +01:00
2009-03-31 01:14:44 +04:00
2009-03-26 02:18:35 +01:00
2009-03-26 02:18:37 +01:00
2009-03-30 14:28:58 -07:00
2009-03-30 12:16:38 -07:00
2009-03-30 12:16:39 -07:00
2009-03-30 12:33:01 -07:00
2009-03-30 12:16:39 -07:00
2009-04-01 08:59:24 -07:00
2009-03-19 23:49:41 -07:00
2009-04-01 08:59:11 -07:00
2009-03-28 15:01:37 +11:00
2009-03-26 18:14:15 +01:00
2009-03-30 22:05:11 +10:30
2009-03-07 18:41:38 -08:00
2009-03-29 01:40:34 -07:00
2009-03-24 10:25:21 +02:00
2009-03-26 16:11:41 -07:00
2009-04-01 08:59:13 -07:00
2009-03-26 18:14:14 +01:00
2009-04-01 08:59:16 -07:00
2009-04-01 08:59:15 -07:00
2009-03-15 20:09:55 -07:00
2009-03-26 18:14:14 +01:00
2009-03-30 17:17:35 -07:00
2009-03-26 18:14:14 +01:00
2009-04-01 08:59:10 -07:00
2009-03-26 18:14:21 +01:00
2009-03-24 16:38:24 -07:00
2009-03-24 16:20:34 -07:00
2009-03-24 16:20:36 -07:00
2009-03-26 18:14:14 +01:00
2009-03-30 12:43:40 -03:00
2009-03-30 12:43:15 -03:00
2009-04-01 08:59:20 -07:00
2009-04-01 08:59:13 -07:00
2009-03-26 18:14:14 +01:00