truncate_pagecache_range(9)

truncate_pagecache_range9

Unmap and remove pagecache that is hole-punched

Usage

void truncate_pagecache_range(struct inode * inode, loff_t lstart, loff_t lend);

Arguments

inode

inode

lstart

offset of beginning of hole

lend

offset of last byte of hole

Overview

This function should typically be called before the filesystem releases resources associated with the freed range (eg. deallocates blocks). This way, pagecache will always stay logically coherent with on-disk format, and the filesystem would not have to deal with situations such as writepage being called for a page that has already had its underlying blocks deallocated.

Releases

2 releases since Debian 8 (Jessie); the text changed 1 time.

  1. 8
  2. 9

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