Lines Matching refs:next

461 	struct dentry *dir, *next = NULL;  in cachefiles_walk_to_object()  local
503 next = lookup_one_len(name, dir, nlen); in cachefiles_walk_to_object()
505 if (IS_ERR(next)) in cachefiles_walk_to_object()
508 _debug("next -> %p %s", next, d_backing_inode(next) ? "positive" : "negative"); in cachefiles_walk_to_object()
511 object->new = !d_backing_inode(next); in cachefiles_walk_to_object()
516 if (d_is_negative(next)) in cachefiles_walk_to_object()
522 if (d_is_negative(next)) { in cachefiles_walk_to_object()
528 ret = security_path_mkdir(&path, next, 0); in cachefiles_walk_to_object()
532 ret = vfs_mkdir(d_inode(dir), next, 0); in cachefiles_walk_to_object()
537 ASSERT(d_backing_inode(next)); in cachefiles_walk_to_object()
540 next, d_backing_inode(next), d_backing_inode(next)->i_ino); in cachefiles_walk_to_object()
542 } else if (!d_can_lookup(next)) { in cachefiles_walk_to_object()
544 d_backing_inode(next)->i_ino); in cachefiles_walk_to_object()
551 if (d_is_negative(next)) { in cachefiles_walk_to_object()
557 ret = security_path_mknod(&path, next, S_IFREG, 0); in cachefiles_walk_to_object()
561 ret = vfs_create(d_inode(dir), next, S_IFREG, true); in cachefiles_walk_to_object()
566 ASSERT(d_backing_inode(next)); in cachefiles_walk_to_object()
569 next, d_backing_inode(next), d_backing_inode(next)->i_ino); in cachefiles_walk_to_object()
571 } else if (!d_can_lookup(next) && in cachefiles_walk_to_object()
572 !d_is_reg(next) in cachefiles_walk_to_object()
575 d_backing_inode(next)->i_ino); in cachefiles_walk_to_object()
586 dir = next; in cachefiles_walk_to_object()
587 next = NULL; in cachefiles_walk_to_object()
592 object->dentry = next; in cachefiles_walk_to_object()
597 _debug("validate '%pd'", next); in cachefiles_walk_to_object()
605 ret = cachefiles_bury_object(cache, dir, next, true); in cachefiles_walk_to_object()
606 dput(next); in cachefiles_walk_to_object()
607 next = NULL; in cachefiles_walk_to_object()
639 path.dentry = next; in cachefiles_walk_to_object()
692 _debug("lookup error %ld", PTR_ERR(next)); in cachefiles_walk_to_object()
693 ret = PTR_ERR(next); in cachefiles_walk_to_object()
696 next = NULL; in cachefiles_walk_to_object()
699 dput(next); in cachefiles_walk_to_object()