---
name: "vmtruncate"
section: "9"
platform: "linux"
package: "linux-manual-3.2"
version: "3.2.78-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/vmtruncate"
---

# vmtruncate(9)

unmap mappings “freed” by truncate syscall

## NAME

vmtruncate - unmap mappings “freed” by **truncate** syscall

## SYNOPSIS

**int vmtruncate(struct inode \*** *inode***, loff\_t** *newsize***);**

## ARGUMENTS

*inode*

inode of the file used

*newsize*

file offset to start truncating

## DESCRIPTION

This function is deprecated and truncate\_setsize or truncate\_pagecache should be used instead, together with filesystem specific block truncation.

## COPYRIGHT
