Lines Matching defs:dir
255 /* NULL dentry return root dir */
340 /* NULL dentry return root dir */
1040 static int hmdfs_get_cache_path(struct hmdfs_sb_info *sbi, struct path *dir)
1046 *dir = di->lower_path;
1050 err = kern_path(sbi->cache_dir, LOOKUP_FOLLOW | LOOKUP_DIRECTORY, dir);
1057 static void hmdfs_put_cache_path(struct hmdfs_sb_info *sbi, struct path *dir)
1061 path_put(dir);
1159 static void hmdfs_cache_path_create(char *s, const char *dir, bool server)
1162 snprintf(s, PATH_MAX, "%s/dentry_cache/server/", dir);
1164 snprintf(s, PATH_MAX, "%s/dentry_cache/client/", dir);
1190 hmdfs_err("making dir failed %d", err);
1337 * cache_file_persistent - link the tmpfile to the cache dir
2578 struct inode *dir = NULL;
2588 dir = d_inode(path.dentry);
2589 inode_lock_nested(dir, I_MUTEX_PARENT);
2607 tmp_uid = hmdfs_override_inode_uid(dir);
2611 err = vfs_unlink(dir, child_dentry, NULL);
2613 * -EOWNERDEAD means we want to put the file in a specail dir instead of
2623 hmdfs_revert_inode_uid(dir, tmp_uid);
2627 inode_unlock(dir);
2730 struct inode *dir = NULL;
2738 dir = d_inode(path.dentry);
2739 inode_lock_nested(dir, I_MUTEX_PARENT);
2755 err = vfs_rmdir(dir, child_dentry);
2761 inode_unlock(dir);