• Home
  • Raw
  • Download

Lines Matching refs:next

494 	struct dentry *dir, *next = NULL;  in cachefiles_walk_to_object()  local
535 next = lookup_one_len(name, dir, nlen); in cachefiles_walk_to_object()
536 if (IS_ERR(next)) { in cachefiles_walk_to_object()
537 trace_cachefiles_lookup(object, next, NULL); in cachefiles_walk_to_object()
541 inode = d_backing_inode(next); in cachefiles_walk_to_object()
542 trace_cachefiles_lookup(object, next, inode); in cachefiles_walk_to_object()
543 _debug("next -> %pd %s", next, inode ? "positive" : "negative"); in cachefiles_walk_to_object()
551 if (d_is_negative(next)) in cachefiles_walk_to_object()
557 if (d_is_negative(next)) { in cachefiles_walk_to_object()
563 ret = security_path_mkdir(&path, next, 0); in cachefiles_walk_to_object()
566 ret = vfs_mkdir(&init_user_ns, d_inode(dir), next, 0); in cachefiles_walk_to_object()
568 trace_cachefiles_mkdir(object, next, ret); in cachefiles_walk_to_object()
572 if (unlikely(d_unhashed(next))) { in cachefiles_walk_to_object()
573 dput(next); in cachefiles_walk_to_object()
577 ASSERT(d_backing_inode(next)); in cachefiles_walk_to_object()
580 next, d_backing_inode(next)->i_ino); in cachefiles_walk_to_object()
582 } else if (!d_can_lookup(next)) { in cachefiles_walk_to_object()
584 d_backing_inode(next)->i_ino); in cachefiles_walk_to_object()
591 if (d_is_negative(next)) { in cachefiles_walk_to_object()
597 ret = security_path_mknod(&path, next, S_IFREG, 0); in cachefiles_walk_to_object()
600 ret = vfs_create(&init_user_ns, d_inode(dir), next, in cachefiles_walk_to_object()
602 trace_cachefiles_create(object, next, ret); in cachefiles_walk_to_object()
606 ASSERT(d_backing_inode(next)); in cachefiles_walk_to_object()
609 next, d_backing_inode(next)->i_ino); in cachefiles_walk_to_object()
611 } else if (!d_can_lookup(next) && in cachefiles_walk_to_object()
612 !d_is_reg(next) in cachefiles_walk_to_object()
615 d_backing_inode(next)->i_ino); in cachefiles_walk_to_object()
626 dir = next; in cachefiles_walk_to_object()
627 next = NULL; in cachefiles_walk_to_object()
632 object->dentry = next; in cachefiles_walk_to_object()
637 _debug("validate '%pd'", next); in cachefiles_walk_to_object()
645 ret = cachefiles_bury_object(cache, object, dir, next, in cachefiles_walk_to_object()
648 dput(next); in cachefiles_walk_to_object()
649 next = NULL; in cachefiles_walk_to_object()
682 path.dentry = next; in cachefiles_walk_to_object()
736 _debug("lookup error %ld", PTR_ERR(next)); in cachefiles_walk_to_object()
737 ret = PTR_ERR(next); in cachefiles_walk_to_object()
740 next = NULL; in cachefiles_walk_to_object()
743 dput(next); in cachefiles_walk_to_object()