Lines Matching refs:VFS_I
186 down_write_nested(&VFS_I(ip)->i_rwsem, in xfs_ilock()
189 down_read_nested(&VFS_I(ip)->i_rwsem, in xfs_ilock()
237 if (!down_write_trylock(&VFS_I(ip)->i_rwsem)) in xfs_ilock_nowait()
240 if (!down_read_trylock(&VFS_I(ip)->i_rwsem)) in xfs_ilock_nowait()
268 up_write(&VFS_I(ip)->i_rwsem); in xfs_ilock_nowait()
270 up_read(&VFS_I(ip)->i_rwsem); in xfs_ilock_nowait()
307 up_write(&VFS_I(ip)->i_rwsem); in xfs_iunlock()
309 up_read(&VFS_I(ip)->i_rwsem); in xfs_iunlock()
342 downgrade_write(&VFS_I(ip)->i_rwsem); in xfs_ilock_demote()
368 lockdep_is_held_type(&VFS_I(ip)->i_rwsem, 0); in xfs_isilocked()
369 return rwsem_is_locked(&VFS_I(ip)->i_rwsem); in xfs_isilocked()
708 umode_t mode = VFS_I(ip)->i_mode; in xfs_inode_inherit_flags()
849 inode = VFS_I(ip); in xfs_ialloc()
857 inode->i_gid = VFS_I(pip)->i_gid; in xfs_ialloc()
858 if ((VFS_I(pip)->i_mode & S_ISGID) && S_ISDIR(mode)) in xfs_ialloc()
1086 drop_nlink(VFS_I(ip)); in xfs_droplink()
1089 if (VFS_I(ip)->i_nlink) in xfs_droplink()
1105 inc_nlink(VFS_I(ip)); in xfs_bumplink()
1369 ASSERT(!S_ISDIR(VFS_I(sip)->i_mode)); in xfs_link()
1416 if (VFS_I(sip)->i_nlink == 0) { in xfs_link()
1501 ASSERT(!atomic_read(&VFS_I(ip)->i_count) || in xfs_itruncate_extents_flags()
1573 if (!S_ISREG(VFS_I(ip)->i_mode) || (VFS_I(ip)->i_mode == 0)) in xfs_release()
1597 error = filemap_flush(VFS_I(ip)->i_mapping); in xfs_release()
1604 if (VFS_I(ip)->i_nlink == 0) in xfs_release()
1814 if (VFS_I(ip)->i_mode == 0) { in xfs_inactive()
1830 if (VFS_I(ip)->i_nlink != 0) { in xfs_inactive()
1846 if (S_ISREG(VFS_I(ip)->i_mode) && in xfs_inactive()
1855 if (S_ISLNK(VFS_I(ip)->i_mode)) in xfs_inactive()
2240 ASSERT(VFS_I(ip)->i_nlink == 0); in xfs_iunlink()
2241 ASSERT(VFS_I(ip)->i_mode != 0); in xfs_iunlink()
2691 ASSERT(VFS_I(ip)->i_nlink == 0); in xfs_ifree()
2693 ASSERT(ip->i_d.di_size == 0 || !S_ISREG(VFS_I(ip)->i_mode)); in xfs_ifree()
2718 VFS_I(ip)->i_mode = 0; /* mark incore inode as free */ in xfs_ifree()
2734 VFS_I(ip)->i_generation++; in xfs_ifree()
2821 int is_dir = S_ISDIR(VFS_I(ip)->i_mode); in xfs_remove()
2868 ASSERT(VFS_I(ip)->i_nlink >= 2); in xfs_remove()
2869 if (VFS_I(ip)->i_nlink != 2) { in xfs_remove()
3035 if (S_ISDIR(VFS_I(ip2)->i_mode)) { in xfs_cross_rename()
3042 if (!S_ISDIR(VFS_I(ip1)->i_mode)) { in xfs_cross_rename()
3059 if (S_ISDIR(VFS_I(ip1)->i_mode)) { in xfs_cross_rename()
3066 if (!S_ISDIR(VFS_I(ip2)->i_mode)) { in xfs_cross_rename()
3132 VFS_I(tmpfile)->i_state |= I_LINKABLE; in xfs_rename_alloc_whiteout()
3158 bool src_is_directory = S_ISDIR(VFS_I(src_ip)->i_mode); in xfs_rename()
3260 if (S_ISDIR(VFS_I(target_ip)->i_mode) && in xfs_rename()
3262 (VFS_I(target_ip)->i_nlink > 2))) { in xfs_rename()
3281 ASSERT(VFS_I(wip)->i_nlink == 0); in xfs_rename()
3287 VFS_I(wip)->i_state &= ~I_LINKABLE; in xfs_rename()
3467 if (S_ISREG(VFS_I(ip)->i_mode)) { in xfs_iflush()
3477 } else if (S_ISDIR(VFS_I(ip)->i_mode)) { in xfs_iflush()
3702 iput(VFS_I(ip)); in xfs_irele()
3790 ret = xfs_iolock_two_inodes_and_break_layout(VFS_I(ip1), VFS_I(ip2)); in xfs_ilock2_io_mmap()
3812 inode_unlock(VFS_I(ip2)); in xfs_iunlock2_io_mmap()
3814 inode_unlock(VFS_I(ip1)); in xfs_iunlock2_io_mmap()