Home
last modified time | relevance | path

Searched refs:rl (Results 1 – 21 of 21) sorted by relevance

/fs/ntfs/
Drunlist.c74 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 …]
Dlcnalloc.c51 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 …]
Ddebug.c134 void ntfs_debug_dump_runlist(const runlist_element *rl) in ntfs_debug_dump_runlist() argument
143 if (!rl) { in ntfs_debug_dump_runlist()
149 LCN lcn = (rl + i)->lcn; in ntfs_debug_dump_runlist()
157 (long long)(rl + i)->vcn, lcn_str[index], in ntfs_debug_dump_runlist()
158 (long long)(rl + i)->length, in ntfs_debug_dump_runlist()
159 (rl + i)->length ? "" : in ntfs_debug_dump_runlist()
163 (long long)(rl + i)->vcn, in ntfs_debug_dump_runlist()
164 (long long)(rl + i)->lcn, in ntfs_debug_dump_runlist()
165 (long long)(rl + i)->length, in ntfs_debug_dump_runlist()
166 (rl + i)->length ? "" : in ntfs_debug_dump_runlist()
[all …]
Dattrib.c91 runlist_element *rl; in ntfs_map_runlist_nolock() local
187 rl = ntfs_mapping_pairs_decompress(ni->vol, a, ni->runlist.rl); in ntfs_map_runlist_nolock()
188 if (IS_ERR(rl)) in ntfs_map_runlist_nolock()
189 err = PTR_ERR(rl); in ntfs_map_runlist_nolock()
191 ni->runlist.rl = rl; in ntfs_map_runlist_nolock()
304 if (likely(ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn) <= in ntfs_map_runlist()
354 if (!ni->runlist.rl) { in ntfs_attr_vcn_to_lcn_nolock()
364 lcn = ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn); in ntfs_attr_vcn_to_lcn_nolock()
378 if (unlikely(ntfs_rl_vcn_to_lcn(ni->runlist.rl, vcn) != in ntfs_attr_vcn_to_lcn_nolock()
468 runlist_element *rl; in ntfs_attr_find_vcn_nolock() local
[all …]
Drunlist.h55 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,
Dmft.c474 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 …]
Dlogfile.c732 runlist_element *rl; in ntfs_empty_logfile() local
759 rl = log_ni->runlist.rl; in ntfs_empty_logfile()
760 if (unlikely(!rl || vcn < rl->vcn || !rl->length)) { in ntfs_empty_logfile()
768 rl = log_ni->runlist.rl; in ntfs_empty_logfile()
769 BUG_ON(!rl || vcn < rl->vcn || !rl->length); in ntfs_empty_logfile()
772 while (rl->length && vcn >= rl[1].vcn) in ntfs_empty_logfile()
773 rl++; in ntfs_empty_logfile()
783 lcn = rl->lcn; in ntfs_empty_logfile()
785 vcn = rl->vcn; in ntfs_empty_logfile()
789 if (unlikely(!rl->length || lcn < LCN_HOLE)) in ntfs_empty_logfile()
[all …]
Daops.c193 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 …]
Dfile.c595 runlist_element *rl, *rl2; in ntfs_prepare_pages_for_non_resident_write() local
640 rl = NULL; in ntfs_prepare_pages_for_non_resident_write()
844 if (!rl) { in ntfs_prepare_pages_for_non_resident_write()
847 rl = ni->runlist.rl; in ntfs_prepare_pages_for_non_resident_write()
849 if (likely(rl != NULL)) { in ntfs_prepare_pages_for_non_resident_write()
851 while (rl->length && rl[1].vcn <= bh_cpos) in ntfs_prepare_pages_for_non_resident_write()
852 rl++; in ntfs_prepare_pages_for_non_resident_write()
853 lcn = ntfs_rl_vcn_to_lcn(rl, bh_cpos); in ntfs_prepare_pages_for_non_resident_write()
861 vcn_len = rl[1].vcn - vcn; in ntfs_prepare_pages_for_non_resident_write()
878 rl = NULL; in ntfs_prepare_pages_for_non_resident_write()
[all …]
Dcompress.c490 runlist_element *rl; in ntfs_read_compressed_block() local
611 rl = NULL; in ntfs_read_compressed_block()
616 if (!rl) { in ntfs_read_compressed_block()
619 rl = ni->runlist.rl; in ntfs_read_compressed_block()
621 if (likely(rl != NULL)) { in ntfs_read_compressed_block()
623 while (rl->length && rl[1].vcn <= vcn) in ntfs_read_compressed_block()
624 rl++; in ntfs_read_compressed_block()
625 lcn = ntfs_rl_vcn_to_lcn(rl, vcn); in ntfs_read_compressed_block()
662 if (rl) in ntfs_read_compressed_block()
Dlcnalloc.h114 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()
Ddebug.h47 extern void ntfs_debug_dump_runlist(const runlist_element *rl);
57 #define ntfs_debug_dump_runlist(rl) do {} while (0) argument
Dinode.c753 ni->attr_list_rl.rl = ntfs_mapping_pairs_decompress(vol, in ntfs_read_locked_inode()
755 if (IS_ERR(ni->attr_list_rl.rl)) { in ntfs_read_locked_inode()
756 err = PTR_ERR(ni->attr_list_rl.rl); in ntfs_read_locked_inode()
757 ni->attr_list_rl.rl = NULL; in ntfs_read_locked_inode()
1933 ni->attr_list_rl.rl = ntfs_mapping_pairs_decompress(vol, in ntfs_read_inode_mount()
1935 if (IS_ERR(ni->attr_list_rl.rl)) { in ntfs_read_inode_mount()
1936 err = PTR_ERR(ni->attr_list_rl.rl); in ntfs_read_inode_mount()
1937 ni->attr_list_rl.rl = NULL; in ntfs_read_inode_mount()
2064 nrl = ntfs_mapping_pairs_decompress(vol, a, ni->runlist.rl); in ntfs_read_inode_mount()
2071 ni->runlist.rl = nrl; in ntfs_read_inode_mount()
[all …]
Dattrib.h78 extern int load_attribute_list(ntfs_volume *vol, runlist *rl, u8 *al_start,
Dsuper.c1093 runlist_element *rl, rl2[2]; in check_mft_mirror() local
1193 rl = mirr_ni->runlist.rl; in check_mft_mirror()
1197 if (rl2[i].vcn != rl[i].vcn || rl2[i].lcn != rl[i].lcn || in check_mft_mirror()
1198 rl2[i].length != rl[i].length) { in check_mft_mirror()
/fs/dlm/
Drcom.c388 struct rcom_lock *rl) in pack_rcom_lock() argument
390 memset(rl, 0, sizeof(*rl)); in pack_rcom_lock()
392 rl->rl_ownpid = cpu_to_le32(lkb->lkb_ownpid); in pack_rcom_lock()
393 rl->rl_lkid = cpu_to_le32(lkb->lkb_id); in pack_rcom_lock()
394 rl->rl_exflags = cpu_to_le32(lkb->lkb_exflags); in pack_rcom_lock()
395 rl->rl_flags = cpu_to_le32(lkb->lkb_flags); in pack_rcom_lock()
396 rl->rl_lvbseq = cpu_to_le32(lkb->lkb_lvbseq); in pack_rcom_lock()
397 rl->rl_rqmode = lkb->lkb_rqmode; in pack_rcom_lock()
398 rl->rl_grmode = lkb->lkb_grmode; in pack_rcom_lock()
399 rl->rl_status = lkb->lkb_status; in pack_rcom_lock()
[all …]
Dlock.c5589 struct rcom_lock *rl = (struct rcom_lock *) rc->rc_buf; in receive_rcom_lock_args() local
5592 lkb->lkb_ownpid = le32_to_cpu(rl->rl_ownpid); in receive_rcom_lock_args()
5593 lkb->lkb_remid = le32_to_cpu(rl->rl_lkid); in receive_rcom_lock_args()
5594 lkb->lkb_exflags = le32_to_cpu(rl->rl_exflags); in receive_rcom_lock_args()
5595 lkb->lkb_flags = le32_to_cpu(rl->rl_flags) & 0x0000FFFF; in receive_rcom_lock_args()
5597 lkb->lkb_lvbseq = le32_to_cpu(rl->rl_lvbseq); in receive_rcom_lock_args()
5598 lkb->lkb_rqmode = rl->rl_rqmode; in receive_rcom_lock_args()
5599 lkb->lkb_grmode = rl->rl_grmode; in receive_rcom_lock_args()
5602 lkb->lkb_bastfn = (rl->rl_asts & DLM_CB_BAST) ? &fake_bastfn : NULL; in receive_rcom_lock_args()
5603 lkb->lkb_astfn = (rl->rl_asts & DLM_CB_CAST) ? &fake_astfn : NULL; in receive_rcom_lock_args()
[all …]
/fs/ocfs2/
Drefcounttree.c1249 struct ocfs2_refcount_list *rl = &rb->rf_records; in ocfs2_change_refcount_rec() local
1250 struct ocfs2_refcount_rec *rec = &rl->rl_recs[index]; in ocfs2_change_refcount_rec()
1265 if (index != le16_to_cpu(rl->rl_used) - 1) { in ocfs2_change_refcount_rec()
1267 (le16_to_cpu(rl->rl_used) - index - 1) * in ocfs2_change_refcount_rec()
1269 memset(&rl->rl_recs[le16_to_cpu(rl->rl_used) - 1], in ocfs2_change_refcount_rec()
1273 le16_add_cpu(&rl->rl_used, -1); in ocfs2_change_refcount_rec()
1419 static int ocfs2_find_refcount_split_pos(struct ocfs2_refcount_list *rl, in ocfs2_find_refcount_split_pos() argument
1422 int num_used = le16_to_cpu(rl->rl_used); in ocfs2_find_refcount_split_pos()
1428 &rl->rl_recs[middle - delta - 1], in ocfs2_find_refcount_split_pos()
1429 &rl->rl_recs[middle - delta])) { in ocfs2_find_refcount_split_pos()
[all …]
/fs/qnx4/
Dinode.c155 int rd, rl; in qnx4_checkroot() local
162 rl = le32_to_cpu(s->RootDir.di_first_xtnt.xtnt_size); in qnx4_checkroot()
163 for (j = 0; j < rl; j++) { in qnx4_checkroot()
/fs/
Dbinfmt_flat.c383 static void old_reloc(unsigned long rl) in old_reloc() argument
391 r.value = rl; in old_reloc()
/fs/f2fs/
Df2fs.h1366 struct request_list *rl = &q->root_rl; in is_idle() local
1368 if (rl->count[BLK_RW_SYNC] || rl->count[BLK_RW_ASYNC]) in is_idle()