Home
last modified time | relevance | path

Searched refs:lcn (Results 1 – 11 of 11) sorted by relevance

/fs/ntfs/
Drunlist.c162 if ((dst->lcn == LCN_RL_NOT_MAPPED) && (src->lcn == LCN_RL_NOT_MAPPED)) in ntfs_are_rl_mergeable()
168 if ((dst->lcn >= 0) && (src->lcn >= 0) && in ntfs_are_rl_mergeable()
169 ((dst->lcn + dst->length) == src->lcn)) in ntfs_are_rl_mergeable()
172 if ((dst->lcn == LCN_HOLE) && (src->lcn == LCN_HOLE)) in ntfs_are_rl_mergeable()
255 if (dst[marker].lcn == LCN_ENOENT) in ntfs_rl_append()
341 if (dst[marker].lcn == LCN_HOLE || dst[marker].lcn == LCN_RL_NOT_MAPPED) in ntfs_rl_insert()
353 dst[loc].lcn = LCN_RL_NOT_MAPPED; in ntfs_rl_insert()
441 if (dsize - tail > 0 && dst[marker].lcn == LCN_ENOENT) in ntfs_rl_replace()
571 drl[0].lcn = LCN_RL_NOT_MAPPED; in ntfs_runlists_merge()
580 while (srl[si].length && srl[si].lcn < LCN_HOLE) in ntfs_runlists_merge()
[all …]
Dlcnalloc.c62 if (rl->lcn < 0) in ntfs_cluster_free_from_rl_nolock()
64 err = ntfs_bitmap_clear_run(lcnbmp_vi, rl->lcn, rl->length); in ntfs_cluster_free_from_rl_nolock()
151 LCN zone_start, zone_end, bmp_pos, bmp_initial_pos, last_read_pos, lcn; in ntfs_cluster_alloc() local
298 lcn = bmp_pos & 7; in ntfs_cluster_alloc()
302 (unsigned long long)lcn, in ntfs_cluster_alloc()
304 while (lcn < buf_size && lcn + bmp_pos < zone_end) { in ntfs_cluster_alloc()
305 byte = buf + (lcn >> 3); in ntfs_cluster_alloc()
310 (unsigned long long)lcn, in ntfs_cluster_alloc()
313 (unsigned int)(lcn >> 3), in ntfs_cluster_alloc()
317 lcn = (lcn + 8) & ~(LCN)7; in ntfs_cluster_alloc()
[all …]
Ddebug.c159 LCN lcn = (rl + i)->lcn; in ntfs_debug_dump_runlist() local
161 if (lcn < (LCN)0) { in ntfs_debug_dump_runlist()
162 int index = -lcn - 1; in ntfs_debug_dump_runlist()
174 (long long)(rl + i)->lcn, in ntfs_debug_dump_runlist()
Daops.c188 LCN lcn; in ntfs_read_block() local
275 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_read_block()
277 lcn = LCN_RL_NOT_MAPPED; in ntfs_read_block()
279 if (lcn >= 0) { in ntfs_read_block()
281 bh->b_blocknr = ((lcn << vol->cluster_size_bits) in ntfs_read_block()
293 if (lcn == LCN_HOLE) in ntfs_read_block()
296 if (!is_retry && lcn == LCN_RL_NOT_MAPPED) { in ntfs_read_block()
314 if (err == -ENOENT || lcn == LCN_ENOENT) { in ntfs_read_block()
553 LCN lcn; in ntfs_write_block() local
731 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_write_block()
[all …]
Dfile.c495 LCN lcn; in ntfs_prepare_pages_for_non_resident_write() local
549 vcn = lcn = -1; in ntfs_prepare_pages_for_non_resident_write()
630 BUG_ON(lcn < 0); in ntfs_prepare_pages_for_non_resident_write()
760 lcn = ntfs_rl_vcn_to_lcn(rl, bh_cpos); in ntfs_prepare_pages_for_non_resident_write()
761 if (likely(lcn >= 0)) { in ntfs_prepare_pages_for_non_resident_write()
769 lcn_block = lcn << (vol->cluster_size_bits - in ntfs_prepare_pages_for_non_resident_write()
790 lcn = LCN_RL_NOT_MAPPED; in ntfs_prepare_pages_for_non_resident_write()
795 if (unlikely(lcn != LCN_HOLE && lcn != LCN_ENOENT)) { in ntfs_prepare_pages_for_non_resident_write()
796 if (likely(!is_retry && lcn == LCN_RL_NOT_MAPPED)) { in ntfs_prepare_pages_for_non_resident_write()
823 lcn = LCN_ENOENT; in ntfs_prepare_pages_for_non_resident_write()
[all …]
Dattrib.c343 LCN lcn; in ntfs_attr_vcn_to_lcn_nolock() local
363 lcn = ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn); in ntfs_attr_vcn_to_lcn_nolock()
364 if (likely(lcn >= LCN_HOLE)) { in ntfs_attr_vcn_to_lcn_nolock()
365 ntfs_debug("Done, lcn 0x%llx.", (long long)lcn); in ntfs_attr_vcn_to_lcn_nolock()
366 return lcn; in ntfs_attr_vcn_to_lcn_nolock()
368 if (lcn != LCN_RL_NOT_MAPPED) { in ntfs_attr_vcn_to_lcn_nolock()
369 if (lcn != LCN_ENOENT) in ntfs_attr_vcn_to_lcn_nolock()
370 lcn = LCN_EIO; in ntfs_attr_vcn_to_lcn_nolock()
394 lcn = LCN_ENOENT; in ntfs_attr_vcn_to_lcn_nolock()
396 lcn = LCN_ENOMEM; in ntfs_attr_vcn_to_lcn_nolock()
[all …]
Dlogfile.c774 LCN lcn; in ntfs_empty_logfile() local
782 lcn = rl->lcn; in ntfs_empty_logfile()
783 if (unlikely(lcn == LCN_RL_NOT_MAPPED)) { in ntfs_empty_logfile()
788 if (unlikely(!rl->length || lcn < LCN_HOLE)) in ntfs_empty_logfile()
791 if (lcn == LCN_HOLE) in ntfs_empty_logfile()
793 block = lcn << vol->cluster_size_bits >> block_size_bits; in ntfs_empty_logfile()
797 end_block = (lcn + len) << vol->cluster_size_bits >> in ntfs_empty_logfile()
Dmft.c535 LCN lcn; in ntfs_sync_mft_mirror() local
557 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_sync_mft_mirror()
559 if (likely(lcn >= 0)) { in ntfs_sync_mft_mirror()
561 bh->b_blocknr = ((lcn << in ntfs_sync_mft_mirror()
572 (long long)lcn); in ntfs_sync_mft_mirror()
724 LCN lcn; in write_mft_record_nolock() local
741 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in write_mft_record_nolock()
743 if (likely(lcn >= 0)) { in write_mft_record_nolock()
745 bh->b_blocknr = ((lcn << in write_mft_record_nolock()
755 ni->mft_no, (long long)lcn); in write_mft_record_nolock()
[all …]
Dcompress.c498 LCN lcn; in ntfs_read_compressed_block() local
624 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_read_compressed_block()
626 lcn = LCN_RL_NOT_MAPPED; in ntfs_read_compressed_block()
629 (unsigned long long)lcn); in ntfs_read_compressed_block()
630 if (lcn < 0) { in ntfs_read_compressed_block()
635 if (lcn == LCN_HOLE) in ntfs_read_compressed_block()
637 if (is_retry || lcn != LCN_RL_NOT_MAPPED) in ntfs_read_compressed_block()
649 block = lcn << vol->cluster_size_bits >> block_size_bits; in ntfs_read_compressed_block()
Drunlist.h44 LCN lcn; /* lcn = Starting logical cluster number. */ member
Dsuper.c1151 rl2[0].lcn = vol->mftmirr_lcn; in check_mft_mirror()
1155 rl2[1].lcn = LCN_ENOENT; in check_mft_mirror()
1167 if (rl2[i].vcn != rl[i].vcn || rl2[i].lcn != rl[i].lcn || in check_mft_mirror()