block_invalidatepage(9)

block_invalidatepage9

Invalidate part or all of a buffer-backed page

Usage

void block_invalidatepage(struct page * page, unsigned int offset, unsigned int length);

Arguments

page

the page which is affected

offset

start of the range to invalidate

length

length of the range to invalidate

Overview

block_invalidatepage is called when all or part of the page has become invalidated by a truncate operation.

block_invalidatepage does not have to release all buffers, but it must ensure that no dirty buffer is left outside offset and that no I/O is underway against any of the blocks which are outside the truncation point. Because the caller is about to free (and possibly reuse) those blocks on-disk.

Releases

6 releases since Debian 4.0 (Etch); the text changed 5 times.

  1. 4.0
  2. 5.0
  3. 6.0
  4. 7
  5. 8
  6. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.