diff --git a/man2/madvise.2 b/man2/madvise.2 index 99b96dc2a..466833ad6 100644 --- a/man2/madvise.2 +++ b/man2/madvise.2 @@ -148,11 +148,19 @@ bytes containing zero. .\" disk/swap space. This feature is also useful for supporting .\" hot-plug memory on UML. -Currently, -.\" 2.6.18-rc5 -only shmfs/tmpfs supports this; other filesystems return with the -error -.BR ENOSYS . +Originally, only shmfs/tmpfs supported this; but since Linux 3.5, +any filesystem which supports the +.BR fallocate(2) +mode +.BR FALLOC_FL_PUNCH_HOLE +also supports the +.BR madvise(2) +advice +.BR MADV_REMOVE . +Other filesystems return with the +.BR EOPNOTSUPP +error. + The specified address range must be mapped shared and writable. This flag cannot be applied to locked pages or Huge TLB pages. .TP