Skip to contentSkip to conversation

New: Outdated documentation on posix_fadvise?

Bug 95421 bugzilla-daemon-590EEB7GvNiWaY/[email protected] 1 participant 3 messages Mar 24, 2015 – May 5, 2015 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

https://bugzilla.kernel.org/show_bug.cgi?id=95421

Bug ID: 95421
Summary: Outdated documentation on posix_fadvise?
Product: Documentation
Version: unspecified
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: man-pages
Assignee: documentation_man-pages-ztI5WcYan/[email protected]
Reporter: [email protected]
Regression: No

http://man7.org/linux/man-pages/man2/posix_fadvise.2.html suggests that POSIX_FADV_DONTNEED has no effect on dirty pages. However, if I'm reading
https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/tree/mm/fadvise.c?id=v3.19#n115
correctly, it will in fact schedule dirty pages for writeout if the underlying device is not already congested.

Can you please verify actual behavior and update the manpage if indicated?

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): bug-95421-11311-3bo0kxnWaOQUvHkbgXJLS5sdmw4N0Rt+2LY78lusg7I@public.gmane.org/

#2 lore raw

[Bug 95421] Outdated documentation on posix_fadvise?

https://bugzilla.kernel.org/show_bug.cgi?id=95421

Michael Kerrisk <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]

--- Comment #1 from Michael Kerrisk <[email protected]> --- (In reply to Maik Zumstrull from comment #0)

Quoted 2 lines

http://man7.org/linux/man-pages/man2/posix_fadvise.2.html suggests that POSIX_FADV_DONTNEED has no effect on dirty pages.

I'm missing something. Where does the page suggest that?

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
#3 lore raw

[Bug 95421] Outdated documentation on posix_fadvise?

In reply to a message not in the archive

https://bugzilla.kernel.org/show_bug.cgi?id=95421

--- Comment #2 from Maik Zumstrull <[email protected]> --- Last paragraph under NOTES. "Pages that have not yet been written out will be unaffected, so if the application wishes to guarantee that pages will be released, it should call fsync(2) or fdatasync(2) first."

Unless I'm misreading the code, this is not true.

Signature · 6 lines
You are receiving this mail because:
You are watching the assignee of the bug.
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html