Home
last modified time | relevance | path

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

/linux-4.19.296/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 …]
Daops.c185 LCN lcn; in ntfs_read_block() local
272 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_read_block()
274 lcn = LCN_RL_NOT_MAPPED; in ntfs_read_block()
276 if (lcn >= 0) { in ntfs_read_block()
278 bh->b_blocknr = ((lcn << vol->cluster_size_bits) in ntfs_read_block()
290 if (lcn == LCN_HOLE) in ntfs_read_block()
293 if (!is_retry && lcn == LCN_RL_NOT_MAPPED) { in ntfs_read_block()
311 if (err == -ENOENT || lcn == LCN_ENOENT) { in ntfs_read_block()
550 LCN lcn; in ntfs_write_block() local
728 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_write_block()
[all …]
Ddebug.c149 LCN lcn = (rl + i)->lcn; in ntfs_debug_dump_runlist() local
151 if (lcn < (LCN)0) { in ntfs_debug_dump_runlist()
152 int index = -lcn - 1; in ntfs_debug_dump_runlist()
164 (long long)(rl + i)->lcn, in ntfs_debug_dump_runlist()
Dfile.c588 LCN lcn; in ntfs_prepare_pages_for_non_resident_write() local
642 vcn = lcn = -1; in ntfs_prepare_pages_for_non_resident_write()
723 BUG_ON(lcn < 0); in ntfs_prepare_pages_for_non_resident_write()
852 lcn = ntfs_rl_vcn_to_lcn(rl, bh_cpos); in ntfs_prepare_pages_for_non_resident_write()
853 if (likely(lcn >= 0)) { in ntfs_prepare_pages_for_non_resident_write()
861 lcn_block = lcn << (vol->cluster_size_bits - in ntfs_prepare_pages_for_non_resident_write()
882 lcn = LCN_RL_NOT_MAPPED; in ntfs_prepare_pages_for_non_resident_write()
887 if (unlikely(lcn != LCN_HOLE && lcn != LCN_ENOENT)) { in ntfs_prepare_pages_for_non_resident_write()
888 if (likely(!is_retry && lcn == LCN_RL_NOT_MAPPED)) { in ntfs_prepare_pages_for_non_resident_write()
915 lcn = LCN_ENOENT; in ntfs_prepare_pages_for_non_resident_write()
[all …]
Dattrib.c344 LCN lcn; in ntfs_attr_vcn_to_lcn_nolock() local
364 lcn = ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn); in ntfs_attr_vcn_to_lcn_nolock()
365 if (likely(lcn >= LCN_HOLE)) { in ntfs_attr_vcn_to_lcn_nolock()
366 ntfs_debug("Done, lcn 0x%llx.", (long long)lcn); in ntfs_attr_vcn_to_lcn_nolock()
367 return lcn; in ntfs_attr_vcn_to_lcn_nolock()
369 if (lcn != LCN_RL_NOT_MAPPED) { in ntfs_attr_vcn_to_lcn_nolock()
370 if (lcn != LCN_ENOENT) in ntfs_attr_vcn_to_lcn_nolock()
371 lcn = LCN_EIO; in ntfs_attr_vcn_to_lcn_nolock()
395 lcn = LCN_ENOENT; in ntfs_attr_vcn_to_lcn_nolock()
397 lcn = LCN_ENOMEM; in ntfs_attr_vcn_to_lcn_nolock()
[all …]
Dlogfile.c776 LCN lcn; in ntfs_empty_logfile() local
784 lcn = rl->lcn; in ntfs_empty_logfile()
785 if (unlikely(lcn == LCN_RL_NOT_MAPPED)) { in ntfs_empty_logfile()
790 if (unlikely(!rl->length || lcn < LCN_HOLE)) in ntfs_empty_logfile()
793 if (lcn == LCN_HOLE) in ntfs_empty_logfile()
795 block = lcn << vol->cluster_size_bits >> block_size_bits; in ntfs_empty_logfile()
799 end_block = (lcn + len) << vol->cluster_size_bits >> in ntfs_empty_logfile()
Dmft.c540 LCN lcn; in ntfs_sync_mft_mirror() local
562 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_sync_mft_mirror()
564 if (likely(lcn >= 0)) { in ntfs_sync_mft_mirror()
566 bh->b_blocknr = ((lcn << in ntfs_sync_mft_mirror()
577 (long long)lcn); in ntfs_sync_mft_mirror()
733 LCN lcn; in write_mft_record_nolock() local
750 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in write_mft_record_nolock()
752 if (likely(lcn >= 0)) { in write_mft_record_nolock()
754 bh->b_blocknr = ((lcn << in write_mft_record_nolock()
764 ni->mft_no, (long long)lcn); in write_mft_record_nolock()
[all …]
Dcompress.c493 LCN lcn; in ntfs_read_compressed_block() local
623 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_read_compressed_block()
625 lcn = LCN_RL_NOT_MAPPED; in ntfs_read_compressed_block()
628 (unsigned long long)lcn); in ntfs_read_compressed_block()
629 if (lcn < 0) { in ntfs_read_compressed_block()
634 if (lcn == LCN_HOLE) in ntfs_read_compressed_block()
636 if (is_retry || lcn != LCN_RL_NOT_MAPPED) in ntfs_read_compressed_block()
648 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.c1181 rl2[0].lcn = vol->mftmirr_lcn; in check_mft_mirror()
1185 rl2[1].lcn = LCN_ENOENT; in check_mft_mirror()
1197 if (rl2[i].vcn != rl[i].vcn || rl2[i].lcn != rl[i].lcn || in check_mft_mirror()