truncate_inode_pages_range man page on OpenSuSE

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

TRUNCATE_INODE_PAGES(9)	  Memory Management in Linux   TRUNCATE_INODE_PAGES(9)

NAME
       truncate_inode_pages_range - truncate range of pages specified by start
       & end byte offsets

SYNOPSIS
       void truncate_inode_pages_range(struct address_space * mapping,
				       loff_t lstart, loff_t lend);

ARGUMENTS
       mapping
	   mapping to truncate

       lstart
	   offset from which to truncate

       lend
	   offset to which to truncate (inclusive)

DESCRIPTION
       Truncate the page cache, removing the pages that are between specified
       offsets (and zeroing out partial pages if lstart or lend + 1 is not
       page aligned).

       Truncate takes two passes - the first pass is nonblocking. It will not
       block on page locks and it will not block on writeback. The second pass
       will wait. This is to prevent as much IO as possible in the affected
       region. The first pass will remove most pages, so the search cost of
       the second pass is low.

       We pass down the cache-hot hint to the page freeing code. Even if the
       mapping is large, it is probably the case that the final pages are the
       most recently touched, and freeing happens in ascending file offset
       order.

       Note that since ->invalidatepage accepts range to invalidate
       truncate_inode_pages_range is able to handle cases where lend + 1 is
       not page aligned properly.

COPYRIGHT
Kernel Hackers Manual 3.11	 November 2013	       TRUNCATE_INODE_PAGES(9)
[top]

List of man pages available for OpenSuSE

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