Lines Matching defs:base_ni

411  * @base_ni:	open base inode if allocating an extent mft record or NULL
416 * If @base_ni is NULL start the search at the default allocator position.
418 * If @base_ni is not NULL start the search at the mft record after the base
419 * mft record @base_ni.
425 static int ntfs_mft_bitmap_find_free_rec(ntfs_volume *vol, ntfs_inode *base_ni)
444 if (!base_ni)
447 data_pos = base_ni->mft_no + 1;
1107 * @base_ni: open base inode if allocating an extent mft record or NULL
1111 * If @base_ni is NULL make the mft record a base mft record and allocate it at
1114 * If @base_ni is not NULL make the allocated mft record an extent record,
1116 * the allocated and opened ntfs inode to the base inode @base_ni.
1123 * optimize this we start scanning at the place specified by @base_ni or if
1124 * @base_ni is NULL we start where we last stopped and we perform wrap around
1187 ntfs_inode *ntfs_mft_record_alloc(ntfs_volume *vol, ntfs_inode *base_ni)
1198 if (base_ni)
1201 (long long)base_ni->mft_no);
1210 bit = ntfs_mft_bitmap_find_free_rec(vol, base_ni);
1424 if (base_ni) {
1426 ni->u.base_ni = base_ni;
1427 m->base_mft_record = MK_LE_MREF(base_ni->mft_no,
1428 le16_to_cpu(base_ni->mrec->sequence_number));
1433 if (!(base_ni->nr_extents & 3)) {
1437 i = (base_ni->nr_extents + 4) * sizeof(ntfs_inode *);
1446 if (base_ni->u.extent_nis) {
1447 memcpy(extent_nis, base_ni->u.extent_nis,
1449 free(base_ni->u.extent_nis);
1451 base_ni->u.extent_nis = extent_nis;
1453 base_ni->u.extent_nis[base_ni->nr_extents++] = ni;
1463 if (!base_ni) {
1471 base_ni ? "extent " : "", (long long)bit);