Andrew Morton
d8733c2956
[PATCH] ext3_readdir: use generic readahead
...
Linus points out that ext3_readdir's readahead only cuts in when
ext3_readdir() is operating at the very start of the directory. So for large
directories we end up performing no readahead at all and we suck.
So take it all out and use the core VM's page_cache_readahead(). This means
that ext3 directory reads will use all of readahead's dynamic sizing goop.
Note that we're using the directory's filp->f_ra to hold the readahead state,
but readahead is actually being performed against the underlying blockdev's
address_space. Fortunately the readahead code is all set up to handle this.
Tested with printk. It works. I was struggling to find a real workload which
actually cared.
(The patch also exports page_cache_readahead() to GPL modules)
Cc: "Stephen C. Tweedie" <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2006-03-23 07:38:09 -08:00
..
bootmem.c
fadvise.c
filemap.c
[PATCH] mm: make __put_page internal
2006-03-22 07:54:01 -08:00
filemap.h
filemap_xip.c
[PATCH] replace inode_update_time with file_update_time
2006-01-10 08:01:30 -08:00
fremap.c
highmem.c
hugetlb.c
[PATCH] mm: hugetlb alloc_fresh_huge_page bogus node loop fix
2006-03-22 07:54:06 -08:00
internal.h
[PATCH] remove set_page_count() outside mm/
2006-03-22 07:54:02 -08:00
Kconfig
[PATCH] page migration reorg
2006-03-22 07:54:06 -08:00
madvise.c
[PATCH] madvise MADV_DONTFORK/MADV_DOFORK
2006-02-14 16:09:34 -08:00
Makefile
[PATCH] page migration reorg
2006-03-22 07:54:06 -08:00
memory.c
[PATCH] hugepage: Fix hugepage logic in free_pgtables() harder
2006-03-22 07:54:04 -08:00
memory_hotplug.c
[PATCH] memory hotadd: pgdat->node_present_pages fix
2006-03-09 19:47:38 -08:00
mempolicy.c
[PATCH] page migration reorg
2006-03-22 07:54:06 -08:00
mempool.c
[PATCH] mm: kill kmem_cache_t usage
2006-03-22 07:53:58 -08:00
migrate.c
[PATCH] page migration reorg
2006-03-22 07:54:06 -08:00
mincore.c
mlock.c
[PATCH] move capable() to capability.h
2006-01-11 18:42:13 -08:00
mmap.c
[PATCH] remove VM_DONTCOPY bogosities
2006-03-22 07:54:01 -08:00
mprotect.c
[PATCH] Enable mprotect on huge pages
2006-03-22 07:54:03 -08:00
mremap.c
[PATCH] move capable() to capability.h
2006-01-11 18:42:13 -08:00
msync.c
[PATCH] mutex subsystem, semaphore to mutex: VFS, ->i_sem
2006-01-09 15:59:24 -08:00
nommu.c
[PATCH] mm: nommu use compound pages
2006-03-22 07:54:01 -08:00
oom_kill.c
[PATCH] out_of_memory() locking fix
2006-03-02 08:33:07 -08:00
page-writeback.c
[PATCH] mm: dirty_exceeded speedup
2006-01-18 19:20:17 -08:00
page_alloc.c
[PATCH] drain_node_pages: interrupt latency reduction / optimization
2006-03-22 07:54:06 -08:00
page_io.c
pdflush.c
prio_tree.c
readahead.c
[PATCH] ext3_readdir: use generic readahead
2006-03-23 07:38:09 -08:00
rmap.c
[PATCH] mm: more CONFIG_DEBUG_VM
2006-03-22 07:54:02 -08:00
shmem.c
[PATCH] shmem: inline to avoid warning
2006-03-22 07:54:02 -08:00
slab.c
[PATCH] mm: slab cache interleave rotor fix
2006-03-22 07:54:06 -08:00
slob.c
[PATCH] SLOB=y && SMP=y fix
2006-02-08 07:52:58 -08:00
sparse.c
swap.c
[PATCH] mm: less atomic ops
2006-03-22 07:53:57 -08:00
swap_state.c
[PATCH] page migration reorg
2006-03-22 07:54:06 -08:00
swapfile.c
[PATCH] swsusp: userland interface
2006-03-23 07:38:07 -08:00
thrash.c
tiny-shmem.c
[PATCH] do_truncate() call fix in tiny-shmem.c
2006-01-12 09:08:49 -08:00
truncate.c
[PATCH] mutex subsystem, semaphore to mutex: VFS, ->i_sem
2006-01-09 15:59:24 -08:00
util.c
vmalloc.c
vmscan.c
[PATCH] page migration reorg
2006-03-22 07:54:06 -08:00