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()
303 (unsigned long long)new_init_size, i_size_read(vi)); in ntfs_attr_extend_initialized()
326 struct inode *vi = file_inode(file); in ntfs_prepare_file_for_write() local
327 ntfs_inode *ni = NTFS_I(vi); in ntfs_prepare_file_for_write()
331 "0x%llx, count 0x%zx.", vi->i_ino, in ntfs_prepare_file_for_write()
364 ntfs_error(vi->i_sb, "Writing to compressed files is not " in ntfs_prepare_file_for_write()
405 vi->i_ino, (unsigned) in ntfs_prepare_file_for_write()
420 vi->i_ino, (unsigned) in ntfs_prepare_file_for_write()
426 ntfs_error(vi->i_sb, "Cannot perform " in ntfs_prepare_file_for_write()
433 vi->i_ino, (unsigned) in ntfs_prepare_file_for_write()
442 vi->i_ino, (unsigned) in ntfs_prepare_file_for_write()
463 inode_dio_wait(vi); in ntfs_prepare_file_for_write()
466 ntfs_error(vi->i_sb, "Cannot perform write to inode " in ntfs_prepare_file_for_write()
469 "failed (error %d).", vi->i_ino, in ntfs_prepare_file_for_write()
576 struct inode *vi; in ntfs_prepare_pages_for_non_resident_write() local
600 vi = pages[0]->mapping->host; in ntfs_prepare_pages_for_non_resident_write()
601 ni = NTFS_I(vi); in ntfs_prepare_pages_for_non_resident_write()
605 vi->i_ino, ni->type, pages[0]->index, nr_pages, in ntfs_prepare_pages_for_non_resident_write()
1107 "code %i.", vi->i_ino, in ntfs_prepare_pages_for_non_resident_write()
1387 struct inode *vi; in ntfs_commit_pages_after_non_resident_write() local
1397 vi = pages[0]->mapping->host; in ntfs_commit_pages_after_non_resident_write()
1398 ni = NTFS_I(vi); in ntfs_commit_pages_after_non_resident_write()
1399 blocksize = vi->i_sb->s_blocksize; in ntfs_commit_pages_after_non_resident_write()
1476 if (end > i_size_read(vi)) { in ntfs_commit_pages_after_non_resident_write()
1477 i_size_write(vi, end); in ntfs_commit_pages_after_non_resident_write()
1494 ntfs_error(vi->i_sb, "Failed to update initialized_size/i_size (error " in ntfs_commit_pages_after_non_resident_write()
1542 struct inode *vi; in ntfs_commit_pages_after_write() local
1557 vi = page->mapping->host; in ntfs_commit_pages_after_write()
1558 ni = NTFS_I(vi); in ntfs_commit_pages_after_write()
1561 vi->i_ino, ni->type, page->index, nr_pages, in ntfs_commit_pages_after_write()
1600 i_size = i_size_read(vi); in ntfs_commit_pages_after_write()
1639 i_size_write(vi, end); in ntfs_commit_pages_after_write()
1651 ntfs_warning(vi->i_sb, "Error allocating memory required to " in ntfs_commit_pages_after_write()
1654 ntfs_warning(vi->i_sb, "Page is uptodate, setting " in ntfs_commit_pages_after_write()
1664 ntfs_error(vi->i_sb, "Page is not uptodate. Written " in ntfs_commit_pages_after_write()
1667 ntfs_error(vi->i_sb, "Resident attribute commit write failed " in ntfs_commit_pages_after_write()
1729 struct inode *vi = mapping->host; in ntfs_perform_write() local
1730 ntfs_inode *ni = NTFS_I(vi); in ntfs_perform_write()
1741 "0x%llx, count 0x%lx.", vi->i_ino, in ntfs_perform_write()
1752 inode_dio_wait(vi); in ntfs_perform_write()
1753 err = ntfs_truncate(vi); in ntfs_perform_write()
1760 "%i).", vi->i_ino, in ntfs_perform_write()
1807 vi->i_ino, (unsigned) in ntfs_perform_write()
1913 struct inode *vi = file_inode(file); in ntfs_file_write_iter() local
1917 inode_lock(vi); in ntfs_file_write_iter()
1919 current->backing_dev_info = inode_to_bdi(vi); in ntfs_file_write_iter()
1924 inode_unlock(vi); in ntfs_file_write_iter()
1958 struct inode *vi = filp->f_mapping->host; in ntfs_file_fsync() local
1961 ntfs_debug("Entering for inode 0x%lx.", vi->i_ino); in ntfs_file_fsync()
1966 inode_lock(vi); in ntfs_file_fsync()
1968 BUG_ON(S_ISDIR(vi->i_mode)); in ntfs_file_fsync()
1969 if (!datasync || !NInoNonResident(NTFS_I(vi))) in ntfs_file_fsync()
1970 ret = __ntfs_write_inode(vi, 1); in ntfs_file_fsync()
1971 write_inode_now(vi, !datasync); in ntfs_file_fsync()
1977 err = sync_blockdev(vi->i_sb->s_bdev); in ntfs_file_fsync()
1983 ntfs_warning(vi->i_sb, "Failed to f%ssync inode 0x%lx. Error " in ntfs_file_fsync()
1984 "%u.", datasync ? "data" : "", vi->i_ino, -ret); in ntfs_file_fsync()
1985 inode_unlock(vi); in ntfs_file_fsync()