• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/ap/gpl/ntfs-3g-2009.3.8/libntfs-3g/

Lines Matching refs:base_ni

460  * @base_ni:	open base inode if allocating an extent mft record or NULL
465 * If @base_ni is NULL start the search at the default allocator position.
467 * If @base_ni is not NULL start the search at the mft record after the base
468 * mft record @base_ni.
474 static int ntfs_mft_bitmap_find_free_rec(ntfs_volume *vol, ntfs_inode *base_ni)
496 if (!base_ni)
499 data_pos = base_ni->mft_no + 1;
511 if (ntfs_is_mft(base_ni)) {
559 if (ntfs_is_mft(base_ni) && bit > 400)
1360 ntfs_inode *base_ni;
1369 base_ni = mft_na->ni;
1371 bit = ntfs_mft_bitmap_find_free_rec(vol, base_ni);
1444 ni->base_ni = base_ni;
1445 m->base_mft_record = MK_LE_MREF(base_ni->mft_no,
1446 le16_to_cpu(base_ni->mrec->sequence_number));
1451 if (!(base_ni->nr_extents & 3)) {
1455 i = (base_ni->nr_extents + 4) * sizeof(ntfs_inode *);
1462 if (base_ni->extent_nis) {
1463 memcpy(extent_nis, base_ni->extent_nis,
1465 free(base_ni->extent_nis);
1467 base_ni->extent_nis = extent_nis;
1469 base_ni->extent_nis[base_ni->nr_extents++] = ni;
1480 if (!base_ni)
1484 base_ni ? "extent " : "", (long long)bit);
1504 * @base_ni: open base inode if allocating an extent mft record or NULL
1508 * If @base_ni is NULL make the mft record a base mft record and allocate it at
1511 * If @base_ni is not NULL make the allocated mft record an extent record,
1513 * the allocated and opened ntfs inode to the base inode @base_ni.
1520 * optimize this we start scanning at the place specified by @base_ni or if
1521 * @base_ni is NULL we start where we last stopped and we perform wrap around
1584 ntfs_inode *ntfs_mft_record_alloc(ntfs_volume *vol, ntfs_inode *base_ni)
1593 if (base_ni)
1596 (long long)base_ni->mft_no);
1604 if (ntfs_is_mft(base_ni)) {
1612 bit = ntfs_mft_bitmap_find_free_rec(vol, base_ni);
1744 if (base_ni) {
1746 ni->base_ni = base_ni;
1747 m->base_mft_record = MK_LE_MREF(base_ni->mft_no,
1748 le16_to_cpu(base_ni->mrec->sequence_number));
1753 if (!(base_ni->nr_extents & 3)) {
1757 i = (base_ni->nr_extents + 4) * sizeof(ntfs_inode *);
1764 if (base_ni->extent_nis) {
1765 memcpy(extent_nis, base_ni->extent_nis,
1767 free(base_ni->extent_nis);
1769 base_ni->extent_nis = extent_nis;
1771 base_ni->extent_nis[base_ni->nr_extents++] = ni;
1782 if (!base_ni)
1786 base_ni ? "extent " : "", (long long)bit);