Lines Matching defs:dir
256 /* NULL dentry return root dir */
341 /* NULL dentry return root dir */
1041 static int hmdfs_get_cache_path(struct hmdfs_sb_info *sbi, struct path *dir)
1047 *dir = di->lower_path;
1051 err = kern_path(sbi->cache_dir, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, dir);
1058 static void hmdfs_put_cache_path(struct hmdfs_sb_info *sbi, struct path *dir)
1062 path_put(dir);
1160 static void hmdfs_cache_path_create(char *s, const char *dir, bool server)
1163 snprintf(s, PATH_MAX, "%s/dentry_cache/server/", dir);
1165 snprintf(s, PATH_MAX, "%s/dentry_cache/client/", dir);
1191 hmdfs_err("making dir failed %d", err);
1338 * cache_file_persistent - link the tmpfile to the cache dir
2586 struct inode *dir = NULL;
2596 dir = d_inode(path.dentry);
2597 inode_lock_nested(dir, I_MUTEX_PARENT);
2615 tmp_uid = hmdfs_override_inode_uid(dir);
2619 err = vfs_unlink(&nop_mnt_idmap, dir, child_dentry, NULL);
2621 * -EOWNERDEAD means we want to put the file in a specail dir instead of
2631 hmdfs_revert_inode_uid(dir, tmp_uid);
2635 inode_unlock(dir);
2738 struct inode *dir = NULL;
2746 dir = d_inode(path.dentry);
2747 inode_lock_nested(dir, I_MUTEX_PARENT);
2763 err = vfs_rmdir(&nop_mnt_idmap, dir, child_dentry);
2769 inode_unlock(dir);