Searched refs:mft_ni (Results 1 - 2 of 2) sorted by relevance

/linux-4.1.27/fs/ntfs/
H A Dmft.c1284 ntfs_inode *mft_ni, *mftbmp_ni; ntfs_mft_bitmap_extend_allocation_nolock() local
1299 mft_ni = NTFS_I(vol->mft_ino); ntfs_mft_bitmap_extend_allocation_nolock()
1388 mrec = map_mft_record(mft_ni); ntfs_mft_bitmap_extend_allocation_nolock()
1394 ctx = ntfs_attr_get_search_ctx(mft_ni, mrec); ntfs_mft_bitmap_extend_allocation_nolock()
1493 unmap_mft_record(mft_ni); ntfs_mft_bitmap_extend_allocation_nolock()
1508 unmap_mft_record(mft_ni); ntfs_mft_bitmap_extend_allocation_nolock()
1558 unmap_mft_record(mft_ni); ntfs_mft_bitmap_extend_allocation_nolock()
1582 ntfs_inode *mft_ni, *mftbmp_ni; ntfs_mft_bitmap_extend_initialized_nolock() local
1589 mft_ni = NTFS_I(vol->mft_ino); ntfs_mft_bitmap_extend_initialized_nolock()
1593 mrec = map_mft_record(mft_ni); ntfs_mft_bitmap_extend_initialized_nolock()
1598 ctx = ntfs_attr_get_search_ctx(mft_ni, mrec); ntfs_mft_bitmap_extend_initialized_nolock()
1635 unmap_mft_record(mft_ni); ntfs_mft_bitmap_extend_initialized_nolock()
1645 mrec = map_mft_record(mft_ni); ntfs_mft_bitmap_extend_initialized_nolock()
1651 ctx = ntfs_attr_get_search_ctx(mft_ni, mrec); ntfs_mft_bitmap_extend_initialized_nolock()
1665 unmap_mft_record(mft_ni); ntfs_mft_bitmap_extend_initialized_nolock()
1681 unmap_mft_record(mft_ni); ntfs_mft_bitmap_extend_initialized_nolock()
1720 ntfs_inode *mft_ni; ntfs_mft_data_extend_allocation_nolock() local
1730 mft_ni = NTFS_I(vol->mft_ino); ntfs_mft_data_extend_allocation_nolock()
1736 down_write(&mft_ni->runlist.lock); ntfs_mft_data_extend_allocation_nolock()
1737 read_lock_irqsave(&mft_ni->size_lock, flags); ntfs_mft_data_extend_allocation_nolock()
1738 ll = mft_ni->allocated_size; ntfs_mft_data_extend_allocation_nolock()
1739 read_unlock_irqrestore(&mft_ni->size_lock, flags); ntfs_mft_data_extend_allocation_nolock()
1740 rl = ntfs_attr_find_vcn_nolock(mft_ni, ntfs_mft_data_extend_allocation_nolock()
1743 up_write(&mft_ni->runlist.lock); ntfs_mft_data_extend_allocation_nolock()
1763 read_lock_irqsave(&mft_ni->size_lock, flags); ntfs_mft_data_extend_allocation_nolock()
1764 ll = mft_ni->allocated_size; ntfs_mft_data_extend_allocation_nolock()
1765 read_unlock_irqrestore(&mft_ni->size_lock, flags); ntfs_mft_data_extend_allocation_nolock()
1774 up_write(&mft_ni->runlist.lock); ntfs_mft_data_extend_allocation_nolock()
1790 up_write(&mft_ni->runlist.lock); ntfs_mft_data_extend_allocation_nolock()
1802 rl = ntfs_runlists_merge(mft_ni->runlist.rl, rl2); ntfs_mft_data_extend_allocation_nolock()
1804 up_write(&mft_ni->runlist.lock); ntfs_mft_data_extend_allocation_nolock()
1815 mft_ni->runlist.rl = rl; ntfs_mft_data_extend_allocation_nolock()
1821 mrec = map_mft_record(mft_ni); ntfs_mft_data_extend_allocation_nolock()
1827 ctx = ntfs_attr_get_search_ctx(mft_ni, mrec); ntfs_mft_data_extend_allocation_nolock()
1833 ret = ntfs_attr_lookup(mft_ni->type, mft_ni->name, mft_ni->name_len, ntfs_mft_data_extend_allocation_nolock()
1845 for (rl2 = rl; rl2 > mft_ni->runlist.rl; rl2--) { ntfs_mft_data_extend_allocation_nolock()
1913 ret = ntfs_attr_lookup(mft_ni->type, mft_ni->name, ntfs_mft_data_extend_allocation_nolock()
1914 mft_ni->name_len, CASE_SENSITIVE, 0, NULL, 0, ntfs_mft_data_extend_allocation_nolock()
1923 write_lock_irqsave(&mft_ni->size_lock, flags); ntfs_mft_data_extend_allocation_nolock()
1924 mft_ni->allocated_size += nr << vol->cluster_size_bits; ntfs_mft_data_extend_allocation_nolock()
1926 cpu_to_sle64(mft_ni->allocated_size); ntfs_mft_data_extend_allocation_nolock()
1927 write_unlock_irqrestore(&mft_ni->size_lock, flags); ntfs_mft_data_extend_allocation_nolock()
1932 unmap_mft_record(mft_ni); ntfs_mft_data_extend_allocation_nolock()
1933 up_write(&mft_ni->runlist.lock); ntfs_mft_data_extend_allocation_nolock()
1938 if (ntfs_attr_lookup(mft_ni->type, mft_ni->name, mft_ni->name_len, ntfs_mft_data_extend_allocation_nolock()
1942 write_lock_irqsave(&mft_ni->size_lock, flags); ntfs_mft_data_extend_allocation_nolock()
1943 mft_ni->allocated_size += nr << vol->cluster_size_bits; ntfs_mft_data_extend_allocation_nolock()
1944 write_unlock_irqrestore(&mft_ni->size_lock, flags); ntfs_mft_data_extend_allocation_nolock()
1946 unmap_mft_record(mft_ni); ntfs_mft_data_extend_allocation_nolock()
1947 up_write(&mft_ni->runlist.lock); ntfs_mft_data_extend_allocation_nolock()
1958 if (ntfs_cluster_free(mft_ni, old_last_vcn, -1, ctx) < 0) { ntfs_mft_data_extend_allocation_nolock()
1964 if (ntfs_rl_truncate_nolock(vol, &mft_ni->runlist, old_last_vcn)) { ntfs_mft_data_extend_allocation_nolock()
1994 unmap_mft_record(mft_ni); ntfs_mft_data_extend_allocation_nolock()
1995 up_write(&mft_ni->runlist.lock); ntfs_mft_data_extend_allocation_nolock()
2250 ntfs_inode *mft_ni, *mftbmp_ni, *ni; ntfs_mft_record_alloc() local
2276 mft_ni = NTFS_I(vol->mft_ino); ntfs_mft_record_alloc()
2297 read_lock_irqsave(&mft_ni->size_lock, flags); ntfs_mft_record_alloc()
2298 ll = mft_ni->initialized_size >> vol->mft_record_size_bits; ntfs_mft_record_alloc()
2299 read_unlock_irqrestore(&mft_ni->size_lock, flags); ntfs_mft_record_alloc()
2389 read_lock_irqsave(&mft_ni->size_lock, flags); ntfs_mft_record_alloc()
2390 old_data_initialized = mft_ni->initialized_size; ntfs_mft_record_alloc()
2391 read_unlock_irqrestore(&mft_ni->size_lock, flags); ntfs_mft_record_alloc()
2403 read_lock_irqsave(&mft_ni->size_lock, flags); ntfs_mft_record_alloc()
2407 (long long)mft_ni->allocated_size, ntfs_mft_record_alloc()
2409 (long long)mft_ni->initialized_size); ntfs_mft_record_alloc()
2410 while (ll > mft_ni->allocated_size) { ntfs_mft_record_alloc()
2411 read_unlock_irqrestore(&mft_ni->size_lock, flags); ntfs_mft_record_alloc()
2418 read_lock_irqsave(&mft_ni->size_lock, flags); ntfs_mft_record_alloc()
2422 (long long)mft_ni->allocated_size, ntfs_mft_record_alloc()
2424 (long long)mft_ni->initialized_size); ntfs_mft_record_alloc()
2426 read_unlock_irqrestore(&mft_ni->size_lock, flags); ntfs_mft_record_alloc()
2434 write_lock_irqsave(&mft_ni->size_lock, flags); ntfs_mft_record_alloc()
2435 old_data_initialized = mft_ni->initialized_size; ntfs_mft_record_alloc()
2437 while (ll > mft_ni->initialized_size) { ntfs_mft_record_alloc()
2440 new_initialized_size = mft_ni->initialized_size + ntfs_mft_record_alloc()
2442 mft_no = mft_ni->initialized_size >> vol->mft_record_size_bits; ntfs_mft_record_alloc()
2445 write_unlock_irqrestore(&mft_ni->size_lock, flags); ntfs_mft_record_alloc()
2453 write_lock_irqsave(&mft_ni->size_lock, flags); ntfs_mft_record_alloc()
2454 mft_ni->initialized_size = new_initialized_size; ntfs_mft_record_alloc()
2456 write_unlock_irqrestore(&mft_ni->size_lock, flags); ntfs_mft_record_alloc()
2459 m = map_mft_record(mft_ni); ntfs_mft_record_alloc()
2465 ctx = ntfs_attr_get_search_ctx(mft_ni, m); ntfs_mft_record_alloc()
2469 unmap_mft_record(mft_ni); ntfs_mft_record_alloc()
2472 err = ntfs_attr_lookup(mft_ni->type, mft_ni->name, mft_ni->name_len, ntfs_mft_record_alloc()
2478 unmap_mft_record(mft_ni); ntfs_mft_record_alloc()
2482 read_lock_irqsave(&mft_ni->size_lock, flags); ntfs_mft_record_alloc()
2484 cpu_to_sle64(mft_ni->initialized_size); ntfs_mft_record_alloc()
2487 read_unlock_irqrestore(&mft_ni->size_lock, flags); ntfs_mft_record_alloc()
2492 unmap_mft_record(mft_ni); ntfs_mft_record_alloc()
2493 read_lock_irqsave(&mft_ni->size_lock, flags); ntfs_mft_record_alloc()
2497 (long long)mft_ni->allocated_size, ntfs_mft_record_alloc()
2499 (long long)mft_ni->initialized_size); ntfs_mft_record_alloc()
2500 BUG_ON(i_size_read(vol->mft_ino) > mft_ni->allocated_size); ntfs_mft_record_alloc()
2501 BUG_ON(mft_ni->initialized_size > i_size_read(vol->mft_ino)); ntfs_mft_record_alloc()
2502 read_unlock_irqrestore(&mft_ni->size_lock, flags); ntfs_mft_record_alloc()
2741 write_lock_irqsave(&mft_ni->size_lock, flags); ntfs_mft_record_alloc()
2742 mft_ni->initialized_size = old_data_initialized; ntfs_mft_record_alloc()
2744 write_unlock_irqrestore(&mft_ni->size_lock, flags); ntfs_mft_record_alloc()
H A Dsuper.c2620 ntfs_inode *mft_ni = NTFS_I(vol->mft_ino); ntfs_statfs() local
2645 read_lock_irqsave(&mft_ni->size_lock, flags); ntfs_statfs()
2652 max_index = ((((mft_ni->initialized_size >> vol->mft_record_size_bits) ntfs_statfs()
2654 read_unlock_irqrestore(&mft_ni->size_lock, flags); ntfs_statfs()

Completed in 113 milliseconds