---
name: "invalidate_mapping_pages"
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/invalidate_mapping_pages"
---

# invalidate\_mapping\_pages(9)

Invalidate all the unlocked pages of one inode

## NAME

invalidate\_mapping\_pages - Invalidate all the unlocked pages of one inode

## SYNOPSIS

**unsigned long invalidate\_mapping\_pages(struct address\_space \*** *mapping***, pgoff\_t** *start***, pgoff\_t** *end***);**

## ARGUMENTS

*mapping*

the address\_space which holds the pages to invalidate

*start*

the offset 'from' which to invalidate

*end*

the offset 'to' which to invalidate (inclusive)

## DESCRIPTION

This function only removes the unlocked pages, if you want to remove all the pages of one inode, you must call truncate\_inode\_pages.

**invalidate\_mapping\_pages** will not block on IO activity. It will not invalidate pages which are dirty, locked, under writeback or mapped into pagetables.

## COPYRIGHT
