Lines Matching refs:d_inode

135         if (!victim->d_inode || victim->d_parent->d_inode != dir)  in may_delete()
142 if (check_sticky(dir, victim->d_inode)||IS_APPEND(victim->d_inode)|| in may_delete()
143 IS_IMMUTABLE(victim->d_inode)) in may_delete()
146 if (!S_ISDIR(victim->d_inode->i_mode)) in may_delete()
150 } else if (S_ISDIR(victim->d_inode->i_mode)) in may_delete()
157 if (child->d_inode) in may_create()
185 kdev_t dev = fset->fset_dentry->d_inode->i_dev; in presto_debug_fail_blkdev()
257 inode = dentry->d_inode; in presto_settime()
281 inode_setattr(dentry->d_inode, &iattr); in presto_settime()
302 struct inode *inode = file->f_dentry->d_inode; in presto_do_close()
315 handle = presto_trans_start(fset, file->f_dentry->d_inode, in presto_do_close()
365 struct inode *inode = dentry->d_inode; in presto_do_setattr()
385 presto_getversion(&old_ver, dentry->d_inode); in presto_do_setattr()
386 izo_get_rollback_data(dentry->d_inode, &rb); in presto_do_setattr()
399 "failed\n", dentry->d_inode->i_ino); in presto_do_setattr()
400 handle = presto_trans_start(fset, dentry->d_inode, in presto_do_setattr()
403 handle = presto_trans_start(fset, dentry->d_inode, in presto_do_setattr()
413 if (dentry->d_inode && iops && iops->setattr) { in presto_do_setattr()
416 error = inode_change_ok(dentry->d_inode, iattr); in presto_do_setattr()
507 (dentry->d_inode->i_mode & ~S_IALLUGO); in lento_setattr()
509 dentry->d_inode->i_mode, set_mode, iattr->ia_mode); in lento_setattr()
523 set_posix_acl=dentry->d_inode->i_op->set_posix_acl; in lento_setattr()
524 dentry->d_inode->i_op->set_posix_acl=NULL; in lento_setattr()
541 dentry->d_inode->i_op->set_posix_acl=set_posix_acl; in lento_setattr()
567 down(&dir->d_inode->i_zombie); in presto_do_create()
571 up(&dir->d_inode->i_zombie); in presto_do_create()
575 error = may_create(dir->d_inode, dentry); in presto_do_create()
588 presto_getversion(&tgt_dir_ver, dir->d_inode); in presto_do_create()
589 handle = presto_trans_start(fset, dir->d_inode, KML_OPCODE_CREATE); in presto_do_create()
597 DQUOT_INIT(dir->d_inode); in presto_do_create()
599 error = iops->create(dir->d_inode, dentry, mode); in presto_do_create()
605 if (dentry->d_inode) { in presto_do_create()
608 presto_set_ops(dentry->d_inode, cache->cache_filter); in presto_do_create()
634 presto_getversion(&new_file_ver, dentry->d_inode); in presto_do_create()
637 dentry->d_inode->i_mode); in presto_do_create()
651 (dir->d_inode->i_sb->s_root, dentry); in presto_do_create()
661 up(&dir->d_inode->i_zombie); in presto_do_create()
670 down(&nd->dentry->d_inode->i_sem); in lookup_create()
677 if (!is_dir && nd->last.name[nd->last.len] && !dentry->d_inode) in lookup_create()
733 up(&dentry->d_parent->d_inode->i_sem); in lento_create()
751 down(&dir->d_inode->i_zombie); in presto_do_link()
755 up(&dir->d_inode->i_zombie); in presto_do_link()
759 inode = old_dentry->d_inode; in presto_do_link()
763 error = may_create(dir->d_inode, new_dentry); in presto_do_link()
768 if (dir->d_inode->i_dev != inode->i_dev) in presto_do_link()
787 presto_getversion(&tgt_dir_ver, dir->d_inode); in presto_do_link()
788 handle = presto_trans_start(fset, dir->d_inode, KML_OPCODE_LINK); in presto_do_link()
795 DQUOT_INIT(dir->d_inode); in presto_do_link()
797 error = iops->link(old_dentry, dir->d_inode, new_dentry); in presto_do_link()
821 presto_getversion(&new_link_ver, new_dentry->d_inode); in presto_do_link()
835 up(&dir->d_inode->i_zombie); in presto_do_link()
886 up(&nd.dentry->d_inode->i_sem); in lento_link()
910 down(&dir->d_inode->i_zombie); in presto_do_unlink()
911 error = may_delete(dir->d_inode, dentry, 0); in presto_do_unlink()
914 up(&dir->d_inode->i_zombie); in presto_do_unlink()
922 up(&dir->d_inode->i_zombie); in presto_do_unlink()
929 up(&dir->d_inode->i_zombie); in presto_do_unlink()
937 if (de && dentry->d_inode->i_nlink == 1) { in presto_do_unlink()
941 atomic_dec(&de->d_inode->i_count); in presto_do_unlink()
942 de->d_inode = NULL; in presto_do_unlink()
947 presto_getversion(&tgt_dir_ver, dir->d_inode); in presto_do_unlink()
948 presto_getversion(&old_file_ver, dentry->d_inode); in presto_do_unlink()
949 izo_get_rollback_data(dentry->d_inode, &rb); in presto_do_unlink()
950 handle = presto_trans_start(fset, dir->d_inode, KML_OPCODE_UNLINK); in presto_do_unlink()
954 up(&dir->d_inode->i_zombie); in presto_do_unlink()
957 DQUOT_INIT(dir->d_inode); in presto_do_unlink()
962 linkno = dentry->d_inode->i_nlink; in presto_do_unlink()
967 if (S_ISLNK(dentry->d_inode->i_mode)) { in presto_do_unlink()
1001 error = iops->unlink(dir->d_inode, dentry); in presto_do_unlink()
1025 up(&dir->d_inode->i_zombie); in presto_do_unlink()
1072 down(&nd.dentry->d_inode->i_sem); in lento_unlink()
1091 up(&nd.dentry->d_inode->i_sem); in lento_unlink()
1100 error = !dentry->d_inode ? -ENOENT : in lento_unlink()
1101 S_ISDIR(dentry->d_inode->i_mode) ? -EISDIR : -ENOTDIR; in lento_unlink()
1116 down(&dir->d_inode->i_zombie); in presto_do_symlink()
1121 up(&dir->d_inode->i_zombie); in presto_do_symlink()
1125 error = may_create(dir->d_inode, dentry); in presto_do_symlink()
1138 presto_getversion(&tgt_dir_ver, dir->d_inode); in presto_do_symlink()
1139 handle = presto_trans_start(fset, dir->d_inode, KML_OPCODE_SYMLINK); in presto_do_symlink()
1144 up(&dir->d_inode->i_zombie); in presto_do_symlink()
1147 DQUOT_INIT(dir->d_inode); in presto_do_symlink()
1149 error = iops->symlink(dir->d_inode, dentry, oldname); in presto_do_symlink()
1155 if (dentry->d_inode) { in presto_do_symlink()
1158 presto_set_ops(dentry->d_inode, cache->cache_filter); in presto_do_symlink()
1180 presto_getversion(&new_link_ver, dentry->d_inode); in presto_do_symlink()
1196 up(&dir->d_inode->i_zombie); in presto_do_symlink()
1254 up(&nd.dentry->d_inode->i_sem); in lento_symlink()
1275 down(&dir->d_inode->i_zombie); in presto_do_mkdir()
1281 up(&dir->d_inode->i_zombie); in presto_do_mkdir()
1285 error = may_create(dir->d_inode, dentry); in presto_do_mkdir()
1298 presto_getversion(&tgt_dir_ver, dir->d_inode); in presto_do_mkdir()
1299 handle = presto_trans_start(fset, dir->d_inode, KML_OPCODE_MKDIR); in presto_do_mkdir()
1306 DQUOT_INIT(dir->d_inode); in presto_do_mkdir()
1309 error = filter_c2cdiops(fset->fset_cache->cache_filter)->mkdir(dir->d_inode, dentry, mode); in presto_do_mkdir()
1315 if ( dentry->d_inode && !error) { in presto_do_mkdir()
1318 presto_set_ops(dentry->d_inode, cache->cache_filter); in presto_do_mkdir()
1341 presto_getversion(&new_dir_ver, dentry->d_inode); in presto_do_mkdir()
1345 dentry->d_inode->i_mode); in presto_do_mkdir()
1358 up(&dir->d_inode->i_zombie); in presto_do_mkdir()
1405 up(&nd.dentry->d_inode->i_sem); in lento_mkdir()
1440 error = may_delete(dir->d_inode, dentry, 1); in presto_do_rmdir()
1451 size = PRESTO_REQHIGH - dentry->d_inode->i_size; in presto_do_rmdir()
1458 presto_getversion(&tgt_dir_ver, dir->d_inode); in presto_do_rmdir()
1459 presto_getversion(&old_dir_ver, dentry->d_inode); in presto_do_rmdir()
1460 izo_get_rollback_data(dentry->d_inode, &rb); in presto_do_rmdir()
1461 handle = presto_trans_start(fset, dir->d_inode, KML_OPCODE_RMDIR); in presto_do_rmdir()
1468 DQUOT_INIT(dir->d_inode); in presto_do_rmdir()
1473 double_down(&dir->d_inode->i_zombie, &dentry->d_inode->i_zombie); in presto_do_rmdir()
1475 if (IS_DEADDIR(dir->d_inode)) in presto_do_rmdir()
1479 dentry->d_inode->i_ino); in presto_do_rmdir()
1483 error = iops->rmdir(dir->d_inode, dentry); in presto_do_rmdir()
1486 dentry->d_inode->i_flags |= S_DEAD; in presto_do_rmdir()
1491 double_up(&dir->d_inode->i_zombie, &dentry->d_inode->i_zombie); in presto_do_rmdir()
1547 down(&nd.dentry->d_inode->i_sem); in lento_rmdir()
1562 up(&nd.dentry->d_inode->i_sem); in lento_rmdir()
1583 down(&dir->d_inode->i_zombie); in presto_do_mknod()
1588 up(&dir->d_inode->i_zombie); in presto_do_mknod()
1597 error = may_create(dir->d_inode, dentry); in presto_do_mknod()
1610 DQUOT_INIT(dir->d_inode); in presto_do_mknod()
1614 presto_getversion(&tgt_dir_ver, dir->d_inode); in presto_do_mknod()
1615 handle = presto_trans_start(fset, dir->d_inode, KML_OPCODE_MKNOD); in presto_do_mknod()
1622 error = iops->mknod(dir->d_inode, dentry, mode, dev); in presto_do_mknod()
1627 if ( dentry->d_inode) { in presto_do_mknod()
1630 presto_set_ops(dentry->d_inode, cache->cache_filter); in presto_do_mknod()
1656 presto_getversion(&new_node_ver, dentry->d_inode); in presto_do_mknod()
1660 dentry->d_inode->i_mode, in presto_do_mknod()
1675 up(&dir->d_inode->i_zombie); in presto_do_mknod()
1727 up(&nd.dentry->d_inode->i_sem); in lento_mknod()
1746 struct inode *old_dir = old_parent->d_inode; in do_rename()
1747 struct inode *new_dir = new_parent->d_inode; in do_rename()
1771 if (new_dentry->d_inode && new_dentry->d_inode->i_nlink > 1) { in do_rename()
1829 struct inode *old_dir = old_parent->d_inode; in presto_rename_dir()
1830 struct inode *new_dir = new_parent->d_inode; in presto_rename_dir()
1832 if (old_dentry->d_inode == new_dentry->d_inode) in presto_rename_dir()
1842 if (!new_dentry->d_inode) in presto_rename_dir()
1857 error = permission(old_dentry->d_inode, MAY_WRITE); in presto_rename_dir()
1868 target = new_dentry->d_inode; in presto_rename_dir()
1909 struct inode *old_dir = old_parent->d_inode; in presto_rename_other()
1910 struct inode *new_dir = new_parent->d_inode; in presto_rename_other()
1913 if (old_dentry->d_inode == new_dentry->d_inode) in presto_rename_other()
1923 if (!new_dentry->d_inode) in presto_rename_other()
1956 if (S_ISDIR(old_dentry->d_inode->i_mode)) in presto_do_rename()
2008 if (!old_dentry->d_inode) in lento_do_rename()
2018 if (!S_ISDIR(old_dentry->d_inode->i_mode)) { in lento_do_rename()
2039 double_up(&new_dir->d_inode->i_sem, &old_dir->d_inode->i_sem); in lento_do_rename()
2077 if (dentry->d_inode && dentry->d_inode->i_ino == ino && in presto_iopen()
2078 dentry->d_inode->i_generation == generation) { in presto_iopen()
2120 inode = dentry->d_inode; in presto_filp_dopen()
2281 struct inode *inode = dentry->d_inode; in presto_setmode()
2347 struct inode *inode = dentry->d_inode; in presto_do_set_ext_attr()
2395 handle = presto_trans_start(fset,dentry->d_inode,KML_OPCODE_SETEXTATTR); in presto_do_set_ext_attr()