.\" 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_MST_BLOCK" "9" "09 October 2005" "" ""
.SH NAME
ntfs_write_mst_block \- write a page to the backing store
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int ntfs_write_mst_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, mst protected
attributes to their backing store. The only supported attributes are index
allocation and \fB$MFT\fR/\fB$DATA\fR\&. Both directory inodes and index inodes are
supported for the index allocation case.
.PP
The page must remain locked for the duration of the write because we apply
the mst fixups, write, and then undo the fixups, so if we were to unlock the
page before undoing the fixups, any other user of the page will see the
page contents as corrupt.
.PP
We clear the page uptodate flag for the duration of the function to ensure
exclusion for the \fB$MFT\fR/\fB$DATA\fR case against someone mapping an mft record we
are about to apply the mst fixups to.
.PP
Return 0 on success and -errno on error.
.PP
Based on \fBntfs_write_block\fR, \fBntfs_mft_writepage\fR, and
\fBwrite_mft_record_nolock\fR\&.