/fs/ubifs/ |
D | find.c | 237 const struct ubifs_lprops *lp = NULL, *idx_lp = NULL; in ubifs_find_dirty_leb() local 264 lp = ubifs_fast_find_empty(c); in ubifs_find_dirty_leb() 265 if (lp) in ubifs_find_dirty_leb() 269 lp = ubifs_fast_find_freeable(c); in ubifs_find_dirty_leb() 270 if (lp) in ubifs_find_dirty_leb() 305 lp = heap->arr[0]; in ubifs_find_dirty_leb() 306 if (lp->dirty + lp->free < min_space) in ubifs_find_dirty_leb() 307 lp = NULL; in ubifs_find_dirty_leb() 311 if (idx_lp && lp) { in ubifs_find_dirty_leb() 312 if (idx_lp->free + idx_lp->dirty >= lp->free + lp->dirty) in ubifs_find_dirty_leb() [all …]
|
D | gc.c | 469 int ubifs_garbage_collect_leb(struct ubifs_info *c, struct ubifs_lprops *lp) in ubifs_garbage_collect_leb() argument 474 int err = 0, lnum = lp->lnum; in ubifs_garbage_collect_leb() 481 if (lp->free + lp->dirty == c->leb_size) { in ubifs_garbage_collect_leb() 483 dbg_gc("LEB %d is free, return it", lp->lnum); in ubifs_garbage_collect_leb() 484 ubifs_assert(!(lp->flags & LPROPS_INDEX)); in ubifs_garbage_collect_leb() 486 if (lp->free != c->leb_size) { in ubifs_garbage_collect_leb() 495 err = ubifs_change_one_lp(c, lp->lnum, c->leb_size, in ubifs_garbage_collect_leb() 500 err = ubifs_leb_unmap(c, lp->lnum); in ubifs_garbage_collect_leb() 527 lnum, lp->free, lp->dirty); in ubifs_garbage_collect_leb() 563 lnum, lp->free, lp->dirty); in ubifs_garbage_collect_leb() [all …]
|
D | lprops.c | 197 struct ubifs_lprops *lp; in add_to_lpt_heap() local 199 lp = heap->arr[cpos]; in add_to_lpt_heap() 200 lp->flags &= ~LPROPS_CAT_MASK; in add_to_lpt_heap() 201 lp->flags |= LPROPS_UNCAT; in add_to_lpt_heap() 202 list_add(&lp->list, &c->uncat_list); in add_to_lpt_heap() 535 const struct ubifs_lprops *lp, in ubifs_change_lp() argument 543 struct ubifs_lprops *lprops = (struct ubifs_lprops *)lp; in ubifs_change_lp() 667 const struct ubifs_lprops *lp; in ubifs_change_one_lp() local 671 lp = ubifs_lpt_lookup_dirty(c, lnum); in ubifs_change_one_lp() 672 if (IS_ERR(lp)) { in ubifs_change_one_lp() [all …]
|
D | replay.c | 99 const struct ubifs_lprops *lp; in set_bud_lprops() local 104 lp = ubifs_lpt_lookup_dirty(c, b->bud->lnum); in set_bud_lprops() 105 if (IS_ERR(lp)) { in set_bud_lprops() 106 err = PTR_ERR(lp); in set_bud_lprops() 110 dirty = lp->dirty; in set_bud_lprops() 111 if (b->bud->start == 0 && (lp->free != c->leb_size || lp->dirty != 0)) { in set_bud_lprops() 132 lp->free, lp->dirty); in set_bud_lprops() 134 lp->free, lp->dirty); in set_bud_lprops() 135 dirty -= c->leb_size - lp->free; in set_bud_lprops() 145 b->bud->lnum, lp->free, lp->dirty, b->free, in set_bud_lprops() [all …]
|
D | debug.c | 645 void ubifs_dump_lprop(const struct ubifs_info *c, const struct ubifs_lprops *lp) in ubifs_dump_lprop() argument 651 spc = lp->free + lp->dirty; in ubifs_dump_lprop() 657 if (lp->flags & LPROPS_INDEX) in ubifs_dump_lprop() 659 lp->lnum, lp->free, lp->dirty, c->leb_size - spc, spc, in ubifs_dump_lprop() 660 lp->flags); in ubifs_dump_lprop() 663 lp->lnum, lp->free, lp->dirty, c->leb_size - spc, spc, in ubifs_dump_lprop() 664 dark, dead, (int)(spc / UBIFS_MAX_NODE_SZ), lp->flags); in ubifs_dump_lprop() 666 if (lp->flags & LPROPS_TAKEN) { in ubifs_dump_lprop() 667 if (lp->flags & LPROPS_INDEX) in ubifs_dump_lprop() 674 if (lp->flags & LPROPS_INDEX) { in ubifs_dump_lprop() [all …]
|
D | recovery.c | 1180 struct ubifs_lprops lp; in ubifs_rcvry_gc_commit() local 1189 err = ubifs_find_dirty_leb(c, &lp, wbuf->offs, 2); in ubifs_rcvry_gc_commit() 1198 ubifs_assert(!(lp.flags & LPROPS_INDEX)); in ubifs_rcvry_gc_commit() 1199 ubifs_assert(lp.free + lp.dirty >= wbuf->offs); in ubifs_rcvry_gc_commit() 1210 dbg_rcvry("GC'ing LEB %d", lp.lnum); in ubifs_rcvry_gc_commit() 1212 err = ubifs_garbage_collect_leb(c, &lp); in ubifs_rcvry_gc_commit() 1235 dbg_rcvry("allocated LEB %d for GC", lp.lnum); in ubifs_rcvry_gc_commit()
|
D | tnc_commit.c | 300 struct ubifs_lprops lp; in layout_leb_in_gaps() local 303 err = ubifs_read_one_lp(c, lnum, &lp); in layout_leb_in_gaps() 306 if (lp.free == c->leb_size) { in layout_leb_in_gaps()
|
D | ubifs.h | 1659 int ubifs_garbage_collect_leb(struct ubifs_info *c, struct ubifs_lprops *lp); 1708 const struct ubifs_lprops *lp, 1723 int ubifs_read_one_lp(struct ubifs_info *c, int lnum, struct ubifs_lprops *lp);
|
D | debug.h | 260 const struct ubifs_lprops *lp);
|
D | lpt.c | 2106 struct ubifs_lprops *lp, *lprops = &pnode->lprops[i]; in dbg_chk_pnode() local 2181 list_for_each_entry(lp, list, list) in dbg_chk_pnode() 2182 if (lprops == lp) { in dbg_chk_pnode()
|
/fs/jfs/ |
D | jfs_logmgr.c | 362 struct logpage *lp; /* dst log page */ in lmWriteRecord() local 381 lp = (struct logpage *) bp->l_ldata; in lmWriteRecord() 432 lp = (struct logpage *) bp->l_ldata; in lmWriteRecord() 445 dst = (caddr_t) lp + dstoffset; in lmWriteRecord() 457 lp = (struct logpage *) bp->l_ldata; in lmWriteRecord() 468 lvd = (struct lvd *) ((caddr_t) lp + dstoffset); in lmWriteRecord() 493 dst = (caddr_t) lp + dstoffset; in lmWriteRecord() 553 lp = (struct logpage *) bp->l_ldata; in lmWriteRecord() 575 struct logpage *lp; in lmNextPage() local 585 lp = (struct logpage *) bp->l_ldata; in lmNextPage() [all …]
|
D | jfs_dmap.c | 2914 int lp, pp, k; in dbAdjTree() local 2919 lp = leafno + le32_to_cpu(tp->dmt_leafidx); in dbAdjTree() 2924 if (tp->dmt_stree[lp] == newval) in dbAdjTree() 2929 tp->dmt_stree[lp] = newval; in dbAdjTree() 2937 lp = ((lp - 1) & ~0x03) + 1; in dbAdjTree() 2941 pp = (lp - 1) >> 2; in dbAdjTree() 2945 max = TREEMAX(&tp->dmt_stree[lp]); in dbAdjTree() 2959 lp = pp; in dbAdjTree()
|
D | jfs_dtree.c | 182 static int ciGetLeafPrefixKey(dtpage_t * lp, int li, dtpage_t * rp, 941 dtpage_t *lp; /* left child page */ in dtSplitUp() local 1132 lp = sp; in dtSplitUp() 1186 rc = ciGetLeafPrefixKey(lp, in dtSplitUp() 1187 lp->header.nextindex-1, in dtSplitUp() 2450 dtpage_t *p, *pp, *rp = 0, *lp= 0; in dtRelocate() local 2510 DT_GETPAGE(ip, prevbn, lmp, PSIZE, lp, rc); in dtRelocate() 2535 lp->header.next = cpu_to_le64(nxaddr); in dtRelocate() 3767 static int ciGetLeafPrefixKey(dtpage_t * lp, int li, dtpage_t * rp, in ciGetLeafPrefixKey() argument 3788 dtGetKey(lp, li, &lkey, flag); in ciGetLeafPrefixKey()
|
D | jfs_xtree.c | 2569 xtpage_t *p, *pp, *rp, *lp; /* base B+-tree index page */ in xtRelocate() local 2743 XT_GETPAGE(ip, prevbn, lmp, PSIZE, lp, rc); in xtRelocate() 2761 lp->header.next = cpu_to_le64(nxaddr); in xtRelocate()
|
/fs/xfs/ |
D | xfs_dir2_format.h | 523 xfs_dir3_leaf_hdr_size(struct xfs_dir2_leaf *lp) in xfs_dir3_leaf_hdr_size() argument 525 if (lp->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) || in xfs_dir3_leaf_hdr_size() 526 lp->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) in xfs_dir3_leaf_hdr_size() 532 xfs_dir3_max_leaf_ents(struct xfs_mount *mp, struct xfs_dir2_leaf *lp) in xfs_dir3_max_leaf_ents() argument 534 return (mp->m_dirblksize - xfs_dir3_leaf_hdr_size(lp)) / in xfs_dir3_max_leaf_ents() 542 xfs_dir3_leaf_ents_p(struct xfs_dir2_leaf *lp) in xfs_dir3_leaf_ents_p() argument 544 if (lp->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAF1_MAGIC) || in xfs_dir3_leaf_ents_p() 545 lp->hdr.info.magic == cpu_to_be16(XFS_DIR3_LEAFN_MAGIC)) { in xfs_dir3_leaf_ents_p() 546 struct xfs_dir3_leaf *lp3 = (struct xfs_dir3_leaf *)lp; in xfs_dir3_leaf_ents_p() 549 return lp->__ents; in xfs_dir3_leaf_ents_p() [all …]
|
D | xfs_dquot_item.c | 256 struct xfs_dq_logitem *lp = &dqp->q_logitem; in xfs_qm_dquot_logitem_init() local 258 xfs_log_item_init(dqp->q_mount, &lp->qli_item, XFS_LI_DQUOT, in xfs_qm_dquot_logitem_init() 260 lp->qli_dquot = dqp; in xfs_qm_dquot_logitem_init() 261 lp->qli_format.qlf_type = XFS_LI_DQUOT; in xfs_qm_dquot_logitem_init() 262 lp->qli_format.qlf_id = be32_to_cpu(dqp->q_core.d_id); in xfs_qm_dquot_logitem_init() 263 lp->qli_format.qlf_blkno = dqp->q_blkno; in xfs_qm_dquot_logitem_init() 264 lp->qli_format.qlf_len = 1; in xfs_qm_dquot_logitem_init() 272 lp->qli_format.qlf_boffset = (__uint32_t)dqp->q_bufoffset; in xfs_qm_dquot_logitem_init()
|
D | xfs_vnodeops.c | 715 xfs_log_item_t *lp; in xfs_lock_inodes() local 737 lp = (xfs_log_item_t *)ips[j]->i_itemp; in xfs_lock_inodes() 738 if (lp && (lp->li_flags & XFS_LI_IN_AIL)) { in xfs_lock_inodes() 822 xfs_log_item_t *lp; in xfs_lock_two_inodes() local 842 lp = (xfs_log_item_t *)ip0->i_itemp; in xfs_lock_two_inodes() 843 if (lp && (lp->li_flags & XFS_LI_IN_AIL)) { in xfs_lock_two_inodes()
|
D | xfs_attr_leaf.c | 3212 struct xfs_attr_inactive_list *lp; in xfs_attr3_leaf_inactive() local 3253 lp = list; in xfs_attr3_leaf_inactive() 3260 lp->valueblk = be32_to_cpu(name_rmt->valueblk); in xfs_attr3_leaf_inactive() 3261 lp->valuelen = xfs_attr3_rmt_blocks(dp->i_mount, in xfs_attr3_leaf_inactive() 3263 lp++; in xfs_attr3_leaf_inactive() 3273 for (lp = list, i = 0; i < count; i++, lp++) { in xfs_attr3_leaf_inactive() 3275 lp->valueblk, lp->valuelen); in xfs_attr3_leaf_inactive()
|
D | xfs_log_recover.c | 3140 xfs_caddr_t lp; in xlog_recover_process_data() local 3149 lp = dp + be32_to_cpu(rhead->h_len); in xlog_recover_process_data() 3156 while ((dp < lp) && num_logops) { in xlog_recover_process_data() 3157 ASSERT(dp + sizeof(xlog_op_header_t) <= lp); in xlog_recover_process_data() 3175 if (dp + be32_to_cpu(ohead->oh_len) > lp) { in xlog_recover_process_data()
|
/fs/gfs2/ |
D | dir.c | 877 __be64 *lp; in dir_make_exhash() local 934 lp = (__be64 *)(dibh->b_data + sizeof(struct gfs2_dinode)); in dir_make_exhash() 936 for (x = sdp->sd_hash_ptrs; x--; lp++) in dir_make_exhash() 937 *lp = cpu_to_be64(bn); in dir_make_exhash() 970 __be64 *lp; in dir_split_leaf() local 1015 lp = kmalloc(half_len * sizeof(__be64), GFP_NOFS); in dir_split_leaf() 1016 if (!lp) { in dir_split_leaf() 1023 lp[x] = cpu_to_be64(bn); in dir_split_leaf() 1027 error = gfs2_dir_write_data(dip, (char *)lp, start * sizeof(u64), in dir_split_leaf() 1035 kfree(lp); in dir_split_leaf() [all …]
|
/fs/nfs/ |
D | pnfs.c | 1010 struct pnfs_layout_segment *lp; in pnfs_layout_insert_lseg() local 1014 list_for_each_entry(lp, &lo->plh_segs, pls_list) { in pnfs_layout_insert_lseg() 1015 if (cmp_layout(&lseg->pls_range, &lp->pls_range) > 0) in pnfs_layout_insert_lseg() 1017 list_add_tail(&lseg->pls_list, &lp->pls_list); in pnfs_layout_insert_lseg() 1023 lp, lp->pls_range.iomode, lp->pls_range.offset, in pnfs_layout_insert_lseg() 1024 lp->pls_range.length); in pnfs_layout_insert_lseg()
|