1BLOCK_INVALIDATEPAGE(9) The Linux VFS BLOCK_INVALIDATEPAGE(9)
2
3
4
6 block_invalidatepage - invalidate part or all of a buffer-backed page
7
9 void block_invalidatepage(struct page * page, unsigned long offset);
10
12 page
13 the page which is affected
14
15 offset
16 the index of the truncation point
17
19 block_invalidatepage is called when all or part of the page has become
20 invalidated by a truncate operation.
21
22 block_invalidatepage does not have to release all buffers, but it must
23 ensure that no dirty buffer is left outside offset and that no I/O is
24 underway against any of the blocks which are outside the truncation
25 point. Because the caller is about to free (and possibly reuse) those
26 blocks on-disk.
27
29Kernel Hackers Manual 3.10 June 2019 BLOCK_INVALIDATEPAGE(9)