---
name: "block_invalidatepage"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/block_invalidatepage"
---

# block\_invalidatepage(9)

invalidate part or all of a buffer-backed page

## NAME

block\_invalidatepage - invalidate part or all of a buffer-backed page

## SYNOPSIS

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

## DESCRIPTION

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

## COPYRIGHT
