Lines Matching refs:xadir

141 	struct dentry *xaroot, *xadir;  in open_xa_dir()  local
154 xadir = lookup_one_len(namebuf, xaroot, strlen(namebuf)); in open_xa_dir()
155 if (!IS_ERR(xadir) && !xadir->d_inode) { in open_xa_dir()
158 err = xattr_mkdir(xaroot->d_inode, xadir, 0700); in open_xa_dir()
160 dput(xadir); in open_xa_dir()
161 xadir = ERR_PTR(err); in open_xa_dir()
167 return xadir; in open_xa_dir()
174 struct dentry *xadir; member
185 WARN_ON_ONCE(!mutex_is_locked(&dbuf->xadir->d_inode->i_mutex)); in fill_with_dentries()
194 dentry = lookup_one_len(name, dbuf->xadir, namelen); in fill_with_dentries()
202 dentry->d_name.name, dbuf->xadir->d_name.name); in fill_with_dentries()
251 buf.xadir = dir; in reiserfs_for_each_xattr()
351 struct dentry *xadir, *xafile; in xattr_lookup() local
354 xadir = open_xa_dir(inode, flags); in xattr_lookup()
355 if (IS_ERR(xadir)) in xattr_lookup()
356 return ERR_CAST(xadir); in xattr_lookup()
358 mutex_lock_nested(&xadir->d_inode->i_mutex, I_MUTEX_XATTR); in xattr_lookup()
359 xafile = lookup_one_len(name, xadir, strlen(name)); in xattr_lookup()
371 err = xattr_create(xadir->d_inode, xafile, in xattr_lookup()
378 mutex_unlock(&xadir->d_inode->i_mutex); in xattr_lookup()
379 dput(xadir); in xattr_lookup()
434 struct dentry *dentry, *xadir; in lookup_and_delete_xattr() local
436 xadir = open_xa_dir(inode, XATTR_REPLACE); in lookup_and_delete_xattr()
437 if (IS_ERR(xadir)) in lookup_and_delete_xattr()
438 return PTR_ERR(xadir); in lookup_and_delete_xattr()
440 mutex_lock_nested(&xadir->d_inode->i_mutex, I_MUTEX_XATTR); in lookup_and_delete_xattr()
441 dentry = lookup_one_len(name, xadir, strlen(name)); in lookup_and_delete_xattr()
449 err = xattr_unlink(xadir->d_inode, dentry); in lookup_and_delete_xattr()
456 mutex_unlock(&xadir->d_inode->i_mutex); in lookup_and_delete_xattr()
457 dput(xadir); in lookup_and_delete_xattr()