Lines Matching defs:index

42 	unsigned long index, end_index;
47 * The index into the page cache and the offset within the page cache
52 index = (u64)ni->mft_no << vol->mft_record_size_bits >>
57 /* The maximum valid index into the page cache for $MFT's data. */
60 /* If the wanted index is out of bounds the mft record doesn't exist. */
61 if (unlikely(index >= end_index)) {
62 if (index > end_index || (i_size & ~PAGE_MASK) < ofs +
73 page = ntfs_map_page(mft_vi->i_mapping, index);
2092 pgoff_t index, end_index;
2098 * The index into the page cache and the offset within the page cache
2101 index = mft_no << vol->mft_record_size_bits >> PAGE_SHIFT;
2103 /* The maximum valid index into the page cache for $MFT's data. */
2106 if (unlikely(index >= end_index)) {
2107 if (unlikely(index > end_index || ofs + vol->mft_record_size >=
2115 page = ntfs_map_page(mft_vi->i_mapping, index);
2249 pgoff_t index;
2511 * index of and the offset within the page cache page the record is in.
2513 index = bit << vol->mft_record_size_bits >> PAGE_SHIFT;
2516 page = ntfs_map_page(vol->mft_ino->i_mapping, index);
2648 * directories, also setup the index values to the defaults.
2659 ni->itype.index.block_size = 4096;
2660 ni->itype.index.block_size_bits = ntfs_ffs(4096) - 1;
2661 ni->itype.index.collation_rule = COLLATION_FILE_NAME;
2662 if (vol->cluster_size <= ni->itype.index.block_size) {
2663 ni->itype.index.vcn_size = vol->cluster_size;
2664 ni->itype.index.vcn_size_bits =
2667 ni->itype.index.vcn_size = vol->sector_size;
2668 ni->itype.index.vcn_size_bits =