Lines Matching refs:VFS_I

180 		down_write_nested(&VFS_I(ip)->i_rwsem,  in xfs_ilock()
183 down_read_nested(&VFS_I(ip)->i_rwsem, in xfs_ilock()
231 if (!down_write_trylock(&VFS_I(ip)->i_rwsem)) in xfs_ilock_nowait()
234 if (!down_read_trylock(&VFS_I(ip)->i_rwsem)) in xfs_ilock_nowait()
262 up_write(&VFS_I(ip)->i_rwsem); in xfs_ilock_nowait()
264 up_read(&VFS_I(ip)->i_rwsem); in xfs_ilock_nowait()
301 up_write(&VFS_I(ip)->i_rwsem); in xfs_iunlock()
303 up_read(&VFS_I(ip)->i_rwsem); in xfs_iunlock()
336 downgrade_write(&VFS_I(ip)->i_rwsem); in xfs_ilock_demote()
362 lockdep_is_held_type(&VFS_I(ip)->i_rwsem, 0); in xfs_isilocked()
363 return rwsem_is_locked(&VFS_I(ip)->i_rwsem); in xfs_isilocked()
797 inode = VFS_I(ip); in xfs_ialloc()
816 if ((VFS_I(pip)->i_mode & S_ISGID) && S_ISDIR(mode)) in xfs_ialloc()
1101 drop_nlink(VFS_I(ip)); in xfs_droplink()
1104 if (VFS_I(ip)->i_nlink) in xfs_droplink()
1121 inc_nlink(VFS_I(ip)); in xfs_bumplink()
1388 ASSERT(!S_ISDIR(VFS_I(sip)->i_mode)); in xfs_link()
1435 if (VFS_I(sip)->i_nlink == 0) { in xfs_link()
1522 ASSERT(!atomic_read(&VFS_I(ip)->i_count) || in xfs_itruncate_extents_flags()
1600 if (!S_ISREG(VFS_I(ip)->i_mode) || (VFS_I(ip)->i_mode == 0)) in xfs_release()
1624 error = filemap_flush(VFS_I(ip)->i_mapping); in xfs_release()
1631 if (VFS_I(ip)->i_nlink == 0) in xfs_release()
1822 if (VFS_I(ip)->i_mode == 0) { in xfs_inactive()
1838 if (VFS_I(ip)->i_nlink != 0) { in xfs_inactive()
1854 if (S_ISREG(VFS_I(ip)->i_mode) && in xfs_inactive()
1863 if (S_ISLNK(VFS_I(ip)->i_mode)) in xfs_inactive()
2243 ASSERT(VFS_I(ip)->i_nlink == 0); in xfs_iunlink()
2244 ASSERT(VFS_I(ip)->i_mode != 0); in xfs_iunlink()
2743 ASSERT(VFS_I(ip)->i_nlink == 0); in xfs_ifree()
2746 ASSERT(ip->i_d.di_size == 0 || !S_ISREG(VFS_I(ip)->i_mode)); in xfs_ifree()
2763 VFS_I(ip)->i_mode = 0; /* mark incore inode as free */ in xfs_ifree()
2778 VFS_I(ip)->i_generation++; in xfs_ifree()
2865 int is_dir = S_ISDIR(VFS_I(ip)->i_mode); in xfs_remove()
2912 ASSERT(VFS_I(ip)->i_nlink >= 2); in xfs_remove()
2913 if (VFS_I(ip)->i_nlink != 2) { in xfs_remove()
3079 if (S_ISDIR(VFS_I(ip2)->i_mode)) { in xfs_cross_rename()
3086 if (!S_ISDIR(VFS_I(ip1)->i_mode)) { in xfs_cross_rename()
3103 if (S_ISDIR(VFS_I(ip1)->i_mode)) { in xfs_cross_rename()
3110 if (!S_ISDIR(VFS_I(ip2)->i_mode)) { in xfs_cross_rename()
3176 VFS_I(tmpfile)->i_state |= I_LINKABLE; in xfs_rename_alloc_whiteout()
3201 bool src_is_directory = S_ISDIR(VFS_I(src_ip)->i_mode); in xfs_rename()
3303 if (S_ISDIR(VFS_I(target_ip)->i_mode) && in xfs_rename()
3305 (VFS_I(target_ip)->i_nlink > 2))) { in xfs_rename()
3324 ASSERT(VFS_I(wip)->i_nlink == 0); in xfs_rename()
3331 VFS_I(wip)->i_state &= ~I_LINKABLE; in xfs_rename()
3793 if (S_ISREG(VFS_I(ip)->i_mode)) { in xfs_iflush_int()
3803 } else if (S_ISDIR(VFS_I(ip)->i_mode)) { in xfs_iflush_int()
3923 iput(VFS_I(ip)); in xfs_irele()