Lines Matching refs:xadir

150 	struct dentry *xaroot, *xadir;  in open_xa_dir()  local
163 xadir = lookup_one_len(namebuf, xaroot, strlen(namebuf)); in open_xa_dir()
164 if (!IS_ERR(xadir) && d_really_is_negative(xadir)) { in open_xa_dir()
168 err = xattr_mkdir(d_inode(xaroot), xadir, 0700); in open_xa_dir()
170 dput(xadir); in open_xa_dir()
171 xadir = ERR_PTR(err); in open_xa_dir()
177 return xadir; in open_xa_dir()
187 struct dentry *xadir; member
201 WARN_ON_ONCE(!inode_is_locked(d_inode(dbuf->xadir))); in fill_with_dentries()
210 dentry = lookup_one_len(name, dbuf->xadir, namelen); in fill_with_dentries()
219 dentry, dbuf->xadir); in fill_with_dentries()
264 buf.xadir = dir; in reiserfs_for_each_xattr()
393 struct dentry *xadir, *xafile; in xattr_lookup() local
396 xadir = open_xa_dir(inode, flags); in xattr_lookup()
397 if (IS_ERR(xadir)) in xattr_lookup()
398 return ERR_CAST(xadir); in xattr_lookup()
400 inode_lock_nested(d_inode(xadir), I_MUTEX_XATTR); in xattr_lookup()
401 xafile = lookup_one_len(name, xadir, strlen(name)); in xattr_lookup()
413 err = xattr_create(d_inode(xadir), xafile, in xattr_lookup()
420 inode_unlock(d_inode(xadir)); in xattr_lookup()
421 dput(xadir); in xattr_lookup()
482 struct dentry *dentry, *xadir; in lookup_and_delete_xattr() local
484 xadir = open_xa_dir(inode, XATTR_REPLACE); in lookup_and_delete_xattr()
485 if (IS_ERR(xadir)) in lookup_and_delete_xattr()
486 return PTR_ERR(xadir); in lookup_and_delete_xattr()
488 inode_lock_nested(d_inode(xadir), I_MUTEX_XATTR); in lookup_and_delete_xattr()
489 dentry = lookup_one_len(name, xadir, strlen(name)); in lookup_and_delete_xattr()
496 err = xattr_unlink(d_inode(xadir), dentry); in lookup_and_delete_xattr()
502 inode_unlock(d_inode(xadir)); in lookup_and_delete_xattr()
503 dput(xadir); in lookup_and_delete_xattr()