truncate_inode_pages(9)

truncate_inode_pages9

Truncate *all* the pages from an offset

Usage

void truncate_inode_pages(struct address_space * mapping, loff_t lstart);

Arguments

mapping

mapping to truncate

lstart

offset from which to truncate

Overview

Called under (and serialised by) inode->i_mutex.

Note

When this function returns, there can be a page in the process of deletion (inside __delete_from_page_cache) in the specified range. Thus mapping->nrpages can be non-zero when this function returns even after truncation of the whole mapping.

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.