.\" 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_DIR_OPEN" "9" "09 October 2005" "" "" .SH NAME ntfs_dir_open \- called when an inode is about to be opened .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int ntfs_dir_open (struct inode * \fIvi\fB, struct file * \fIfilp\fB); \fR .SH "ARGUMENTS" .TP \fB\fIvi\fB\fR inode to be opened .TP \fB\fIfilp\fB\fR file structure describing the inode .SH "DESCRIPTION" .PP Limit directory size to the page cache limit on architectures where unsigned long is 32-bits. This is the most we can do for now without overflowing the page cache page index. Doing it this way means we don't run into problems because of existing too large directories. It would be better to allow the user to read the accessible part of the directory but I doubt very much anyone is going to hit this check on a 32-bit architecture, so there is no point in adding the extra complexity required to support this. .PP On 64-bit architectures, the check is hopefully optimized away by the compiler.