Lines Matching refs:vi
49 static int ntfs_file_open(struct inode *vi, struct file *filp) in ntfs_file_open() argument
52 if (i_size_read(vi) > MAX_LFS_FILESIZE) in ntfs_file_open()
55 return generic_file_open(vi, filp); in ntfs_file_open()
102 struct inode *vi = VFS_I(ni); in ntfs_attr_extend_initialized() local
115 old_i_size = i_size_read(vi); in ntfs_attr_extend_initialized()
121 vi->i_ino, (unsigned)le32_to_cpu(ni->type), in ntfs_attr_extend_initialized()
165 i_size_write(vi, new_init_size); in ntfs_attr_extend_initialized()
203 i_size_write(vi, new_init_size); in ntfs_attr_extend_initialized()
209 mapping = vi->i_mapping; in ntfs_attr_extend_initialized()
298 (unsigned long long)new_init_size, i_size_read(vi)); in ntfs_attr_extend_initialized()
321 struct inode *vi = file_inode(file); in ntfs_prepare_file_for_write() local
322 ntfs_inode *ni = NTFS_I(vi); in ntfs_prepare_file_for_write()
326 "0x%llx, count 0x%zx.", vi->i_ino, in ntfs_prepare_file_for_write()
359 ntfs_error(vi->i_sb, "Writing to compressed files is not " in ntfs_prepare_file_for_write()
400 vi->i_ino, (unsigned) in ntfs_prepare_file_for_write()
415 vi->i_ino, (unsigned) in ntfs_prepare_file_for_write()
421 ntfs_error(vi->i_sb, "Cannot perform " in ntfs_prepare_file_for_write()
428 vi->i_ino, (unsigned) in ntfs_prepare_file_for_write()
437 vi->i_ino, (unsigned) in ntfs_prepare_file_for_write()
458 inode_dio_wait(vi); in ntfs_prepare_file_for_write()
461 ntfs_error(vi->i_sb, "Cannot perform write to inode " in ntfs_prepare_file_for_write()
464 "failed (error %d).", vi->i_ino, in ntfs_prepare_file_for_write()
571 struct inode *vi; in ntfs_prepare_pages_for_non_resident_write() local
595 vi = pages[0]->mapping->host; in ntfs_prepare_pages_for_non_resident_write()
596 ni = NTFS_I(vi); in ntfs_prepare_pages_for_non_resident_write()
600 vi->i_ino, ni->type, pages[0]->index, nr_pages, in ntfs_prepare_pages_for_non_resident_write()
1102 "code %i.", vi->i_ino, in ntfs_prepare_pages_for_non_resident_write()
1382 struct inode *vi; in ntfs_commit_pages_after_non_resident_write() local
1392 vi = pages[0]->mapping->host; in ntfs_commit_pages_after_non_resident_write()
1393 ni = NTFS_I(vi); in ntfs_commit_pages_after_non_resident_write()
1394 blocksize = vi->i_sb->s_blocksize; in ntfs_commit_pages_after_non_resident_write()
1471 if (end > i_size_read(vi)) { in ntfs_commit_pages_after_non_resident_write()
1472 i_size_write(vi, end); in ntfs_commit_pages_after_non_resident_write()
1489 ntfs_error(vi->i_sb, "Failed to update initialized_size/i_size (error " in ntfs_commit_pages_after_non_resident_write()
1537 struct inode *vi; in ntfs_commit_pages_after_write() local
1552 vi = page->mapping->host; in ntfs_commit_pages_after_write()
1553 ni = NTFS_I(vi); in ntfs_commit_pages_after_write()
1556 vi->i_ino, ni->type, page->index, nr_pages, in ntfs_commit_pages_after_write()
1595 i_size = i_size_read(vi); in ntfs_commit_pages_after_write()
1634 i_size_write(vi, end); in ntfs_commit_pages_after_write()
1646 ntfs_warning(vi->i_sb, "Error allocating memory required to " in ntfs_commit_pages_after_write()
1649 ntfs_warning(vi->i_sb, "Page is uptodate, setting " in ntfs_commit_pages_after_write()
1659 ntfs_error(vi->i_sb, "Page is not uptodate. Written " in ntfs_commit_pages_after_write()
1662 ntfs_error(vi->i_sb, "Resident attribute commit write failed " in ntfs_commit_pages_after_write()
1724 struct inode *vi = mapping->host; in ntfs_perform_write() local
1725 ntfs_inode *ni = NTFS_I(vi); in ntfs_perform_write()
1736 "0x%llx, count 0x%lx.", vi->i_ino, in ntfs_perform_write()
1747 inode_dio_wait(vi); in ntfs_perform_write()
1748 err = ntfs_truncate(vi); in ntfs_perform_write()
1755 "%i).", vi->i_ino, in ntfs_perform_write()
1802 vi->i_ino, (unsigned) in ntfs_perform_write()
1908 struct inode *vi = file_inode(file); in ntfs_file_write_iter() local
1912 inode_lock(vi); in ntfs_file_write_iter()
1917 inode_unlock(vi); in ntfs_file_write_iter()
1951 struct inode *vi = filp->f_mapping->host; in ntfs_file_fsync() local
1954 ntfs_debug("Entering for inode 0x%lx.", vi->i_ino); in ntfs_file_fsync()
1959 inode_lock(vi); in ntfs_file_fsync()
1961 BUG_ON(S_ISDIR(vi->i_mode)); in ntfs_file_fsync()
1962 if (!datasync || !NInoNonResident(NTFS_I(vi))) in ntfs_file_fsync()
1963 ret = __ntfs_write_inode(vi, 1); in ntfs_file_fsync()
1964 write_inode_now(vi, !datasync); in ntfs_file_fsync()
1970 err = sync_blockdev(vi->i_sb->s_bdev); in ntfs_file_fsync()
1976 ntfs_warning(vi->i_sb, "Failed to f%ssync inode 0x%lx. Error " in ntfs_file_fsync()
1977 "%u.", datasync ? "data" : "", vi->i_ino, -ret); in ntfs_file_fsync()
1978 inode_unlock(vi); in ntfs_file_fsync()