.\" 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_INODE" "9" "09 October 2005" "" ""
.SH NAME
ntfs_write_inode \- write out a dirty inode
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int ntfs_write_inode (struct inode * \fIvi\fB, int \fIsync\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIvi\fB\fR
inode to write out
.TP
\fB\fIsync\fB\fR
if true, write out synchronously
.SH "DESCRIPTION"
.PP
Write out a dirty inode to disk including any extent inodes if present.
.PP
If \fIsync\fR is true, commit the inode to disk and wait for io completion. This
is done using \fBwrite_mft_record\fR\&.
.PP
If \fIsync\fR is false, just schedule the write to happen but do not wait for i/o
completion. In 2.6 kernels, scheduling usually happens just by virtue of
marking the page (and in this case mft record) dirty but we do not implement
this yet as \fBwrite_mft_record\fR largely ignores the \fIsync\fR parameter and
always performs synchronous writes.
.PP
Return 0 on success and -errno on error.