Skip to content

Improve documentation of FADV_DONTNEED behaviour

Mel Gorman linux-mm lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm: fadvise: Document the fadvise(FADV_DONTNEED) behaviour for partial pagesmm/fadvise.c+5 -10 replies
2/2posix_fadvise.2: Document the behaviour of partial page discard requestsman2/posix_fadvise.2+5 -01 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] Improve documentation of FADV_DONTNEED behaviour

Partial page discard requests are ignored and the documentation on why this is correct behaviour sucks. A readahead patch looked like a "regression" to a random IO storage benchmark because posix_fadvise() was used incorrectly to force IO requests to go to disk. In reality, the benchmark sucked but it was non-obvious why. Patch 1 updates the kernel comment in case someone "fixes" either readahead or fadvise for inappropriate reasons. Patch 2 updates the relevant man page on the rough off chance that application developers do not read kernel source comments.

Signature · 7 lines
2.1.2

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>