Lines Matching refs:vi
1464 static int ntfs_dir_open(struct inode *vi, struct file *filp) in ntfs_dir_open() argument
1467 if (i_size_read(vi) > MAX_LFS_FILESIZE) in ntfs_dir_open()
1503 struct inode *bmp_vi, *vi = filp->f_mapping->host; in ntfs_dir_fsync() local
1507 ntfs_debug("Entering for inode 0x%lx.", vi->i_ino); in ntfs_dir_fsync()
1509 err = filemap_write_and_wait_range(vi->i_mapping, start, end); in ntfs_dir_fsync()
1512 mutex_lock(&vi->i_mutex); in ntfs_dir_fsync()
1514 BUG_ON(!S_ISDIR(vi->i_mode)); in ntfs_dir_fsync()
1516 na.mft_no = vi->i_ino; in ntfs_dir_fsync()
1520 bmp_vi = ilookup5(vi->i_sb, vi->i_ino, (test_t)ntfs_test_inode, &na); in ntfs_dir_fsync()
1525 ret = __ntfs_write_inode(vi, 1); in ntfs_dir_fsync()
1526 write_inode_now(vi, !datasync); in ntfs_dir_fsync()
1527 err = sync_blockdev(vi->i_sb->s_bdev); in ntfs_dir_fsync()
1533 ntfs_warning(vi->i_sb, "Failed to f%ssync inode 0x%lx. Error " in ntfs_dir_fsync()
1534 "%u.", datasync ? "data" : "", vi->i_ino, -ret); in ntfs_dir_fsync()
1535 mutex_unlock(&vi->i_mutex); in ntfs_dir_fsync()