NTFS_READPAGE

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

ntfs_readpage - fill a page of a file with data from the device  

SYNOPSIS

"SYNOPSIS"

int ntfs_readpage (struct file * file, struct page * page);  

ARGUMENTS

file
open file to which the page page belongs or NULL
page
page cache page to fill with data
 

DESCRIPTION

For non-resident attributes, ntfs_readpage fills the page of the open file file by calling the ntfs version of the generic block_read_full_page function, ntfs_read_block, which in turn creates and reads in the buffers associated with the page asynchronously.

For resident attributes, OTOH, ntfs_readpage fills page by copying the data from the mft record (which at this stage is most likely in memory) and fills the remainder with zeroes. Thus, in this case, I/O is synchronous, as even if the mft record is not cached at this point in time, we need to wait for it to be read in before we can do the copy.

Return 0 on success and -errno on error.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:34 GMT, October 09, 2005