linux/mmnommu/filemap.c
/*
 * Read in an entire cluster at once.  A cluster is usually a 64k-
 * aligned block that includes the page requested in "offset."
 */
Read in an entire cluster at once.  A cluster is usually a 64k
aligned block that includes the page requested in "offset."
Read in an entire cluster at once . A cluster is usually a 64k aligned block that includes the page requested in " offset . "
static int read_cluster_nonblocking(struct file * file, unsigned long offset,
	unsigned long filesize)
{
	unsigned long pages = CLUSTER_PAGES;
	offset = CLUSTER_OFFSET(offset);
	while ((pages-- > 0) && (offset < filesize)) {
		int error = page_cache_read(file, offset);
		if (error < 0)
			return error;
		offset ++;
	}
	return 0;
}
static int read_cluster_nonblocking ( struct file * file , unsigned long offset , unsigned long filesize ) { unsigned long pages = CLUSTER_PAGES ; offset = CLUSTER_OFFSET ( offset ) ; while ( ( pages -- > 0 ) && ( offset < filesize ) ) { int error = page_cache_read ( file , offset ) ; if ( error < 0 ) return error ; offset ++ ; } return 0 ; }
Read in an entire cluster at once.
Read in an entire cluster at once .