Lines Matching refs:mftbmp_ni
1279 ntfs_inode *mft_ni, *mftbmp_ni; in ntfs_mft_bitmap_extend_allocation_nolock() local
1295 mftbmp_ni = NTFS_I(vol->mftbmp_ino); in ntfs_mft_bitmap_extend_allocation_nolock()
1300 down_write(&mftbmp_ni->runlist.lock); in ntfs_mft_bitmap_extend_allocation_nolock()
1301 read_lock_irqsave(&mftbmp_ni->size_lock, flags); in ntfs_mft_bitmap_extend_allocation_nolock()
1302 ll = mftbmp_ni->allocated_size; in ntfs_mft_bitmap_extend_allocation_nolock()
1303 read_unlock_irqrestore(&mftbmp_ni->size_lock, flags); in ntfs_mft_bitmap_extend_allocation_nolock()
1304 rl = ntfs_attr_find_vcn_nolock(mftbmp_ni, in ntfs_mft_bitmap_extend_allocation_nolock()
1307 up_write(&mftbmp_ni->runlist.lock); in ntfs_mft_bitmap_extend_allocation_nolock()
1328 up_write(&mftbmp_ni->runlist.lock); in ntfs_mft_bitmap_extend_allocation_nolock()
1354 up_write(&mftbmp_ni->runlist.lock); in ntfs_mft_bitmap_extend_allocation_nolock()
1359 rl = ntfs_runlists_merge(mftbmp_ni->runlist.rl, rl2); in ntfs_mft_bitmap_extend_allocation_nolock()
1361 up_write(&mftbmp_ni->runlist.lock); in ntfs_mft_bitmap_extend_allocation_nolock()
1372 mftbmp_ni->runlist.rl = rl; in ntfs_mft_bitmap_extend_allocation_nolock()
1395 ret = ntfs_attr_lookup(mftbmp_ni->type, mftbmp_ni->name, in ntfs_mft_bitmap_extend_allocation_nolock()
1396 mftbmp_ni->name_len, CASE_SENSITIVE, rl[1].vcn, NULL, in ntfs_mft_bitmap_extend_allocation_nolock()
1408 for (rl2 = rl; rl2 > mftbmp_ni->runlist.rl; rl2--) { in ntfs_mft_bitmap_extend_allocation_nolock()
1469 ret = ntfs_attr_lookup(mftbmp_ni->type, mftbmp_ni->name, in ntfs_mft_bitmap_extend_allocation_nolock()
1470 mftbmp_ni->name_len, CASE_SENSITIVE, 0, NULL, in ntfs_mft_bitmap_extend_allocation_nolock()
1479 write_lock_irqsave(&mftbmp_ni->size_lock, flags); in ntfs_mft_bitmap_extend_allocation_nolock()
1480 mftbmp_ni->allocated_size += vol->cluster_size; in ntfs_mft_bitmap_extend_allocation_nolock()
1482 cpu_to_sle64(mftbmp_ni->allocated_size); in ntfs_mft_bitmap_extend_allocation_nolock()
1483 write_unlock_irqrestore(&mftbmp_ni->size_lock, flags); in ntfs_mft_bitmap_extend_allocation_nolock()
1489 up_write(&mftbmp_ni->runlist.lock); in ntfs_mft_bitmap_extend_allocation_nolock()
1494 if (ntfs_attr_lookup(mftbmp_ni->type, mftbmp_ni->name, in ntfs_mft_bitmap_extend_allocation_nolock()
1495 mftbmp_ni->name_len, CASE_SENSITIVE, rl[1].vcn, NULL, in ntfs_mft_bitmap_extend_allocation_nolock()
1499 write_lock_irqsave(&mftbmp_ni->size_lock, flags); in ntfs_mft_bitmap_extend_allocation_nolock()
1500 mftbmp_ni->allocated_size += vol->cluster_size; in ntfs_mft_bitmap_extend_allocation_nolock()
1501 write_unlock_irqrestore(&mftbmp_ni->size_lock, flags); in ntfs_mft_bitmap_extend_allocation_nolock()
1504 up_write(&mftbmp_ni->runlist.lock); in ntfs_mft_bitmap_extend_allocation_nolock()
1554 up_write(&mftbmp_ni->runlist.lock); in ntfs_mft_bitmap_extend_allocation_nolock()
1577 ntfs_inode *mft_ni, *mftbmp_ni; in ntfs_mft_bitmap_extend_initialized_nolock() local
1586 mftbmp_ni = NTFS_I(mftbmp_vi); in ntfs_mft_bitmap_extend_initialized_nolock()
1599 ret = ntfs_attr_lookup(mftbmp_ni->type, mftbmp_ni->name, in ntfs_mft_bitmap_extend_initialized_nolock()
1600 mftbmp_ni->name_len, CASE_SENSITIVE, 0, NULL, 0, ctx); in ntfs_mft_bitmap_extend_initialized_nolock()
1609 write_lock_irqsave(&mftbmp_ni->size_lock, flags); in ntfs_mft_bitmap_extend_initialized_nolock()
1611 old_initialized_size = mftbmp_ni->initialized_size; in ntfs_mft_bitmap_extend_initialized_nolock()
1617 mftbmp_ni->initialized_size += 8; in ntfs_mft_bitmap_extend_initialized_nolock()
1619 cpu_to_sle64(mftbmp_ni->initialized_size); in ntfs_mft_bitmap_extend_initialized_nolock()
1620 if (mftbmp_ni->initialized_size > old_data_size) { in ntfs_mft_bitmap_extend_initialized_nolock()
1621 i_size_write(mftbmp_vi, mftbmp_ni->initialized_size); in ntfs_mft_bitmap_extend_initialized_nolock()
1623 cpu_to_sle64(mftbmp_ni->initialized_size); in ntfs_mft_bitmap_extend_initialized_nolock()
1625 write_unlock_irqrestore(&mftbmp_ni->size_lock, flags); in ntfs_mft_bitmap_extend_initialized_nolock()
1632 ret = ntfs_attr_set(mftbmp_ni, old_initialized_size, 8, 0); in ntfs_mft_bitmap_extend_initialized_nolock()
1652 if (ntfs_attr_lookup(mftbmp_ni->type, mftbmp_ni->name, in ntfs_mft_bitmap_extend_initialized_nolock()
1653 mftbmp_ni->name_len, CASE_SENSITIVE, 0, NULL, 0, ctx)) { in ntfs_mft_bitmap_extend_initialized_nolock()
1664 write_lock_irqsave(&mftbmp_ni->size_lock, flags); in ntfs_mft_bitmap_extend_initialized_nolock()
1665 mftbmp_ni->initialized_size = old_initialized_size; in ntfs_mft_bitmap_extend_initialized_nolock()
1672 write_unlock_irqrestore(&mftbmp_ni->size_lock, flags); in ntfs_mft_bitmap_extend_initialized_nolock()
1678 read_lock_irqsave(&mftbmp_ni->size_lock, flags); in ntfs_mft_bitmap_extend_initialized_nolock()
1681 (long long)mftbmp_ni->allocated_size, in ntfs_mft_bitmap_extend_initialized_nolock()
1683 (long long)mftbmp_ni->initialized_size); in ntfs_mft_bitmap_extend_initialized_nolock()
1684 read_unlock_irqrestore(&mftbmp_ni->size_lock, flags); in ntfs_mft_bitmap_extend_initialized_nolock()
2247 ntfs_inode *mft_ni, *mftbmp_ni, *ni; in ntfs_mft_record_alloc() local
2274 mftbmp_ni = NTFS_I(vol->mftbmp_ino); in ntfs_mft_record_alloc()
2297 read_lock_irqsave(&mftbmp_ni->size_lock, flags); in ntfs_mft_record_alloc()
2298 old_data_initialized = mftbmp_ni->initialized_size; in ntfs_mft_record_alloc()
2299 read_unlock_irqrestore(&mftbmp_ni->size_lock, flags); in ntfs_mft_record_alloc()
2318 read_lock_irqsave(&mftbmp_ni->size_lock, flags); in ntfs_mft_record_alloc()
2319 old_data_size = mftbmp_ni->allocated_size; in ntfs_mft_record_alloc()
2325 read_unlock_irqrestore(&mftbmp_ni->size_lock, flags); in ntfs_mft_record_alloc()
2335 read_lock_irqsave(&mftbmp_ni->size_lock, flags); in ntfs_mft_record_alloc()
2339 (long long)mftbmp_ni->allocated_size, in ntfs_mft_record_alloc()
2341 (long long)mftbmp_ni->initialized_size); in ntfs_mft_record_alloc()
2342 read_unlock_irqrestore(&mftbmp_ni->size_lock, flags); in ntfs_mft_record_alloc()
2356 read_lock_irqsave(&mftbmp_ni->size_lock, flags); in ntfs_mft_record_alloc()
2360 (long long)mftbmp_ni->allocated_size, in ntfs_mft_record_alloc()
2362 (long long)mftbmp_ni->initialized_size); in ntfs_mft_record_alloc()
2363 read_unlock_irqrestore(&mftbmp_ni->size_lock, flags); in ntfs_mft_record_alloc()