Searched refs:lcn (Results 1 – 12 of 12) sorted by relevance
/fs/ntfs/ |
D | runlist.c | 148 if ((dst->lcn == LCN_RL_NOT_MAPPED) && (src->lcn == LCN_RL_NOT_MAPPED)) in ntfs_are_rl_mergeable() 154 if ((dst->lcn >= 0) && (src->lcn >= 0) && in ntfs_are_rl_mergeable() 155 ((dst->lcn + dst->length) == src->lcn)) in ntfs_are_rl_mergeable() 158 if ((dst->lcn == LCN_HOLE) && (src->lcn == LCN_HOLE)) in ntfs_are_rl_mergeable() 241 if (dst[marker].lcn == LCN_ENOENT) in ntfs_rl_append() 327 if (dst[marker].lcn == LCN_HOLE || dst[marker].lcn == LCN_RL_NOT_MAPPED) in ntfs_rl_insert() 339 dst[loc].lcn = LCN_RL_NOT_MAPPED; in ntfs_rl_insert() 427 if (dsize - tail > 0 && dst[marker].lcn == LCN_ENOENT) in ntfs_rl_replace() 557 drl[0].lcn = LCN_RL_NOT_MAPPED; in ntfs_runlists_merge() 566 while (srl[si].length && srl[si].lcn < LCN_HOLE) in ntfs_runlists_merge() [all …]
|
D | lcnalloc.c | 48 if (rl->lcn < 0) in ntfs_cluster_free_from_rl_nolock() 50 err = ntfs_bitmap_clear_run(lcnbmp_vi, rl->lcn, rl->length); in ntfs_cluster_free_from_rl_nolock() 137 LCN zone_start, zone_end, bmp_pos, bmp_initial_pos, last_read_pos, lcn; in ntfs_cluster_alloc() local 284 lcn = bmp_pos & 7; in ntfs_cluster_alloc() 288 (unsigned long long)lcn, in ntfs_cluster_alloc() 290 while (lcn < buf_size && lcn + bmp_pos < zone_end) { in ntfs_cluster_alloc() 291 byte = buf + (lcn >> 3); in ntfs_cluster_alloc() 296 (unsigned long long)lcn, in ntfs_cluster_alloc() 299 (unsigned int)(lcn >> 3), in ntfs_cluster_alloc() 303 lcn = (lcn + 8) & ~(LCN)7; in ntfs_cluster_alloc() [all …]
|
D | aops.c | 168 LCN lcn; in ntfs_read_block() local 255 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_read_block() 257 lcn = LCN_RL_NOT_MAPPED; in ntfs_read_block() 259 if (lcn >= 0) { in ntfs_read_block() 261 bh->b_blocknr = ((lcn << vol->cluster_size_bits) in ntfs_read_block() 273 if (lcn == LCN_HOLE) in ntfs_read_block() 276 if (!is_retry && lcn == LCN_RL_NOT_MAPPED) { in ntfs_read_block() 294 if (err == -ENOENT || lcn == LCN_ENOENT) { in ntfs_read_block() 533 LCN lcn; in ntfs_write_block() local 711 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_write_block() [all …]
|
D | debug.c | 135 LCN lcn = (rl + i)->lcn; in ntfs_debug_dump_runlist() local 137 if (lcn < (LCN)0) { in ntfs_debug_dump_runlist() 138 int index = -lcn - 1; in ntfs_debug_dump_runlist() 150 (long long)(rl + i)->lcn, in ntfs_debug_dump_runlist()
|
D | file.c | 574 LCN lcn; in ntfs_prepare_pages_for_non_resident_write() local 628 vcn = lcn = -1; in ntfs_prepare_pages_for_non_resident_write() 709 BUG_ON(lcn < 0); in ntfs_prepare_pages_for_non_resident_write() 838 lcn = ntfs_rl_vcn_to_lcn(rl, bh_cpos); in ntfs_prepare_pages_for_non_resident_write() 839 if (likely(lcn >= 0)) { in ntfs_prepare_pages_for_non_resident_write() 847 lcn_block = lcn << (vol->cluster_size_bits - in ntfs_prepare_pages_for_non_resident_write() 868 lcn = LCN_RL_NOT_MAPPED; in ntfs_prepare_pages_for_non_resident_write() 873 if (unlikely(lcn != LCN_HOLE && lcn != LCN_ENOENT)) { in ntfs_prepare_pages_for_non_resident_write() 874 if (likely(!is_retry && lcn == LCN_RL_NOT_MAPPED)) { in ntfs_prepare_pages_for_non_resident_write() 901 lcn = LCN_ENOENT; in ntfs_prepare_pages_for_non_resident_write() [all …]
|
D | attrib.c | 330 LCN lcn; in ntfs_attr_vcn_to_lcn_nolock() local 350 lcn = ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn); in ntfs_attr_vcn_to_lcn_nolock() 351 if (likely(lcn >= LCN_HOLE)) { in ntfs_attr_vcn_to_lcn_nolock() 352 ntfs_debug("Done, lcn 0x%llx.", (long long)lcn); in ntfs_attr_vcn_to_lcn_nolock() 353 return lcn; in ntfs_attr_vcn_to_lcn_nolock() 355 if (lcn != LCN_RL_NOT_MAPPED) { in ntfs_attr_vcn_to_lcn_nolock() 356 if (lcn != LCN_ENOENT) in ntfs_attr_vcn_to_lcn_nolock() 357 lcn = LCN_EIO; in ntfs_attr_vcn_to_lcn_nolock() 381 lcn = LCN_ENOENT; in ntfs_attr_vcn_to_lcn_nolock() 383 lcn = LCN_ENOMEM; in ntfs_attr_vcn_to_lcn_nolock() [all …]
|
D | mft.c | 526 LCN lcn; in ntfs_sync_mft_mirror() local 548 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_sync_mft_mirror() 550 if (likely(lcn >= 0)) { in ntfs_sync_mft_mirror() 552 bh->b_blocknr = ((lcn << in ntfs_sync_mft_mirror() 563 (long long)lcn); in ntfs_sync_mft_mirror() 719 LCN lcn; in write_mft_record_nolock() local 736 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in write_mft_record_nolock() 738 if (likely(lcn >= 0)) { in write_mft_record_nolock() 740 bh->b_blocknr = ((lcn << in write_mft_record_nolock() 750 ni->mft_no, (long long)lcn); in write_mft_record_nolock() [all …]
|
D | logfile.c | 762 LCN lcn; in ntfs_empty_logfile() local 770 lcn = rl->lcn; in ntfs_empty_logfile() 771 if (unlikely(lcn == LCN_RL_NOT_MAPPED)) { in ntfs_empty_logfile() 776 if (unlikely(!rl->length || lcn < LCN_HOLE)) in ntfs_empty_logfile() 779 if (lcn == LCN_HOLE) in ntfs_empty_logfile() 781 block = lcn << vol->cluster_size_bits >> block_size_bits; in ntfs_empty_logfile() 785 end_block = (lcn + len) << vol->cluster_size_bits >> in ntfs_empty_logfile()
|
D | compress.c | 479 LCN lcn; in ntfs_read_compressed_block() local 609 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_read_compressed_block() 611 lcn = LCN_RL_NOT_MAPPED; in ntfs_read_compressed_block() 614 (unsigned long long)lcn); in ntfs_read_compressed_block() 615 if (lcn < 0) { in ntfs_read_compressed_block() 620 if (lcn == LCN_HOLE) in ntfs_read_compressed_block() 622 if (is_retry || lcn != LCN_RL_NOT_MAPPED) in ntfs_read_compressed_block() 634 block = lcn << vol->cluster_size_bits >> block_size_bits; in ntfs_read_compressed_block()
|
D | runlist.h | 30 LCN lcn; /* lcn = Starting logical cluster number. */ member
|
D | super.c | 1167 rl2[0].lcn = vol->mftmirr_lcn; in check_mft_mirror() 1171 rl2[1].lcn = LCN_ENOENT; in check_mft_mirror() 1183 if (rl2[i].vcn != rl[i].vcn || rl2[i].lcn != rl[i].lcn || in check_mft_mirror()
|
/fs/erofs/ |
D | zmap.c | 114 unsigned long lcn; member 155 unsigned long lcn) in legacy_load_cluster_from_disk() argument 163 lcn * sizeof(struct z_erofs_vle_decompressed_index); in legacy_load_cluster_from_disk() 172 m->lcn = lcn; in legacy_load_cluster_from_disk() 354 unsigned long lcn, bool lookahead) in compacted_load_cluster_from_disk() argument 367 if (lcn >= totalidx) in compacted_load_cluster_from_disk() 370 m->lcn = lcn; in compacted_load_cluster_from_disk() 382 if (lcn < compacted_4b_initial) { in compacted_load_cluster_from_disk() 387 lcn -= compacted_4b_initial; in compacted_load_cluster_from_disk() 389 if (lcn < compacted_2b) { in compacted_load_cluster_from_disk() [all …]
|