Lines Matching refs:subdir
758 struct dentry *subdir; in cachefiles_get_directory() local
768 subdir = lookup_one_len(dirname, dir, strlen(dirname)); in cachefiles_get_directory()
769 if (IS_ERR(subdir)) { in cachefiles_get_directory()
770 if (PTR_ERR(subdir) == -ENOMEM) in cachefiles_get_directory()
776 subdir, d_backing_inode(subdir) ? "positive" : "negative"); in cachefiles_get_directory()
779 if (d_is_negative(subdir)) { in cachefiles_get_directory()
788 ret = security_path_mkdir(&path, subdir, 0700); in cachefiles_get_directory()
791 ret = vfs_mkdir(&init_user_ns, d_inode(dir), subdir, 0700); in cachefiles_get_directory()
795 if (unlikely(d_unhashed(subdir))) { in cachefiles_get_directory()
796 dput(subdir); in cachefiles_get_directory()
799 ASSERT(d_backing_inode(subdir)); in cachefiles_get_directory()
802 subdir, d_backing_inode(subdir)->i_ino); in cachefiles_get_directory()
808 ASSERT(d_backing_inode(subdir)); in cachefiles_get_directory()
810 if (!d_can_lookup(subdir)) { in cachefiles_get_directory()
817 if (!(d_backing_inode(subdir)->i_opflags & IOP_XATTR) || in cachefiles_get_directory()
818 !d_backing_inode(subdir)->i_op->lookup || in cachefiles_get_directory()
819 !d_backing_inode(subdir)->i_op->mkdir || in cachefiles_get_directory()
820 !d_backing_inode(subdir)->i_op->create || in cachefiles_get_directory()
821 !d_backing_inode(subdir)->i_op->rename || in cachefiles_get_directory()
822 !d_backing_inode(subdir)->i_op->rmdir || in cachefiles_get_directory()
823 !d_backing_inode(subdir)->i_op->unlink) in cachefiles_get_directory()
826 _leave(" = [%lu]", d_backing_inode(subdir)->i_ino); in cachefiles_get_directory()
827 return subdir; in cachefiles_get_directory()
830 dput(subdir); in cachefiles_get_directory()
836 dput(subdir); in cachefiles_get_directory()
842 ret = PTR_ERR(subdir); in cachefiles_get_directory()