Files
android_kernel_samsung_msm8226/include/linux
Nick Piggin 4b19de6d1c mm: tiny-shmem nommu fix
The previous patch db203d53d4 ("mm:
tiny-shmem fix lock ordering: mmap_sem vs i_mutex") to fix the lock
ordering in tiny-shmem breaks shared anonymous and IPC memory on NOMMU
architectures because it was using the expanding truncate to signal ramfs
to allocate a physically contiguous RAM backing the inode (otherwise it is
unusable for "memory mapping" it to userspace).

However do_truncate is what caused the lock ordering error, due to it
taking i_mutex.  In this case, we can actually just call ramfs directly to
allocate memory for the mapping, rather than go via truncate.

Acked-by: David Howells <dhowells@redhat.com>
Acked-by: Hugh Dickins <hugh@veritas.com>
Signed-off-by: Nick Piggin <npiggin@suse.de>
Cc: Matt Mackall <mpm@selenic.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-10-02 15:53:13 -07:00
..
2008-01-28 14:54:13 -08:00
…
…
2008-07-25 10:53:30 -07:00
…
2008-08-10 23:32:07 +02:00
2008-07-27 01:26:17 +02:00
…
2008-08-05 14:33:46 -07:00
2008-02-06 10:41:02 -08:00
…
…
…
2008-08-12 10:13:38 +10:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-07-24 10:47:24 -07:00
2008-07-24 10:47:33 -07:00
…
…
…
…
2008-07-24 10:47:33 -07:00
…
2008-07-03 13:21:14 +02:00
2008-04-29 08:11:16 -07:00
2008-06-06 11:29:10 -07:00
…
…
2008-08-04 21:56:09 -07:00
2008-01-28 14:54:10 -08:00
2005-04-16 15:20:36 -07:00
…
2005-04-16 15:20:36 -07:00
…
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2008-07-25 10:53:33 -07:00
2005-04-16 15:20:36 -07:00
…
2005-04-16 15:20:36 -07:00
…
…
…
…
…
…
…
…
2005-04-16 15:20:36 -07:00
…
2008-07-22 17:30:57 -07:00
2008-07-21 12:00:37 +01:00
2007-05-08 11:15:26 -07:00
…
2007-02-09 17:39:36 -05:00
…
2008-04-28 08:58:30 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
2008-02-07 08:42:30 -08:00
2008-01-28 23:21:18 +01:00
…
2007-06-01 08:18:29 -07:00
2008-07-24 10:47:29 -07:00
2008-08-20 13:19:51 -07:00
…
…
2005-04-16 15:20:36 -07:00
…
…
2005-07-12 12:08:43 -07:00
…
2008-05-16 17:22:26 -04:00
…
2008-08-12 16:07:31 -07:00
…
…
…
2008-07-26 20:53:20 -04:00
2008-07-25 10:53:48 -07:00
…
2008-07-25 10:53:30 -07:00
…
…
…
2005-04-16 15:20:36 -07:00
…
2008-07-23 15:25:21 +02:00
…
…
2008-02-05 09:44:19 -08:00
…
…
…
…
…
…
…
2008-08-08 15:13:27 +01:00
…
2008-08-28 08:33:23 +02:00
…
…
…
…
2008-09-02 20:18:47 +02:00
2008-07-25 10:53:42 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-01-28 14:55:09 -08:00
…
2008-08-02 18:36:10 +01:00
…
…
2008-07-25 10:53:39 -07:00
2005-04-16 15:20:36 -07:00
…
…
…
…
…
…
2006-12-07 08:39:47 -08:00
…
2006-10-04 00:31:09 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2008-07-30 09:41:45 -07:00
…
…
…
…
2008-07-24 10:47:17 -07:00
…
…
…
2008-08-25 17:28:25 +03:00
2005-04-16 15:20:36 -07:00
…
…
…
2007-07-17 10:23:03 -07:00
2007-07-17 10:23:13 -07:00
2008-09-01 09:47:16 +02:00
…
…
2008-08-11 15:25:07 +02:00
…
2008-02-06 10:41:01 -08:00
…
…
…
…
2008-07-24 10:47:41 -07:00
2008-05-23 22:26:03 +02:00
2005-04-16 15:20:36 -07:00
…
2007-05-09 12:30:49 -07:00
…
…
2008-07-27 01:56:38 +02:00
2008-07-27 01:54:58 +02:00
2008-08-02 16:28:50 +02:00
2008-08-16 16:45:56 -07:00
2008-08-16 16:45:56 -07:00
…
…
2008-07-28 16:30:21 -07:00
2008-07-24 10:47:24 -07:00
2005-04-16 15:20:36 -07:00
2006-11-30 04:40:22 +01:00
2008-07-25 10:53:34 -07:00
2008-06-06 11:29:12 -07:00
…
2008-02-08 09:22:31 -08:00
…
…
…
…
2008-08-26 10:37:20 -07:00
2008-08-04 23:04:08 -07:00
…
…
…
…
…
…
…
…
…
2007-10-17 08:42:58 -07:00
…
2006-08-27 11:01:32 -07:00
…
…
…
…
…
…
2008-08-04 21:31:34 -07:00
2008-08-04 21:31:34 -07:00
…
…
2008-07-26 12:00:03 -07:00
…
2008-06-10 14:37:03 -07:00
…
…
…
2008-04-29 08:06:02 -07:00
2008-05-06 12:01:41 -04:00
…
…
…
2008-08-05 14:33:50 -07:00
…
2008-09-16 19:35:05 -07:00
…
…
2006-10-03 23:01:26 +02:00
2008-06-11 21:00:38 -07:00
…
2005-04-16 15:20:36 -07:00
2008-07-26 20:53:12 -04:00
2008-08-07 17:18:47 -07:00
…
…
2008-10-02 15:53:13 -07:00
2008-07-25 10:53:29 -07:00
2005-04-16 15:20:36 -07:00
…
2008-08-11 09:30:24 +02:00
2008-07-25 10:53:29 -07:00
…
…
…
…
2008-08-20 15:40:32 -07:00
…
…
…
2008-07-25 21:45:49 -07:00
…
…
…
…
2008-09-05 18:14:35 +02:00
…
…
…
2008-08-17 22:47:30 +10:00
2007-10-16 09:43:17 -07:00
…
2008-07-25 10:53:42 -07:00
2008-07-24 08:31:21 -04:00
2008-04-25 00:25:08 +02:00
2008-02-07 08:42:34 -08:00
2008-07-24 10:47:24 -07:00
…
…
…
…
2008-08-15 19:52:30 -07:00
2008-08-05 09:28:47 +03:00
2008-07-25 10:53:30 -07:00
…
…
…
2008-07-27 01:47:00 +02:00
…
…
…
2005-04-16 15:20:36 -07:00
…
2008-08-11 09:30:24 +02:00
2008-01-25 21:08:34 +01:00
2007-05-08 11:15:18 -07:00
2006-10-01 00:39:18 -07:00
2005-04-16 15:20:36 -07:00
…
2008-07-26 12:00:12 -07:00
…
2005-04-16 15:20:36 -07:00
2008-07-26 20:53:12 -04:00
…
…
…
2005-04-16 15:20:36 -07:00
…
…
…
…
…
2008-05-01 08:03:59 -07:00
…
…
2008-09-05 14:39:38 -07:00
2008-08-15 10:34:07 -07:00
…
…
…
…
…
…
…
2008-07-21 15:15:55 -07:00
2007-09-19 11:24:18 -07:00
2005-04-16 15:20:36 -07:00
…
2005-04-16 15:20:36 -07:00
…
2005-04-16 15:20:36 -07:00
…
2005-04-16 15:20:36 -07:00
…
2008-08-16 16:45:56 -07:00
2008-07-24 10:47:14 -07:00
2007-10-19 11:53:34 -07:00
…
…
2008-07-25 10:53:40 -07:00
…
…
…
…
…
…
…