Andrew Morton
60c371bc75
[PATCH] fadvise() make POSIX_FADV_NOREUSE a no-op
...
The POSIX_FADV_NOREUSE hint means "the application will use this range of the
file a single time". It seems to be intended that the implementation will use
this hint to perform drop-behind of that part of the file when the application
gets around to reading or writing it.
However for reasons which aren't obvious (or sane?) I mapped
POSIX_FADV_NOREUSE onto POSIX_FADV_WILLNEED. ie: it does readahead.
That's daft. So for now, make POSIX_FADV_NOREUSE a no-op.
This is a non-back-compatible change. If someone was using POSIX_FADV_NOREUSE
to perform readahead, they lose. The likelihood is low.
If/when we later implement POSIX_FADV_NOREUSE things will get interesting - to
do it fully we'll need to maintain file offset/length ranges and peform all
sorts of complex tricks, and managing the lifetime of those ranges' data
structures will be interesting..
A sensible implementation would probably ignore the file range and would
simply mark the entire file as needing some form of drop-behind treatment.
Cc: Michael Kerrisk <[email protected] >
Signed-off-by: Andrew Morton <[email protected] >
Signed-off-by: Linus Torvalds <[email protected] >
2006-08-06 08:57:47 -07:00
..
bootmem.c
[PATCH] mm/bootmem.c: EXPORT_UNUSED_SYMBOL
2006-07-10 13:24:17 -07:00
fadvise.c
[PATCH] fadvise() make POSIX_FADV_NOREUSE a no-op
2006-08-06 08:57:47 -07:00
filemap.c
[PATCH] MM: Remove rogue readahead printk
2006-07-29 20:59:55 -07:00
filemap.h
[PATCH] generic_file_buffered_write(): handle zero-length iovec segments
2006-06-29 10:26:20 -07:00
filemap_xip.c
[PATCH] mark address_space_operations const
2006-06-28 14:59:04 -07:00
fremap.c
[PATCH] fix update_mmu_cache in fremap.c
2006-06-23 07:42:52 -07:00
highmem.c
[PATCH] zoned vm counters: conversion of nr_bounce to per zone counter
2006-06-30 11:25:36 -07:00
hugetlb.c
[PATCH] tightening hugetlb strict accounting
2006-06-23 07:42:48 -07:00
internal.h
Kconfig
Merge master.kernel.org:/pub/scm/linux/kernel/git/gregkh/pci-2.6
2006-06-29 10:49:17 -07:00
madvise.c
Makefile
[PATCH] zoned vm counters: create vmstat.c/.h from page_alloc.c/.h
2006-06-30 11:25:34 -07:00
memory.c
[PATCH] per-task-delay-accounting: sync block I/O and swapin delay collection
2006-07-14 21:53:56 -07:00
memory_hotplug.c
Remove obsolete #include <linux/config.h>
2006-06-30 19:25:36 +02:00
mempolicy.c
[PATCH] Use Zoned VM Counters for NUMA statistics
2006-06-30 11:25:36 -07:00
mempool.c
migrate.c
[PATCH] Allow migration of mlocked pages
2006-06-25 10:00:55 -07:00
mincore.c
mlock.c
mmap.c
[PATCH] zoned vm counters: conversion of nr_pagecache to per zone counter
2006-06-30 11:25:34 -07:00
mmzone.c
[PATCH] mm/mmzone.c: EXPORT_UNUSED_SYMBOL
2006-07-10 13:24:17 -07:00
mprotect.c
[PATCH] add page_mkwrite() vm_operations method
2006-06-23 07:42:51 -07:00
mremap.c
[PATCH] lockdep: annotate mm
2006-07-03 15:27:07 -07:00
msync.c
[PATCH] Kill PF_SYNCWRITE flag
2006-06-23 17:10:39 +02:00
nommu.c
[PATCH] nommu: export two symbols for drivers to use
2006-07-14 21:53:53 -07:00
oom_kill.c
[PATCH] sched: cleanup, remove task_t, convert to struct task_struct
2006-07-03 15:27:11 -07:00
page-writeback.c
[PATCH] zoned vm counters: remove useless struct wbs
2006-06-30 11:25:36 -07:00
page_alloc.c
[PATCH] ZVC/zone_reclaim: Leave 1% of unmapped pagecache pages for file I/O
2006-07-03 15:26:59 -07:00
page_io.c
[PATCH] Light weight event counters
2006-06-30 11:25:36 -07:00
pdflush.c
[PATCH] pdflush: handle resume wakeups
2006-06-25 10:01:06 -07:00
prio_tree.c
readahead.c
spelling fixes
2006-06-26 18:35:02 +02:00
rmap.c
[PATCH] zoned vm counters: split NR_ANON_PAGES off from NR_FILE_MAPPED
2006-06-30 11:25:35 -07:00
shmem.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/bunk/trivial
2006-06-30 15:39:30 -07:00
slab.c
[PATCH] Fix kmem_cache_alloc() been documented twice
2006-07-31 13:28:43 -07:00
slob.c
Remove obsolete #include <linux/config.h>
2006-06-30 19:25:36 +02:00
sparse.c
Remove obsolete #include <linux/config.h>
2006-06-30 19:25:36 +02:00
swap.c
[PATCH] Light weight event counters
2006-06-30 11:25:36 -07:00
swap_state.c
[PATCH] lockdep: locking init debugging improvement
2006-07-03 15:27:02 -07:00
swapfile.c
Remove obsolete #include <linux/config.h>
2006-06-30 19:25:36 +02:00
thrash.c
tiny-shmem.c
[PATCH] devfs: Remove the devfs_fs_kernel.h file from the tree
2006-06-26 12:25:08 -07:00
truncate.c
[PATCH] Remove semi-softlockup from invalidate_mapping_pages
2006-06-23 07:43:07 -07:00
util.c
vmalloc.c
[PATCH] mm: fix oom roll-back of __vmalloc_area_node
2006-07-14 21:53:51 -07:00
vmscan.c
[PATCH] ZVC/zone_reclaim: Leave 1% of unmapped pagecache pages for file I/O
2006-07-03 15:26:59 -07:00
vmstat.c
[PATCH] vmstat: export all_vm_events()
2006-07-10 13:24:18 -07:00