Hugh Dickins 5402b976ae shmem_file_write is redundant
With the old aops, writing to a tmpfs file had to use its own special method:
the generic method would pass in a fresh page to prepare_write when the right
page was there in swapcache - which was inefficient to handle, even once we'd
concocted the code to handle it.

With the new aops, the generic method uses shmem_write_end, which lets
shmem_getpage find the right page: so now abandon shmem_file_write in favour
of the generic method.  Yes, that does do several things that tmpfs hasn't
really needed (notably balance_dirty_pages_ratelimited, which ramfs also
calls); but more use of common code is preferable.

Signed-off-by: Hugh Dickins <hugh@veritas.com>
Cc: Nick Piggin <nickpiggin@yahoo.com.au>
Acked-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2008-02-05 09:44:15 -08:00
..
2007-10-16 09:43:02 -07:00
2007-10-20 01:27:18 +02:00
2007-10-20 02:13:26 +02:00
2007-10-18 14:37:31 -07:00
2008-02-05 09:44:14 -08:00
2008-01-25 21:08:27 +01:00
2007-10-20 01:27:18 +02:00
2007-10-17 08:42:45 -07:00
2008-02-05 09:44:15 -08:00
2007-12-09 10:17:52 -08:00
2008-02-04 10:56:02 -08:00
2007-10-20 01:27:18 +02:00
2007-11-14 18:45:41 -08:00
2007-10-20 01:27:18 +02:00
2007-11-14 18:45:42 -08:00