.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "NTFS_WRITE_BLOCK" "9" "09 October 2005" "" "" .SH NAME ntfs_write_block \- write a page to the backing store .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int ntfs_write_block (struct page * \fIpage\fB, struct writeback_control * \fIwbc\fB); \fR .SH "ARGUMENTS" .TP \fB\fIpage\fB\fR page cache page to write out .TP \fB\fIwbc\fB\fR writeback control structure .SH "DESCRIPTION" .PP This function is for writing pages belonging to non-resident, non-mst protected attributes to their backing store. .PP For a page with buffers, map and write the dirty buffers asynchronously under page writeback. For a page without buffers, create buffers for the page, then proceed as above. .PP If a page doesn't have buffers the page dirty state is definitive. If a page does have buffers, the page dirty state is just a hint, and the buffer dirty state is definitive. (A hint which has rules: dirty buffers against a clean page is illegal. Other combinations are legal and need to be handled. In particular a dirty page containing clean buffers for example.) .PP Return 0 on success and -errno on error. .PP Based on \fBntfs_read_block\fR and \fB__block_write_full_page\fR\&.