Lines Matching defs:dir

211 	      file, inode->i_mode, isdir ? "dir" : "regular");
451 /* Clone the layout from a synchronous create, if the dir now has Dc caps */
471 * and either a lease on the dentry or complete dir info. If any of those
475 static int try_prep_async_create(struct inode *dir, struct dentry *dentry,
478 struct ceph_inode_info *ci = ceph_inode(dir);
524 static void restore_deleg_ino(struct inode *dir, u64 ino)
526 struct ceph_client *cl = ceph_inode_to_client(dir);
527 struct ceph_inode_info *ci = ceph_inode(dir);
625 static int ceph_finish_async_create(struct inode *dir, struct inode *inode,
636 struct ceph_inode_info *ci = ceph_inode(dir);
640 struct ceph_mds_client *mdsc = ceph_sb_to_mdsc(dir->i_sb);
675 if (dir->i_mode & S_ISGID) {
676 in.gid = cpu_to_le32(from_kgid(&init_user_ns, dir->i_gid));
705 ceph_dir_clear_complete(dir);
713 vino.ino, ceph_ino(dir), dentry->d_name.name);
714 ceph_dir_clear_ordered(dir);
748 int ceph_atomic_open(struct inode *dir, struct dentry *dentry,
752 struct ceph_fs_client *fsc = ceph_sb_to_fs_client(dir->i_sb);
764 dir, ceph_vinop(dir), dentry, dentry,
781 if (ceph_quota_is_max_files_exceeded(dir))
784 new_inode = ceph_new_inode(dir, dentry, &mode, &as_ctx);
799 req = prepare_open_request(dir->i_sb, flags, mode);
807 if (ceph_security_xattr_wanted(dir))
810 req->r_parent = dir;
813 ihold(dir);
814 if (IS_ENCRYPTED(dir)) {
816 err = fscrypt_prepare_lookup_partial(dir, dentry);
831 try_prep_async_create(dir, dentry, &lo,
842 new_inode = ceph_get_inode(dir->i_sb, vino, new_inode);
854 err = ceph_mdsc_submit_request(mdsc, dir, req);
856 err = ceph_finish_async_create(dir, new_inode,
862 restore_deleg_ino(dir, req->r_deleg_ino);
880 err = ceph_mdsc_do_request(mdsc, (flags & O_CREAT) ? dir : NULL, req);
891 err = ceph_handle_notrace_create(dir, dentry);
908 if (IS_ENCRYPTED(dir) &&
909 !fscrypt_has_permitted_context(dir, d_inode(dentry))) {
912 ceph_vinop(dir), ceph_vinop(d_inode(dentry)));
920 cache_file_layout(dir, newino);
942 doutc(cl, "%p %llx.%llx dir file %p\n", inode,