truncate_pagecache man page on Scientific

Man page or keyword search:  
man Server   26626 pages
apropos Keyword Search (all sections)
Output format
Scientific logo
[printable version]

TRUNCATE_PAGECACHE(9)	  Memory Management in Linux	 TRUNCATE_PAGECACHE(9)

NAME
       truncate_pagecache - unmap and remove pagecache that has been truncated

SYNOPSIS
       void truncate_pagecache(struct inode * inode, loff_t oldsize,
			       loff_t newsize);

ARGUMENTS
       inode
	   inode

       oldsize
	   old file size

       newsize
	   new file size

DESCRIPTION
       inodeĀ“s new i_size must already be written before truncate_pagecache is
       called.

       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.

COPYRIGHT
Kernel Hackers Manual 2.6.	 November 2013		 TRUNCATE_PAGECACHE(9)
[top]

List of man pages available for Scientific

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net