Lines Matching refs:VFS_I

186 		down_write_nested(&VFS_I(ip)->i_rwsem,
189 down_read_nested(&VFS_I(ip)->i_rwsem,
237 if (!down_write_trylock(&VFS_I(ip)->i_rwsem))
240 if (!down_read_trylock(&VFS_I(ip)->i_rwsem))
268 up_write(&VFS_I(ip)->i_rwsem);
270 up_read(&VFS_I(ip)->i_rwsem);
307 up_write(&VFS_I(ip)->i_rwsem);
309 up_read(&VFS_I(ip)->i_rwsem);
342 downgrade_write(&VFS_I(ip)->i_rwsem);
368 lockdep_is_held_type(&VFS_I(ip)->i_rwsem, 0);
369 return rwsem_is_locked(&VFS_I(ip)->i_rwsem);
708 umode_t mode = VFS_I(ip)->i_mode;
805 struct inode *dir = pip ? VFS_I(pip) : NULL;
850 inode = VFS_I(ip);
1086 drop_nlink(VFS_I(ip));
1089 if (VFS_I(ip)->i_nlink)
1105 inc_nlink(VFS_I(ip));
1369 ASSERT(!S_ISDIR(VFS_I(sip)->i_mode));
1416 if (VFS_I(sip)->i_nlink == 0) {
1501 ASSERT(!atomic_read(&VFS_I(ip)->i_count) ||
1573 if (!S_ISREG(VFS_I(ip)->i_mode) || (VFS_I(ip)->i_mode == 0))
1597 error = filemap_flush(VFS_I(ip)->i_mapping);
1604 if (VFS_I(ip)->i_nlink == 0)
1814 if (VFS_I(ip)->i_mode == 0) {
1830 if (VFS_I(ip)->i_nlink != 0) {
1846 if (S_ISREG(VFS_I(ip)->i_mode) &&
1855 if (S_ISLNK(VFS_I(ip)->i_mode))
2240 ASSERT(VFS_I(ip)->i_nlink == 0);
2241 ASSERT(VFS_I(ip)->i_mode != 0);
2690 ASSERT(VFS_I(ip)->i_nlink == 0);
2692 ASSERT(ip->i_d.di_size == 0 || !S_ISREG(VFS_I(ip)->i_mode));
2720 VFS_I(ip)->i_mode = 0; /* mark incore inode as free */
2736 VFS_I(ip)->i_generation++;
2823 int is_dir = S_ISDIR(VFS_I(ip)->i_mode);
2870 ASSERT(VFS_I(ip)->i_nlink >= 2);
2871 if (VFS_I(ip)->i_nlink != 2) {
3037 if (S_ISDIR(VFS_I(ip2)->i_mode)) {
3044 if (!S_ISDIR(VFS_I(ip1)->i_mode)) {
3061 if (S_ISDIR(VFS_I(ip1)->i_mode)) {
3068 if (!S_ISDIR(VFS_I(ip2)->i_mode)) {
3134 VFS_I(tmpfile)->i_state |= I_LINKABLE;
3160 bool src_is_directory = S_ISDIR(VFS_I(src_ip)->i_mode);
3261 if (S_ISDIR(VFS_I(target_ip)->i_mode) &&
3263 (VFS_I(target_ip)->i_nlink > 2))) {
3282 (VFS_I(target_ip)->i_nlink == 1 || src_is_directory))) {
3306 ASSERT(VFS_I(wip)->i_nlink == 0);
3312 VFS_I(wip)->i_state &= ~I_LINKABLE;
3476 if (S_ISREG(VFS_I(ip)->i_mode)) {
3486 } else if (S_ISDIR(VFS_I(ip)->i_mode)) {
3711 iput(VFS_I(ip));
3799 ret = xfs_iolock_two_inodes_and_break_layout(VFS_I(ip1), VFS_I(ip2));
3821 inode_unlock(VFS_I(ip2));
3823 inode_unlock(VFS_I(ip1));