• Home
  • Raw
  • Download

Lines Matching refs:dir

492 static int __rpc_create_common(struct inode *dir, struct dentry *dentry,  in __rpc_create_common()  argument
500 inode = rpc_get_inode(dir->i_sb, mode); in __rpc_create_common()
503 inode->i_ino = iunique(dir->i_sb, 100); in __rpc_create_common()
517 static int __rpc_create(struct inode *dir, struct dentry *dentry, in __rpc_create() argument
524 err = __rpc_create_common(dir, dentry, S_IFREG | mode, i_fop, private); in __rpc_create()
527 fsnotify_create(dir, dentry); in __rpc_create()
531 static int __rpc_mkdir(struct inode *dir, struct dentry *dentry, in __rpc_mkdir() argument
538 err = __rpc_create_common(dir, dentry, S_IFDIR | mode, i_fop, private); in __rpc_mkdir()
541 inc_nlink(dir); in __rpc_mkdir()
542 fsnotify_mkdir(dir, dentry); in __rpc_mkdir()
582 static int __rpc_mkpipe_dentry(struct inode *dir, struct dentry *dentry, in __rpc_mkpipe_dentry() argument
591 err = __rpc_create_common(dir, dentry, S_IFIFO | mode, i_fop, private); in __rpc_mkpipe_dentry()
597 fsnotify_create(dir, dentry); in __rpc_mkpipe_dentry()
601 static int __rpc_rmdir(struct inode *dir, struct dentry *dentry) in __rpc_rmdir() argument
606 ret = simple_rmdir(dir, dentry); in __rpc_rmdir()
615 struct inode *dir; in rpc_rmdir() local
619 dir = d_inode(parent); in rpc_rmdir()
620 inode_lock_nested(dir, I_MUTEX_PARENT); in rpc_rmdir()
621 error = __rpc_rmdir(dir, dentry); in rpc_rmdir()
622 inode_unlock(dir); in rpc_rmdir()
628 static int __rpc_unlink(struct inode *dir, struct dentry *dentry) in __rpc_unlink() argument
633 ret = simple_unlink(dir, dentry); in __rpc_unlink()
639 static int __rpc_rmpipe(struct inode *dir, struct dentry *dentry) in __rpc_rmpipe() argument
644 return __rpc_unlink(dir, dentry); in __rpc_rmpipe()
670 struct inode *dir = d_inode(parent); in __rpc_depopulate() local
688 __rpc_unlink(dir, dentry); in __rpc_depopulate()
691 __rpc_rmdir(dir, dentry); in __rpc_depopulate()
702 struct inode *dir = d_inode(parent); in rpc_depopulate() local
704 inode_lock_nested(dir, I_MUTEX_CHILD); in rpc_depopulate()
706 inode_unlock(dir); in rpc_depopulate()
714 struct inode *dir = d_inode(parent); in rpc_populate() local
718 inode_lock(dir); in rpc_populate()
728 err = __rpc_create(dir, dentry, in rpc_populate()
734 err = __rpc_mkdir(dir, dentry, in rpc_populate()
742 inode_unlock(dir); in rpc_populate()
746 inode_unlock(dir); in rpc_populate()
757 struct inode *dir = d_inode(parent); in rpc_mkdir_populate() local
760 inode_lock_nested(dir, I_MUTEX_PARENT); in rpc_mkdir_populate()
764 error = __rpc_mkdir(dir, dentry, mode, NULL, private); in rpc_mkdir_populate()
773 inode_unlock(dir); in rpc_mkdir_populate()
776 __rpc_rmdir(dir, dentry); in rpc_mkdir_populate()
786 struct inode *dir; in rpc_rmdir_depopulate() local
790 dir = d_inode(parent); in rpc_rmdir_depopulate()
791 inode_lock_nested(dir, I_MUTEX_PARENT); in rpc_rmdir_depopulate()
794 error = __rpc_rmdir(dir, dentry); in rpc_rmdir_depopulate()
795 inode_unlock(dir); in rpc_rmdir_depopulate()
822 struct inode *dir = d_inode(parent); in rpc_mkpipe_dentry() local
831 inode_lock_nested(dir, I_MUTEX_PARENT); in rpc_mkpipe_dentry()
835 err = __rpc_mkpipe_dentry(dir, dentry, umode, &rpc_pipe_fops, in rpc_mkpipe_dentry()
840 inode_unlock(dir); in rpc_mkpipe_dentry()
863 struct inode *dir; in rpc_unlink() local
867 dir = d_inode(parent); in rpc_unlink()
868 inode_lock_nested(dir, I_MUTEX_PARENT); in rpc_unlink()
869 error = __rpc_rmpipe(dir, dentry); in rpc_unlink()
870 inode_unlock(dir); in rpc_unlink()
1013 struct dentry *dir = pdh->pdh_dentry; in rpc_create_pipe_dir_objects() local
1016 pdo->pdo_ops->create(dir, pdo); in rpc_create_pipe_dir_objects()
1023 struct dentry *dir = pdh->pdh_dentry; in rpc_destroy_pipe_dir_objects() local
1026 pdo->pdo_ops->destroy(dir, pdo); in rpc_destroy_pipe_dir_objects()
1209 struct qstr dir = QSTR_INIT(dir_name, strlen(dir_name)); in rpc_d_lookup_sb() local
1210 return d_hash_and_lookup(sb->s_root, &dir); in rpc_d_lookup_sb()