Skip to contentSkip to conversation

madvise.2: update the description for MADV_REMOVE

PATCH Superseded Wang Sheng-Hui 1 participant 2 messages Jun 24, 2014 1 message not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 madvise.2: update the description for MADV_REMOVE

Currently we have more filesystems supporting fallcate, e.g ext4/btrfs, which can response to MADV_REMOVE gracefully.

Update the MADV_REMOVE description.

---
 man2/madvise.2 | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
man2/madvise.2 +2 -6
index 032ead7..510530c 100644
@@ -99,12 +99,8 @@ or zero-fill-on-demand pages for mappings
 without an underlying file.
 .TP
 .BR MADV_REMOVE " (since Linux 2.6.16)"
-Free up a given range of pages
-and its associated backing store.
-Currently,
-.\" 2.6.18-rc5
-only shmfs/tmpfs supports this; other filesystems return with the
-error
+Free up a given range of pages and its associated backing store.
+Filesystems that don't support fallocate will return error
 .BR ENOSYS .
 .\" Databases want to use this feature to drop a section of their
 .\" bufferpool (shared memory segments) - without writing back to
Signature · 6 lines
1.8.3.2

--
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): [email protected]

#2 lore raw

Sorry, miss updating the return error.
Please ignore this patch.

Will send out a new patch later.

Regards,
Sheng-Hui

Quoted 21 lines · Wang Sheng-Hui

Currently we have more filesystems supporting fallcate, e.g ext4/btrfs, which can response to MADV_REMOVE gracefully.

Update the MADV_REMOVE description.

---
 man2/madvise.2 | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
man2/madvise.2 +0 -1
index 032ead7..510530c 100644
@@ -99,12 +99,8 @@ or zero-fill-on-demand pages for mappings
 without an underlying file.
 .TP
 .BR MADV_REMOVE " (since Linux 2.6.16)"
-Free up a given range of pages

man2/madvise.2 or zero-fill-on-demand pages for mappings · line 106

Quoted 10 lines
man2/madvise.2 +2 -5
-and its associated backing store.
-Currently,
-.\" 2.6.18-rc5
-only shmfs/tmpfs supports this; other filesystems return with the
-error
+Free up a given range of pages and its associated backing store.
+Filesystems that don't support fallocate will return error
 .BR ENOSYS .
 .\" Databases want to use this feature to drop a section of their
 .\" bufferpool (shared memory segments) - without writing back to

--
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