Lines Matching refs:inodes
3394 struct btrfs_data_container *inodes = ctx; in build_ino_list() local
3397 if (inodes->bytes_left >= c) { in build_ino_list()
3398 inodes->bytes_left -= c; in build_ino_list()
3399 inodes->val[inodes->elem_cnt] = inum; in build_ino_list()
3400 inodes->val[inodes->elem_cnt + 1] = offset; in build_ino_list()
3401 inodes->val[inodes->elem_cnt + 2] = root; in build_ino_list()
3402 inodes->elem_cnt += 3; in build_ino_list()
3404 inodes->bytes_missing += c - inodes->bytes_left; in build_ino_list()
3405 inodes->bytes_left = 0; in build_ino_list()
3406 inodes->elem_missed += 3; in build_ino_list()
3418 struct btrfs_data_container *inodes = NULL; in btrfs_ioctl_logical_to_ino() local
3438 inodes = init_data_container(size); in btrfs_ioctl_logical_to_ino()
3439 if (IS_ERR(inodes)) { in btrfs_ioctl_logical_to_ino()
3440 ret = PTR_ERR(inodes); in btrfs_ioctl_logical_to_ino()
3441 inodes = NULL; in btrfs_ioctl_logical_to_ino()
3446 build_ino_list, inodes); in btrfs_ioctl_logical_to_ino()
3452 ret = copy_to_user((void *)(unsigned long)loi->inodes, in btrfs_ioctl_logical_to_ino()
3453 (void *)(unsigned long)inodes, size); in btrfs_ioctl_logical_to_ino()
3459 vfree(inodes); in btrfs_ioctl_logical_to_ino()