• Home
  • Raw
  • Download

Lines Matching refs:dir

289 				  struct dentry *dir,  in cachefiles_bury_object()  argument
299 _enter(",'%pd','%pd'", dir, rep); in cachefiles_bury_object()
301 _debug("remove %p from %p", rep, dir); in cachefiles_bury_object()
308 path.dentry = dir; in cachefiles_bury_object()
314 ret = vfs_unlink(d_inode(dir), rep, NULL); in cachefiles_bury_object()
320 inode_unlock(d_inode(dir)); in cachefiles_bury_object()
331 inode_unlock(d_inode(dir)); in cachefiles_bury_object()
340 trap = lock_rename(cache->graveyard, dir); in cachefiles_bury_object()
343 if (rep->d_parent != dir || IS_DEADDIR(d_inode(rep))) { in cachefiles_bury_object()
346 unlock_rename(cache->graveyard, dir); in cachefiles_bury_object()
352 unlock_rename(cache->graveyard, dir); in cachefiles_bury_object()
358 unlock_rename(cache->graveyard, dir); in cachefiles_bury_object()
364 unlock_rename(cache->graveyard, dir); in cachefiles_bury_object()
371 unlock_rename(cache->graveyard, dir); in cachefiles_bury_object()
384 unlock_rename(cache->graveyard, dir); in cachefiles_bury_object()
392 unlock_rename(cache->graveyard, dir); in cachefiles_bury_object()
400 unlock_rename(cache->graveyard, dir); in cachefiles_bury_object()
408 path.dentry = dir; in cachefiles_bury_object()
416 ret = vfs_rename(d_inode(dir), rep, in cachefiles_bury_object()
426 unlock_rename(cache->graveyard, dir); in cachefiles_bury_object()
438 struct dentry *dir; in cachefiles_delete_object() local
447 dir = dget_parent(object->dentry); in cachefiles_delete_object()
449 inode_lock_nested(d_inode(dir), I_MUTEX_PARENT); in cachefiles_delete_object()
455 inode_unlock(d_inode(dir)); in cachefiles_delete_object()
460 if (dir == object->dentry->d_parent) { in cachefiles_delete_object()
461 ret = cachefiles_bury_object(cache, object, dir, in cachefiles_delete_object()
468 inode_unlock(d_inode(dir)); in cachefiles_delete_object()
473 dput(dir); in cachefiles_delete_object()
488 struct dentry *dir, *next = NULL; in cachefiles_walk_to_object() local
512 dir = dget(parent->dentry); in cachefiles_walk_to_object()
528 inode_lock_nested(d_inode(dir), I_MUTEX_PARENT); in cachefiles_walk_to_object()
531 next = lookup_one_len(name, dir, nlen); in cachefiles_walk_to_object()
559 path.dentry = dir; in cachefiles_walk_to_object()
564 ret = vfs_mkdir(d_inode(dir), next, 0); in cachefiles_walk_to_object()
573 inode_unlock(d_inode(dir)); in cachefiles_walk_to_object()
595 path.dentry = dir; in cachefiles_walk_to_object()
600 ret = vfs_create(d_inode(dir), next, S_IFREG, true); in cachefiles_walk_to_object()
624 inode_unlock(d_inode(dir)); in cachefiles_walk_to_object()
625 dput(dir); in cachefiles_walk_to_object()
626 dir = next; in cachefiles_walk_to_object()
645 ret = cachefiles_bury_object(cache, object, dir, next, in cachefiles_walk_to_object()
663 inode_unlock(d_inode(dir)); in cachefiles_walk_to_object()
664 dput(dir); in cachefiles_walk_to_object()
665 dir = NULL; in cachefiles_walk_to_object()
742 inode_unlock(d_inode(dir)); in cachefiles_walk_to_object()
745 dput(dir); in cachefiles_walk_to_object()
755 struct dentry *dir, in cachefiles_get_directory() argument
766 inode_lock(d_inode(dir)); in cachefiles_get_directory()
770 subdir = lookup_one_len(dirname, dir, strlen(dirname)); in cachefiles_get_directory()
790 path.dentry = dir; in cachefiles_get_directory()
794 ret = vfs_mkdir(d_inode(dir), subdir, 0700); in cachefiles_get_directory()
810 inode_unlock(d_inode(dir)); in cachefiles_get_directory()
840 inode_unlock(d_inode(dir)); in cachefiles_get_directory()
846 inode_unlock(d_inode(dir)); in cachefiles_get_directory()
852 inode_unlock(d_inode(dir)); in cachefiles_get_directory()
864 struct dentry *dir, in cachefiles_check_active() argument
877 inode_lock_nested(d_inode(dir), I_MUTEX_PARENT); in cachefiles_check_active()
880 victim = lookup_one_len(filename, dir, strlen(filename)); in cachefiles_check_active()
892 inode_unlock(d_inode(dir)); in cachefiles_check_active()
921 inode_unlock(d_inode(dir)); in cachefiles_check_active()
927 inode_unlock(d_inode(dir)); in cachefiles_check_active()
950 int cachefiles_cull(struct cachefiles_cache *cache, struct dentry *dir, in cachefiles_cull() argument
956 _enter(",%pd/,%s", dir, filename); in cachefiles_cull()
958 victim = cachefiles_check_active(cache, dir, filename); in cachefiles_cull()
977 ret = cachefiles_bury_object(cache, NULL, dir, victim, false, in cachefiles_cull()
987 inode_unlock(d_inode(dir)); in cachefiles_cull()
1010 int cachefiles_check_in_use(struct cachefiles_cache *cache, struct dentry *dir, in cachefiles_check_in_use() argument
1018 victim = cachefiles_check_active(cache, dir, filename); in cachefiles_check_in_use()
1022 inode_unlock(d_inode(dir)); in cachefiles_check_in_use()