.\" 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_TRUNCATE" "9" "09 October 2005" "" "" .SH NAME ntfs_truncate \- called when the i_size of an ntfs inode is changed .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int ntfs_truncate (struct inode * \fIvi\fB); \fR .SH "ARGUMENTS" .TP \fB\fIvi\fB\fR inode for which the i_size was changed .SH "DESCRIPTION" .PP We do not support i_size changes yet. .PP The kernel guarantees that \fIvi\fR is a regular file (\fBS_ISREG\fR is true) and that the change is allowed. .PP This implies for us that \fIvi\fR is a file inode rather than a directory, index, or attribute inode as well as that \fIvi\fR is a base inode. .PP Returns 0 on success or -errno on error. .PP Called with ->i_sem held. In all but one case ->i_alloc_sem is held for writing. The only case where ->i_alloc_sem is not held is mm/filemap.c::\fBgeneric_file_buffered_write\fR where \fBvmtruncate\fR is called with the current i_size as the offset which means that it is a noop as far as \fBntfs_truncate\fR is concerned.