/* note: all filemap functions return negative error codes. These need to be inverted before returning to the xfs core functions.  */
void xfs_tosspages(xfs_inode_t *ip, xfs_off_t first, xfs_off_t last, int fiopt)
/* note: all filemap functions return negative error codes. These need to be inverted before returning to the xfs core functions.  */
void xfs_tosspages(xfs_inode_t *ip, xfs_off_t first, xfs_off_t last, int fiopt)
{
	struct address_space *mapping = VFS_I(ip)->i_mapping;
	if (mapping->nrpages)
		truncate_inode_pages(mapping, first);
}