Lines Matching refs:next

465 	struct dentry *dir, *next = NULL;  in cachefiles_walk_to_object()  local
507 next = lookup_one_len(name, dir, nlen); in cachefiles_walk_to_object()
509 if (IS_ERR(next)) in cachefiles_walk_to_object()
512 _debug("next -> %p %s", next, d_backing_inode(next) ? "positive" : "negative"); in cachefiles_walk_to_object()
515 object->new = !d_backing_inode(next); in cachefiles_walk_to_object()
520 if (d_is_negative(next)) in cachefiles_walk_to_object()
526 if (d_is_negative(next)) { in cachefiles_walk_to_object()
532 ret = security_path_mkdir(&path, next, 0); in cachefiles_walk_to_object()
536 ret = vfs_mkdir(d_inode(dir), next, 0); in cachefiles_walk_to_object()
541 ASSERT(d_backing_inode(next)); in cachefiles_walk_to_object()
544 next, d_backing_inode(next), d_backing_inode(next)->i_ino); in cachefiles_walk_to_object()
546 } else if (!d_can_lookup(next)) { in cachefiles_walk_to_object()
548 d_backing_inode(next)->i_ino); in cachefiles_walk_to_object()
555 if (d_is_negative(next)) { in cachefiles_walk_to_object()
561 ret = security_path_mknod(&path, next, S_IFREG, 0); in cachefiles_walk_to_object()
565 ret = vfs_create(d_inode(dir), next, S_IFREG, true); in cachefiles_walk_to_object()
570 ASSERT(d_backing_inode(next)); in cachefiles_walk_to_object()
573 next, d_backing_inode(next), d_backing_inode(next)->i_ino); in cachefiles_walk_to_object()
575 } else if (!d_can_lookup(next) && in cachefiles_walk_to_object()
576 !d_is_reg(next) in cachefiles_walk_to_object()
579 d_backing_inode(next)->i_ino); in cachefiles_walk_to_object()
590 dir = next; in cachefiles_walk_to_object()
591 next = NULL; in cachefiles_walk_to_object()
596 object->dentry = next; in cachefiles_walk_to_object()
601 _debug("validate '%pd'", next); in cachefiles_walk_to_object()
609 ret = cachefiles_bury_object(cache, dir, next, true, in cachefiles_walk_to_object()
611 dput(next); in cachefiles_walk_to_object()
612 next = NULL; in cachefiles_walk_to_object()
645 path.dentry = next; in cachefiles_walk_to_object()
702 _debug("lookup error %ld", PTR_ERR(next)); in cachefiles_walk_to_object()
703 ret = PTR_ERR(next); in cachefiles_walk_to_object()
706 next = NULL; in cachefiles_walk_to_object()
709 dput(next); in cachefiles_walk_to_object()