1UNMAP_MAPPING_RANGE(9) Memory Management in Linux UNMAP_MAPPING_RANGE(9)
2
3
4
6 unmap_mapping_range - unmap the portion of all mmaps in the specified
7 address_space corresponding to the specified page range in the
8 underlying file.
9
11 void unmap_mapping_range(struct address_space * mapping,
12 loff_t const holebegin, loff_t const holelen,
13 int even_cows);
14
16 mapping
17 the address space containing mmaps to be unmapped.
18
19 holebegin
20 byte in first page to unmap, relative to the start of the
21 underlying file. This will be rounded down to a PAGE_SIZE boundary.
22 Note that this is different from truncate_pagecache, which must
23 keep the partial page. In contrast, we must get rid of partial
24 pages.
25
26 holelen
27 size of prospective hole in bytes. This will be rounded up to a
28 PAGE_SIZE boundary. A holelen of zero truncates to the end of the
29 file.
30
31 even_cows
32 1 when truncating a file, unmap even private COWed pages; but 0
33 when invalidating pagecache, don't throw away private data.
34
36Kernel Hackers Manual 3.10 June 2019 UNMAP_MAPPING_RANGE(9)