| .. | .. |
|---|
| 6273 | 6273 | if (IS_ERR(trans)) |
|---|
| 6274 | 6274 | return PTR_ERR(trans); |
|---|
| 6275 | 6275 | |
|---|
| 6276 | | - err = btrfs_find_free_ino(root, &objectid); |
|---|
| 6276 | + err = btrfs_find_free_objectid(root, &objectid); |
|---|
| 6277 | 6277 | if (err) |
|---|
| 6278 | 6278 | goto out_unlock; |
|---|
| 6279 | 6279 | |
|---|
| .. | .. |
|---|
| 6337 | 6337 | if (IS_ERR(trans)) |
|---|
| 6338 | 6338 | return PTR_ERR(trans); |
|---|
| 6339 | 6339 | |
|---|
| 6340 | | - err = btrfs_find_free_ino(root, &objectid); |
|---|
| 6340 | + err = btrfs_find_free_objectid(root, &objectid); |
|---|
| 6341 | 6341 | if (err) |
|---|
| 6342 | 6342 | goto out_unlock; |
|---|
| 6343 | 6343 | |
|---|
| .. | .. |
|---|
| 6481 | 6481 | if (IS_ERR(trans)) |
|---|
| 6482 | 6482 | return PTR_ERR(trans); |
|---|
| 6483 | 6483 | |
|---|
| 6484 | | - err = btrfs_find_free_ino(root, &objectid); |
|---|
| 6484 | + err = btrfs_find_free_objectid(root, &objectid); |
|---|
| 6485 | 6485 | if (err) |
|---|
| 6486 | 6486 | goto out_fail; |
|---|
| 6487 | 6487 | |
|---|
| .. | .. |
|---|
| 9135 | 9135 | u64 objectid; |
|---|
| 9136 | 9136 | u64 index; |
|---|
| 9137 | 9137 | |
|---|
| 9138 | | - ret = btrfs_find_free_ino(root, &objectid); |
|---|
| 9138 | + ret = btrfs_find_free_objectid(root, &objectid); |
|---|
| 9139 | 9139 | if (ret) |
|---|
| 9140 | 9140 | return ret; |
|---|
| 9141 | 9141 | |
|---|
| .. | .. |
|---|
| 9631 | 9631 | if (IS_ERR(trans)) |
|---|
| 9632 | 9632 | return PTR_ERR(trans); |
|---|
| 9633 | 9633 | |
|---|
| 9634 | | - err = btrfs_find_free_ino(root, &objectid); |
|---|
| 9634 | + err = btrfs_find_free_objectid(root, &objectid); |
|---|
| 9635 | 9635 | if (err) |
|---|
| 9636 | 9636 | goto out_unlock; |
|---|
| 9637 | 9637 | |
|---|
| .. | .. |
|---|
| 9962 | 9962 | if (IS_ERR(trans)) |
|---|
| 9963 | 9963 | return PTR_ERR(trans); |
|---|
| 9964 | 9964 | |
|---|
| 9965 | | - ret = btrfs_find_free_ino(root, &objectid); |
|---|
| 9965 | + ret = btrfs_find_free_objectid(root, &objectid); |
|---|
| 9966 | 9966 | if (ret) |
|---|
| 9967 | 9967 | goto out; |
|---|
| 9968 | 9968 | |
|---|