.\" 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_FILLDIR" "9" "09 October 2005" "" ""
.SH NAME
ntfs_filldir \- ntfs specific filldir method
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int ntfs_filldir (ntfs_volume * \fIvol\fB, loff_t \fIfpos\fB, ntfs_inode * \fIndir\fB, struct page * \fIia_page\fB, INDEX_ENTRY * \fIie\fB, u8 * \fIname\fB, void * \fIdirent\fB, filldir_t \fIfilldir\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIvol\fB\fR
current ntfs volume
.TP
\fB\fIfpos\fB\fR
position in the directory
.TP
\fB\fIndir\fB\fR
ntfs inode of current directory
.TP
\fB\fIia_page\fB\fR
page in which the index allocation buffer \fIie\fR is in resides
.TP
\fB\fIie\fB\fR
current index entry
.TP
\fB\fIname\fB\fR
buffer to use for the converted name
.TP
\fB\fIdirent\fB\fR
vfs filldir callback context
.TP
\fB\fIfilldir\fB\fR
vfs filldir callback
.SH "DESCRIPTION"
.PP
Convert the Unicode \fIname\fR to the loaded NLS and pass it to the \fIfilldir\fR
callback.
.PP
If \fIia_page\fR is not NULL it is the locked page containing the index
allocation block containing the index entry \fIie\fR\&.
.PP
Note, we drop (and then reacquire) the page lock on \fIia_page\fR across the
\fIfilldir\fR() call otherwise we would deadlock with NFSd when it calls ->lookup
since \fBntfs_lookup\fR will lock the same page. As an optimization, we do not
retake the lock if we are returning a non-zero value as \fBntfs_readdir\fR
would need to drop the lock immediately anyway.