NTFS_WRITEPAGE

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

 

NAME

ntfs_writepage - write a page to the backing store  

SYNOPSIS

"SYNOPSIS"

int ntfs_writepage (struct page * page, struct writeback_control * wbc);  

ARGUMENTS

page
page cache page to write out
wbc
-- undescribed --
 

DESCRIPTION

For non-resident attributes, ntfs_writepage writes the page by calling the ntfs version of the generic block_write_full_page function, ntfs_write_block, which in turn if necessary creates and writes the buffers associated with the page asynchronously.

For resident attributes, OTOH, ntfs_writepage writes the page by copying the data to the mft record (which at this stage is most likely in memory). 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.

Note the caller clears the page dirty flag before calling ntfs_writepage.

Based on ntfs_readpage and fs/buffer.c::block_write_full_page.

Return 0 on success and -errno on error.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 13:31:43 GMT, October 06, 2005