/fs/ntfs/ |
D | runlist.c | 74 static inline runlist_element *ntfs_rl_realloc(runlist_element *rl, in ntfs_rl_realloc() argument 79 old_size = PAGE_ALIGN(old_size * sizeof(*rl)); in ntfs_rl_realloc() 80 new_size = PAGE_ALIGN(new_size * sizeof(*rl)); in ntfs_rl_realloc() 82 return rl; in ntfs_rl_realloc() 88 if (likely(rl != NULL)) { in ntfs_rl_realloc() 91 memcpy(new_rl, rl, old_size); in ntfs_rl_realloc() 92 ntfs_free(rl); in ntfs_rl_realloc() 120 static inline runlist_element *ntfs_rl_realloc_nofail(runlist_element *rl, in ntfs_rl_realloc_nofail() argument 125 old_size = PAGE_ALIGN(old_size * sizeof(*rl)); in ntfs_rl_realloc_nofail() 126 new_size = PAGE_ALIGN(new_size * sizeof(*rl)); in ntfs_rl_realloc_nofail() [all …]
|
D | lcnalloc.c | 51 const runlist_element *rl) in ntfs_cluster_free_from_rl_nolock() argument 57 if (!rl) in ntfs_cluster_free_from_rl_nolock() 59 for (; rl->length; rl++) { in ntfs_cluster_free_from_rl_nolock() 62 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() 156 runlist_element *rl = NULL; in ntfs_cluster_alloc() local 334 if ((rlpos + 2) * sizeof(*rl) > rlsize) { in ntfs_cluster_alloc() 338 if (!rl) in ntfs_cluster_alloc() 350 memcpy(rl2, rl, rlsize); in ntfs_cluster_alloc() 351 ntfs_free(rl); in ntfs_cluster_alloc() [all …]
|
D | debug.c | 144 void ntfs_debug_dump_runlist(const runlist_element *rl) in ntfs_debug_dump_runlist() argument 153 if (!rl) { in ntfs_debug_dump_runlist() 159 LCN lcn = (rl + i)->lcn; in ntfs_debug_dump_runlist() 167 (long long)(rl + i)->vcn, lcn_str[index], in ntfs_debug_dump_runlist() 168 (long long)(rl + i)->length, in ntfs_debug_dump_runlist() 169 (rl + i)->length ? "" : in ntfs_debug_dump_runlist() 173 (long long)(rl + i)->vcn, in ntfs_debug_dump_runlist() 174 (long long)(rl + i)->lcn, in ntfs_debug_dump_runlist() 175 (long long)(rl + i)->length, in ntfs_debug_dump_runlist() 176 (rl + i)->length ? "" : in ntfs_debug_dump_runlist() [all …]
|
D | runlist.h | 55 runlist_element *rl; member 59 static inline void ntfs_init_runlist(runlist *rl) in ntfs_init_runlist() argument 61 rl->rl = NULL; in ntfs_init_runlist() 62 init_rwsem(&rl->lock); in ntfs_init_runlist() 79 extern LCN ntfs_rl_vcn_to_lcn(const runlist_element *rl, const VCN vcn); 83 extern runlist_element *ntfs_rl_find_vcn_nolock(runlist_element *rl, 87 const runlist_element *rl, const VCN first_vcn, 91 const int dst_len, const runlist_element *rl,
|
D | attrib.c | 90 runlist_element *rl; in ntfs_map_runlist_nolock() local 186 rl = ntfs_mapping_pairs_decompress(ni->vol, a, ni->runlist.rl); in ntfs_map_runlist_nolock() 187 if (IS_ERR(rl)) in ntfs_map_runlist_nolock() 188 err = PTR_ERR(rl); in ntfs_map_runlist_nolock() 190 ni->runlist.rl = rl; in ntfs_map_runlist_nolock() 303 if (likely(ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn) <= in ntfs_map_runlist() 353 if (!ni->runlist.rl) { in ntfs_attr_vcn_to_lcn_nolock() 363 lcn = ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn); in ntfs_attr_vcn_to_lcn_nolock() 377 if (unlikely(ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn) != in ntfs_attr_vcn_to_lcn_nolock() 467 runlist_element *rl; in ntfs_attr_find_vcn_nolock() local [all …]
|
D | logfile.c | 731 runlist_element *rl; in ntfs_empty_logfile() local 758 rl = log_ni->runlist.rl; in ntfs_empty_logfile() 759 if (unlikely(!rl || vcn < rl->vcn || !rl->length)) { in ntfs_empty_logfile() 767 rl = log_ni->runlist.rl; in ntfs_empty_logfile() 768 BUG_ON(!rl || vcn < rl->vcn || !rl->length); in ntfs_empty_logfile() 771 while (rl->length && vcn >= rl[1].vcn) in ntfs_empty_logfile() 772 rl++; in ntfs_empty_logfile() 782 lcn = rl->lcn; in ntfs_empty_logfile() 784 vcn = rl->vcn; in ntfs_empty_logfile() 788 if (unlikely(!rl->length || lcn < LCN_HOLE)) in ntfs_empty_logfile() [all …]
|
D | mft.c | 474 runlist_element *rl; in ntfs_sync_mft_mirror() local 520 rl = NULL; in ntfs_sync_mft_mirror() 544 if (!rl) { in ntfs_sync_mft_mirror() 547 rl = NTFS_I(vol->mftmirr_ino)->runlist.rl; in ntfs_sync_mft_mirror() 552 BUG_ON(!rl); in ntfs_sync_mft_mirror() 555 while (rl->length && rl[1].vcn <= vcn) in ntfs_sync_mft_mirror() 556 rl++; in ntfs_sync_mft_mirror() 557 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_sync_mft_mirror() 582 if (unlikely(rl)) in ntfs_sync_mft_mirror() 678 runlist_element *rl; in write_mft_record_nolock() local [all …]
|
D | aops.c | 193 runlist_element *rl; in ntfs_read_block() local 206 BUG_ON(!ni->runlist.rl && !ni->mft_no && !NInoAttr(ni)); in ntfs_read_block() 245 rl = NULL; in ntfs_read_block() 266 if (!rl) { in ntfs_read_block() 269 rl = ni->runlist.rl; in ntfs_read_block() 271 if (likely(rl != NULL)) { in ntfs_read_block() 273 while (rl->length && rl[1].vcn <= vcn) in ntfs_read_block() 274 rl++; in ntfs_read_block() 275 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_read_block() 306 rl = NULL; in ntfs_read_block() [all …]
|
D | lcnalloc.h | 114 const runlist_element *rl); 133 const runlist_element *rl) in ntfs_cluster_free_from_rl() argument 138 ret = ntfs_cluster_free_from_rl_nolock(vol, rl); in ntfs_cluster_free_from_rl()
|
D | compress.c | 489 runlist_element *rl; in ntfs_read_compressed_block() local 610 rl = NULL; in ntfs_read_compressed_block() 615 if (!rl) { in ntfs_read_compressed_block() 618 rl = ni->runlist.rl; in ntfs_read_compressed_block() 620 if (likely(rl != NULL)) { in ntfs_read_compressed_block() 622 while (rl->length && rl[1].vcn <= vcn) in ntfs_read_compressed_block() 623 rl++; in ntfs_read_compressed_block() 624 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_read_compressed_block() 661 if (rl) in ntfs_read_compressed_block()
|
D | file.c | 502 runlist_element *rl, *rl2; in ntfs_prepare_pages_for_non_resident_write() local 547 rl = NULL; in ntfs_prepare_pages_for_non_resident_write() 751 if (!rl) { in ntfs_prepare_pages_for_non_resident_write() 754 rl = ni->runlist.rl; in ntfs_prepare_pages_for_non_resident_write() 756 if (likely(rl != NULL)) { in ntfs_prepare_pages_for_non_resident_write() 758 while (rl->length && rl[1].vcn <= bh_cpos) in ntfs_prepare_pages_for_non_resident_write() 759 rl++; 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() 768 vcn_len = rl[1].vcn - vcn; in ntfs_prepare_pages_for_non_resident_write() 785 rl = NULL; in ntfs_prepare_pages_for_non_resident_write() [all …]
|
D | debug.h | 46 extern void ntfs_debug_dump_runlist(const runlist_element *rl); 51 #define ntfs_debug_dump_runlist(rl) do {} while (0) argument
|
D | inode.c | 740 ni->attr_list_rl.rl = ntfs_mapping_pairs_decompress(vol, in ntfs_read_locked_inode() 742 if (IS_ERR(ni->attr_list_rl.rl)) { in ntfs_read_locked_inode() 743 err = PTR_ERR(ni->attr_list_rl.rl); in ntfs_read_locked_inode() 744 ni->attr_list_rl.rl = NULL; in ntfs_read_locked_inode() 1913 ni->attr_list_rl.rl = ntfs_mapping_pairs_decompress(vol, in ntfs_read_inode_mount() 1915 if (IS_ERR(ni->attr_list_rl.rl)) { in ntfs_read_inode_mount() 1916 err = PTR_ERR(ni->attr_list_rl.rl); in ntfs_read_inode_mount() 1917 ni->attr_list_rl.rl = NULL; in ntfs_read_inode_mount() 2045 nrl = ntfs_mapping_pairs_decompress(vol, a, ni->runlist.rl); in ntfs_read_inode_mount() 2052 ni->runlist.rl = nrl; in ntfs_read_inode_mount() [all …]
|
D | attrib.h | 78 extern int load_attribute_list(ntfs_volume *vol, runlist *rl, u8 *al_start,
|
D | super.c | 1063 runlist_element *rl, rl2[2]; in check_mft_mirror() local 1163 rl = mirr_ni->runlist.rl; in check_mft_mirror() 1167 if (rl2[i].vcn != rl[i].vcn || rl2[i].lcn != rl[i].lcn || in check_mft_mirror() 1168 rl2[i].length != rl[i].length) { in check_mft_mirror()
|
/fs/dlm/ |
D | rcom.c | 309 struct rcom_lock *rl) in pack_rcom_lock() argument 311 memset(rl, 0, sizeof(*rl)); in pack_rcom_lock() 313 rl->rl_ownpid = cpu_to_le32(lkb->lkb_ownpid); in pack_rcom_lock() 314 rl->rl_lkid = cpu_to_le32(lkb->lkb_id); in pack_rcom_lock() 315 rl->rl_exflags = cpu_to_le32(lkb->lkb_exflags); in pack_rcom_lock() 316 rl->rl_flags = cpu_to_le32(lkb->lkb_flags); in pack_rcom_lock() 317 rl->rl_lvbseq = cpu_to_le32(lkb->lkb_lvbseq); in pack_rcom_lock() 318 rl->rl_rqmode = lkb->lkb_rqmode; in pack_rcom_lock() 319 rl->rl_grmode = lkb->lkb_grmode; in pack_rcom_lock() 320 rl->rl_status = lkb->lkb_status; in pack_rcom_lock() [all …]
|
D | lock.c | 4297 struct rcom_lock *rl = (struct rcom_lock *) rc->rc_buf; in receive_rcom_lock_args() local 4300 lkb->lkb_ownpid = le32_to_cpu(rl->rl_ownpid); in receive_rcom_lock_args() 4301 lkb->lkb_remid = le32_to_cpu(rl->rl_lkid); in receive_rcom_lock_args() 4302 lkb->lkb_exflags = le32_to_cpu(rl->rl_exflags); in receive_rcom_lock_args() 4303 lkb->lkb_flags = le32_to_cpu(rl->rl_flags) & 0x0000FFFF; in receive_rcom_lock_args() 4305 lkb->lkb_lvbseq = le32_to_cpu(rl->rl_lvbseq); in receive_rcom_lock_args() 4306 lkb->lkb_rqmode = rl->rl_rqmode; in receive_rcom_lock_args() 4307 lkb->lkb_grmode = rl->rl_grmode; in receive_rcom_lock_args() 4310 lkb->lkb_bastfn = (rl->rl_asts & AST_BAST) ? &fake_bastfn : NULL; in receive_rcom_lock_args() 4311 lkb->lkb_astfn = (rl->rl_asts & AST_COMP) ? &fake_astfn : NULL; in receive_rcom_lock_args() [all …]
|
/fs/cifs/ |
D | smbdes.c | 202 char *rl; in dohash() local 217 rl = pd1 + 64; in dohash() 296 concat(rl, r, l, 32, 32); in dohash() 298 permute(out, rl, perm6, 64); in dohash()
|
/fs/qnx4/ |
D | inode.c | 309 int rd, rl; in qnx4_checkroot() local 318 rl = le32_to_cpu(qnx4_sb(sb)->sb->RootDir.di_first_xtnt.xtnt_size); in qnx4_checkroot() 319 for (j = 0; j < rl; j++) { in qnx4_checkroot()
|
/fs/ |
D | binfmt_flat.c | 370 void old_reloc(unsigned long rl) in old_reloc() argument 378 r.value = rl; in old_reloc()
|