Lines Matching refs:root
135 static int __oprofilefs_create_file(struct dentry *root, char const *name, in __oprofilefs_create_file() argument
141 mutex_lock(&d_inode(root)->i_mutex); in __oprofilefs_create_file()
142 dentry = d_alloc_name(root, name); in __oprofilefs_create_file()
144 mutex_unlock(&d_inode(root)->i_mutex); in __oprofilefs_create_file()
147 inode = oprofilefs_get_inode(root->d_sb, S_IFREG | perm); in __oprofilefs_create_file()
150 mutex_unlock(&d_inode(root)->i_mutex); in __oprofilefs_create_file()
156 mutex_unlock(&d_inode(root)->i_mutex); in __oprofilefs_create_file()
161 int oprofilefs_create_ulong(struct dentry *root, in oprofilefs_create_ulong() argument
164 return __oprofilefs_create_file(root, name, in oprofilefs_create_ulong()
169 int oprofilefs_create_ro_ulong(struct dentry *root, in oprofilefs_create_ro_ulong() argument
172 return __oprofilefs_create_file(root, name, in oprofilefs_create_ro_ulong()
191 int oprofilefs_create_ro_atomic(struct dentry *root, in oprofilefs_create_ro_atomic() argument
194 return __oprofilefs_create_file(root, name, in oprofilefs_create_ro_atomic()
199 int oprofilefs_create_file(struct dentry *root, in oprofilefs_create_file() argument
202 return __oprofilefs_create_file(root, name, fops, 0644, NULL); in oprofilefs_create_file()
206 int oprofilefs_create_file_perm(struct dentry *root, in oprofilefs_create_file_perm() argument
209 return __oprofilefs_create_file(root, name, fops, perm, NULL); in oprofilefs_create_file_perm()