/linux-2.4.37.9/fs/xfs/ ! |
D | xfs_dir2_data.c | 95 ASSERT(INT_GET(d->hdr.magic, ARCH_CONVERT) == XFS_DIR2_DATA_MAGIC || in xfs_dir2_data_check() 96 INT_GET(d->hdr.magic, ARCH_CONVERT) == XFS_DIR2_BLOCK_MAGIC); in xfs_dir2_data_check() 99 if (INT_GET(d->hdr.magic, ARCH_CONVERT) == XFS_DIR2_BLOCK_MAGIC) { in xfs_dir2_data_check() 101 lep = XFS_DIR2_BLOCK_LEAF_P_ARCH(btp, ARCH_CONVERT); in xfs_dir2_data_check() 109 if (INT_ISZERO(bf[0].length, ARCH_CONVERT)) { in xfs_dir2_data_check() 110 ASSERT(INT_ISZERO(bf[0].offset, ARCH_CONVERT)); in xfs_dir2_data_check() 113 if (INT_ISZERO(bf[1].length, ARCH_CONVERT)) { in xfs_dir2_data_check() 114 ASSERT(INT_ISZERO(bf[1].offset, ARCH_CONVERT)); in xfs_dir2_data_check() 117 if (INT_ISZERO(bf[2].length, ARCH_CONVERT)) { in xfs_dir2_data_check() 118 ASSERT(INT_ISZERO(bf[2].offset, ARCH_CONVERT)); in xfs_dir2_data_check() [all …]
|
D | xfs_dir_leaf.c | 163 XFS_DIR_SF_PUT_DIRINO_ARCH(&parent, &hdr->parent, ARCH_CONVERT); in xfs_dir_shortform_create() 165 INT_ZERO(hdr->count, ARCH_CONVERT); in xfs_dir_shortform_create() 197 for (i = INT_GET(sf->hdr.count, ARCH_CONVERT)-1; i >= 0; i--) { in xfs_dir_shortform_addname() 211 XFS_DIR_SF_PUT_DIRINO_ARCH(&args->inumber, &sfe->inumber, ARCH_CONVERT); in xfs_dir_shortform_addname() 214 INT_MOD(sf->hdr.count, ARCH_CONVERT, +1); in xfs_dir_shortform_addname() 248 for (i = INT_GET(sf->hdr.count, ARCH_CONVERT)-1; i >= 0; i--) { in xfs_dir_shortform_removename() 266 INT_MOD(sf->hdr.count, ARCH_CONVERT, -1); in xfs_dir_shortform_removename() 301 XFS_DIR_SF_GET_DIRINO_ARCH(&sf->hdr.parent, &args->inumber, ARCH_CONVERT); in xfs_dir_shortform_lookup() 309 for (i = INT_GET(sf->hdr.count, ARCH_CONVERT)-1; i >= 0; i--) { in xfs_dir_shortform_lookup() 313 XFS_DIR_SF_GET_DIRINO_ARCH(&sfe->inumber, &args->inumber, ARCH_CONVERT); in xfs_dir_shortform_lookup() [all …]
|
D | xfs_attr_leaf.c | 132 INT_ZERO(hdr->count, ARCH_CONVERT); in xfs_attr_shortform_create() 133 INT_SET(hdr->totsize, ARCH_CONVERT, sizeof(*hdr)); in xfs_attr_shortform_create() 156 for (i = 0; i < INT_GET(sf->hdr.count, ARCH_CONVERT); in xfs_attr_shortform_add() 178 INT_SET(sfe->valuelen, ARCH_CONVERT, args->valuelen); in xfs_attr_shortform_add() 183 INT_MOD(sf->hdr.count, ARCH_CONVERT, 1); in xfs_attr_shortform_add() 184 INT_MOD(sf->hdr.totsize, ARCH_CONVERT, size); in xfs_attr_shortform_add() 208 for (i = 0; i < INT_GET(sf->hdr.count, ARCH_CONVERT); in xfs_attr_shortform_remove() 224 if (i == INT_GET(sf->hdr.count, ARCH_CONVERT)) in xfs_attr_shortform_remove() 228 totsize = INT_GET(sf->hdr.totsize, ARCH_CONVERT); in xfs_attr_shortform_remove() 233 INT_MOD(sf->hdr.count, ARCH_CONVERT, -1); in xfs_attr_shortform_remove() [all …]
|
D | xfs_dir2_block.c | 125 if (unlikely(INT_GET(block->hdr.magic, ARCH_CONVERT) in xfs_dir2_block_addname() 138 blp = XFS_DIR2_BLOCK_LEAF_P_ARCH(btp, ARCH_CONVERT); in xfs_dir2_block_addname() 142 if (INT_ISZERO(btp->stale, ARCH_CONVERT)) { in xfs_dir2_block_addname() 150 enddup = (xfs_dir2_data_unused_t *)((char *)block + INT_GET(*tagp, ARCH_CONVERT)); in xfs_dir2_block_addname() 156 if (INT_GET(enddup->freetag, ARCH_CONVERT) != XFS_DIR2_DATA_FREE_TAG) in xfs_dir2_block_addname() 163 ((char *)block + INT_GET(bf[0].offset, ARCH_CONVERT)); in xfs_dir2_block_addname() 169 if (INT_GET(dup->length, ARCH_CONVERT) < len + (uint)sizeof(*blp)) { in xfs_dir2_block_addname() 174 if (INT_GET(bf[1].length, ARCH_CONVERT) >= len) in xfs_dir2_block_addname() 177 INT_GET(bf[1].offset, ARCH_CONVERT)); in xfs_dir2_block_addname() 186 if (INT_GET(dup->length, ARCH_CONVERT) < len) { in xfs_dir2_block_addname() [all …]
|
D | xfs_dir2_node.c | 101 ASSERT(INT_GET(free->hdr.magic, ARCH_CONVERT) == XFS_DIR2_FREE_MAGIC); in xfs_dir2_free_log_bests() 119 ASSERT(INT_GET(free->hdr.magic, ARCH_CONVERT) == XFS_DIR2_FREE_MAGIC); in xfs_dir2_free_log_header() 174 INT_SET(free->hdr.magic, ARCH_CONVERT, XFS_DIR2_FREE_MAGIC); in xfs_dir2_leaf_to_node() 175 INT_ZERO(free->hdr.firstdb, ARCH_CONVERT); in xfs_dir2_leaf_to_node() 176 ASSERT(INT_GET(ltp->bestcount, ARCH_CONVERT) <= (uint)dp->i_d.di_size / mp->m_dirblksize); in xfs_dir2_leaf_to_node() 177 INT_COPY(free->hdr.nvalid, ltp->bestcount, ARCH_CONVERT); in xfs_dir2_leaf_to_node() 182 for (i = n = 0, from = XFS_DIR2_LEAF_BESTS_P_ARCH(ltp, ARCH_CONVERT), to = free->bests; in xfs_dir2_leaf_to_node() 183 i < INT_GET(ltp->bestcount, ARCH_CONVERT); i++, from++, to++) { in xfs_dir2_leaf_to_node() 184 if ((off = INT_GET(*from, ARCH_CONVERT)) != NULLDATAOFF) in xfs_dir2_leaf_to_node() 186 INT_SET(*to, ARCH_CONVERT, off); in xfs_dir2_leaf_to_node() [all …]
|
D | xfs_alloc_btree.c | 132 if (ptr > INT_GET(block->bb_numrecs, ARCH_CONVERT)) { in xfs_alloc_delrec() 146 for (i = ptr; i < INT_GET(block->bb_numrecs, ARCH_CONVERT); i++) { in xfs_alloc_delrec() 147 if ((error = xfs_btree_check_sptr(cur, INT_GET(lpp[i], ARCH_CONVERT), level))) in xfs_alloc_delrec() 151 if (ptr < INT_GET(block->bb_numrecs, ARCH_CONVERT)) { in xfs_alloc_delrec() 153 (INT_GET(block->bb_numrecs, ARCH_CONVERT) - ptr) * sizeof(*lkp)); /* INT_: mem copy */ in xfs_alloc_delrec() 155 (INT_GET(block->bb_numrecs, ARCH_CONVERT) - ptr) * sizeof(*lpp)); /* INT_: mem copy */ in xfs_alloc_delrec() 156 xfs_alloc_log_ptrs(cur, bp, ptr, INT_GET(block->bb_numrecs, ARCH_CONVERT) - 1); in xfs_alloc_delrec() 157 xfs_alloc_log_keys(cur, bp, ptr, INT_GET(block->bb_numrecs, ARCH_CONVERT) - 1); in xfs_alloc_delrec() 166 if (ptr < INT_GET(block->bb_numrecs, ARCH_CONVERT)) { in xfs_alloc_delrec() 168 (INT_GET(block->bb_numrecs, ARCH_CONVERT) - ptr) * sizeof(*lrp)); in xfs_alloc_delrec() [all …]
|
D | xfs_dir2_leaf.c | 130 blp = XFS_DIR2_BLOCK_LEAF_P_ARCH(btp, ARCH_CONVERT); in xfs_dir2_block_to_leaf() 134 INT_COPY(leaf->hdr.count, btp->count, ARCH_CONVERT); /* INT_: type change */ in xfs_dir2_block_to_leaf() 135 INT_COPY(leaf->hdr.stale, btp->stale, ARCH_CONVERT); /* INT_: type change */ in xfs_dir2_block_to_leaf() 140 memcpy(leaf->ents, blp, INT_GET(btp->count, ARCH_CONVERT) * sizeof(xfs_dir2_leaf_entry_t)); in xfs_dir2_block_to_leaf() 141 xfs_dir2_leaf_log_ents(tp, lbp, 0, INT_GET(leaf->hdr.count, ARCH_CONVERT) - 1); in xfs_dir2_block_to_leaf() 156 INT_SET(block->hdr.magic, ARCH_CONVERT, XFS_DIR2_DATA_MAGIC); in xfs_dir2_block_to_leaf() 164 INT_SET(ltp->bestcount, ARCH_CONVERT, 1); in xfs_dir2_block_to_leaf() 165 bestsp = XFS_DIR2_LEAF_BESTS_P_ARCH(ltp, ARCH_CONVERT); in xfs_dir2_block_to_leaf() 166 INT_COPY(bestsp[0], block->hdr.bestfree[0].length, ARCH_CONVERT); in xfs_dir2_block_to_leaf() 236 bestsp = XFS_DIR2_LEAF_BESTS_P_ARCH(ltp, ARCH_CONVERT); in xfs_dir2_leaf_addname() [all …]
|
D | xfs_btree.c | 103 return (int)XFS_ALLOC_BLOCK_MAXRECS(INT_GET(block->bb_h.bb_level, ARCH_CONVERT), cur); in xfs_btree_maxrecs() 105 return (int)XFS_BMAP_BLOCK_IMAXRECS(INT_GET(block->bb_h.bb_level, ARCH_CONVERT), cur); in xfs_btree_maxrecs() 107 return (int)XFS_INOBT_BLOCK_MAXRECS(INT_GET(block->bb_h.bb_level, ARCH_CONVERT), cur); in xfs_btree_maxrecs() 153 ASSERT(INT_GET(k1->ar_startblock, ARCH_CONVERT) < INT_GET(k2->ar_startblock, ARCH_CONVERT)); in xfs_btree_check_key() 162 ASSERT(INT_GET(k1->ar_blockcount, ARCH_CONVERT) < INT_GET(k2->ar_blockcount, ARCH_CONVERT) || in xfs_btree_check_key() 163 (INT_GET(k1->ar_blockcount, ARCH_CONVERT) == INT_GET(k2->ar_blockcount, ARCH_CONVERT) && in xfs_btree_check_key() 164 INT_GET(k1->ar_startblock, ARCH_CONVERT) < INT_GET(k2->ar_startblock, ARCH_CONVERT))); in xfs_btree_check_key() 173 ASSERT(INT_GET(k1->br_startoff, ARCH_CONVERT) < INT_GET(k2->br_startoff, ARCH_CONVERT)); in xfs_btree_check_key() 182 ASSERT(INT_GET(k1->ir_startino, ARCH_CONVERT) < INT_GET(k2->ir_startino, ARCH_CONVERT)); in xfs_btree_check_key() 207 INT_GET(block->bb_magic, ARCH_CONVERT) == xfs_magics[cur->bc_btnum] && in xfs_btree_check_lblock() [all …]
|
D | xfs_da_btree.c | 140 INT_ZERO(node->hdr.info.forw, ARCH_CONVERT); in xfs_da_node_create() 141 INT_ZERO(node->hdr.info.back, ARCH_CONVERT); in xfs_da_node_create() 142 INT_SET(node->hdr.info.magic, ARCH_CONVERT, XFS_DA_NODE_MAGIC); in xfs_da_node_create() 143 INT_ZERO(node->hdr.info.pad, ARCH_CONVERT); in xfs_da_node_create() 144 INT_ZERO(node->hdr.count, ARCH_CONVERT); in xfs_da_node_create() 145 INT_SET(node->hdr.level, ARCH_CONVERT, level); in xfs_da_node_create() 309 if (!INT_ISZERO(node->hdr.info.forw, ARCH_CONVERT)) { in xfs_da_split() 310 if (INT_GET(node->hdr.info.forw, ARCH_CONVERT) == addblk->blkno) { in xfs_da_split() 317 INT_SET(node->hdr.info.back, ARCH_CONVERT, oldblk->blkno); in xfs_da_split() 323 if (INT_GET(node->hdr.info.back, ARCH_CONVERT)) { in xfs_da_split() [all …]
|
D | xfs_fsops.c | 207 INT_SET(agf->agf_magicnum, ARCH_CONVERT, XFS_AGF_MAGIC); in xfs_growfs_data_private() 208 INT_SET(agf->agf_versionnum, ARCH_CONVERT, XFS_AGF_VERSION); in xfs_growfs_data_private() 209 INT_SET(agf->agf_seqno, ARCH_CONVERT, agno); in xfs_growfs_data_private() 216 INT_SET(agf->agf_length, ARCH_CONVERT, agsize); in xfs_growfs_data_private() 217 INT_SET(agf->agf_roots[XFS_BTNUM_BNOi], ARCH_CONVERT, in xfs_growfs_data_private() 219 INT_SET(agf->agf_roots[XFS_BTNUM_CNTi], ARCH_CONVERT, in xfs_growfs_data_private() 221 INT_SET(agf->agf_levels[XFS_BTNUM_BNOi], ARCH_CONVERT, 1); in xfs_growfs_data_private() 222 INT_SET(agf->agf_levels[XFS_BTNUM_CNTi], ARCH_CONVERT, 1); in xfs_growfs_data_private() 223 INT_ZERO(agf->agf_flfirst, ARCH_CONVERT); in xfs_growfs_data_private() 224 INT_SET(agf->agf_fllast, ARCH_CONVERT, XFS_AGFL_SIZE(mp) - 1); in xfs_growfs_data_private() [all …]
|
D | xfs_ialloc_btree.c | 142 numrecs = INT_GET(block->bb_numrecs, ARCH_CONVERT); in xfs_inobt_delrec() 157 if ((error = xfs_btree_check_sptr(cur, INT_GET(pp[i], ARCH_CONVERT), level))) in xfs_inobt_delrec() 194 INT_SET(block->bb_numrecs, ARCH_CONVERT, numrecs); in xfs_inobt_delrec() 213 bno = INT_GET(agi->agi_root, ARCH_CONVERT); in xfs_inobt_delrec() 215 INT_MOD(agi->agi_level, ARCH_CONVERT, -1); in xfs_inobt_delrec() 258 rbno = INT_GET(block->bb_rightsib, ARCH_CONVERT); in xfs_inobt_delrec() 259 lbno = INT_GET(block->bb_leftsib, ARCH_CONVERT); in xfs_inobt_delrec() 296 bno = INT_GET(right->bb_leftsib, ARCH_CONVERT); in xfs_inobt_delrec() 302 if (INT_GET(right->bb_numrecs, ARCH_CONVERT) - 1 >= in xfs_inobt_delrec() 307 ASSERT(INT_GET(block->bb_numrecs, ARCH_CONVERT) >= in xfs_inobt_delrec() [all …]
|
D | xfs_bmap_btree.c | 220 o = INT_GET(k->br_startoff, ARCH_CONVERT); in xfs_bmbt_trace_argifk() 269 o = INT_GET(k->br_startoff, ARCH_CONVERT); in xfs_bmbt_trace_argik() 292 …INT_GET(r.l0, ARCH_CONVERT) >> 32, (int)INT_GET(r.l0, ARCH_CONVERT), INT_GET(r.l1, ARCH_CONVERT) >… in xfs_bmbt_trace_cursor() 385 numrecs = INT_GET(block->bb_numrecs, ARCH_CONVERT); in xfs_bmbt_delrec() 403 if ((error = xfs_btree_check_lptr(cur, INT_GET(pp[i], ARCH_CONVERT), level))) { in xfs_bmbt_delrec() 425 INT_SET(key.br_startoff, ARCH_CONVERT, xfs_bmbt_disk_get_startoff(rp)); in xfs_bmbt_delrec() 430 INT_SET(block->bb_numrecs, ARCH_CONVERT, numrecs); in xfs_bmbt_delrec() 466 rbno = INT_GET(block->bb_rightsib, ARCH_CONVERT); in xfs_bmbt_delrec() 467 lbno = INT_GET(block->bb_leftsib, ARCH_CONVERT); in xfs_bmbt_delrec() 511 bno = INT_GET(right->bb_leftsib, ARCH_CONVERT); in xfs_bmbt_delrec() [all …]
|
D | xfs_log_recover.c | 218 printk(", fmt = %d\n", INT_GET(head->h_fmt, ARCH_CONVERT)); in xlog_header_check_dump() 232 ASSERT(INT_GET(head->h_magicno, ARCH_CONVERT) == XLOG_HEADER_MAGIC_NUM); in xlog_header_check_recover() 239 if (unlikely(INT_GET(head->h_fmt, ARCH_CONVERT) != XLOG_FMT)) { in xlog_header_check_recover() 265 ASSERT(INT_GET(head->h_magicno, ARCH_CONVERT) == XLOG_HEADER_MAGIC_NUM); in xlog_header_check_mount() 331 mid_cycle = GET_CYCLE(offset, ARCH_CONVERT); in xlog_find_cycle_start() 391 cycle = GET_CYCLE(buf, ARCH_CONVERT); in xlog_find_verify_cycle() 468 INT_GET(head->h_magicno, ARCH_CONVERT)) in xlog_find_verify_log_record() 500 uint h_size = INT_GET(head->h_size, ARCH_CONVERT); in xlog_find_verify_log_record() 510 != BTOBB(INT_GET(head->h_len, ARCH_CONVERT)) + xhdrs) in xlog_find_verify_log_record() 570 first_half_cycle = GET_CYCLE(offset, ARCH_CONVERT); in xlog_find_head() [all …]
|
D | xfs_dir2_sf.c | 117 blp = XFS_DIR2_BLOCK_LEAF_P_ARCH(btp, ARCH_CONVERT); in xfs_dir2_block_sfsize() 122 for (i = 0; i < INT_GET(btp->count, ARCH_CONVERT); i++) { in xfs_dir2_block_sfsize() 123 if ((addr = INT_GET(blp[i].address, ARCH_CONVERT)) == XFS_DIR2_NULL_DATAPTR) in xfs_dir2_block_sfsize() 141 i8count += INT_GET(dep->inumber, ARCH_CONVERT) > XFS_DIR2_MAX_SHORT_INUM; in xfs_dir2_block_sfsize() 147 parent = INT_GET(dep->inumber, ARCH_CONVERT); in xfs_dir2_block_sfsize() 166 XFS_DIR2_SF_PUT_INUMBER_ARCH((xfs_dir2_sf_t *)sfhp, &parent, &sfhp->parent, ARCH_CONVERT); in xfs_dir2_block_sfsize() 233 endptr = (char *)XFS_DIR2_BLOCK_LEAF_P_ARCH(btp, ARCH_CONVERT); in xfs_dir2_block_to_sf() 244 if (INT_GET(dup->freetag, ARCH_CONVERT) == XFS_DIR2_DATA_FREE_TAG) { in xfs_dir2_block_to_sf() 245 ptr += INT_GET(dup->length, ARCH_CONVERT); in xfs_dir2_block_to_sf() 253 ASSERT(INT_GET(dep->inumber, ARCH_CONVERT) == dp->i_ino); in xfs_dir2_block_to_sf() [all …]
|
D | xfs_ialloc.c | 197 args.agbno = INT_GET(agi->agi_root, ARCH_CONVERT); in xfs_ialloc_ag_alloc() 198 args.fsbno = XFS_AGB_TO_FSB(args.mp, INT_GET(agi->agi_seqno, ARCH_CONVERT), in xfs_ialloc_ag_alloc() 220 args.agbno = INT_GET(agi->agi_root, ARCH_CONVERT); in xfs_ialloc_ag_alloc() 222 INT_GET(agi->agi_seqno, ARCH_CONVERT), args.agbno); in xfs_ialloc_ag_alloc() 270 INT_SET(dic.di_magic, ARCH_CONVERT, XFS_DINODE_MAGIC); in xfs_ialloc_ag_alloc() 271 INT_SET(dic.di_version, ARCH_CONVERT, version); in xfs_ialloc_ag_alloc() 277 d = XFS_AGB_TO_DADDR(args.mp, INT_GET(agi->agi_seqno, ARCH_CONVERT), in xfs_ialloc_ag_alloc() 291 INT_SET(free->di_next_unlinked, ARCH_CONVERT, NULLAGINO); in xfs_ialloc_ag_alloc() 297 INT_MOD(agi->agi_count, ARCH_CONVERT, newlen); in xfs_ialloc_ag_alloc() 298 INT_MOD(agi->agi_freecount, ARCH_CONVERT, newlen); in xfs_ialloc_ag_alloc() [all …]
|
D | xfs_alloc.c | 246 diff = INT_GET(agf->agf_freeblks, ARCH_CONVERT) in xfs_alloc_fix_minleft() 247 + INT_GET(agf->agf_flcount, ARCH_CONVERT) in xfs_alloc_fix_minleft() 322 INT_GET(bnoblock->bb_numrecs, ARCH_CONVERT) == INT_GET(cntblock->bb_numrecs, ARCH_CONVERT)); in xfs_alloc_fixup_trees() 508 (void *)(__psunsigned_t)INT_GET(agf->agf_seqno, ARCH_CONVERT), in xfs_alloc_trace_modagf() 509 (void *)(__psunsigned_t)INT_GET(agf->agf_length, ARCH_CONVERT), in xfs_alloc_trace_modagf() 511 ARCH_CONVERT), in xfs_alloc_trace_modagf() 513 ARCH_CONVERT), in xfs_alloc_trace_modagf() 515 ARCH_CONVERT), in xfs_alloc_trace_modagf() 517 ARCH_CONVERT), in xfs_alloc_trace_modagf() 518 (void *)(__psunsigned_t)INT_GET(agf->agf_flfirst, ARCH_CONVERT), in xfs_alloc_trace_modagf() [all …]
|
D | xfs_bmap_btree.h | 291 INT_GET((bb)->bb_level, ARCH_CONVERT), cur), \ 293 INT_GET((bb)->bb_level, ARCH_CONVERT), cur)) 302 INT_GET((bb)->bb_level, ARCH_CONVERT), cur), \ 304 INT_GET((bb)->bb_level, ARCH_CONVERT), cur)) 314 INT_GET((bb)->bb_level, ARCH_CONVERT), cur), \ 316 INT_GET((bb)->bb_level, ARCH_CONVERT), cur)) 325 INT_GET((bb)->bb_level, ARCH_CONVERT), cur), \ 327 INT_GET((bb)->bb_level, ARCH_CONVERT), cur)) 337 INT_GET((bb)->bb_level, ARCH_CONVERT), cur), \ 339 INT_GET((bb)->bb_level, ARCH_CONVERT), cur)) [all …]
|
D | xfs_dir.c | 548 if ((INT_GET(dp->di_core.di_mode, ARCH_CONVERT) & S_IFMT) != S_IFDIR) { in xfs_dir_shortform_validate_ondisk() 551 if (INT_GET(dp->di_core.di_format, ARCH_CONVERT) != XFS_DINODE_FMT_LOCAL) { in xfs_dir_shortform_validate_ondisk() 554 if (INT_GET(dp->di_core.di_size, ARCH_CONVERT) < sizeof(sf->hdr)) { in xfs_dir_shortform_validate_ondisk() 560 ino = XFS_GET_DIR_INO_ARCH(mp, sf->hdr.parent, ARCH_CONVERT); in xfs_dir_shortform_validate_ondisk() 578 ino = XFS_GET_DIR_INO_ARCH(mp, sfe->inumber, ARCH_CONVERT); in xfs_dir_shortform_validate_ondisk() 641 ASSERT(INT_GET(leaf->hdr.info.magic, ARCH_CONVERT) == XFS_DIR_LEAF_MAGIC); in xfs_dir_leaf_removename() 645 *count = INT_GET(leaf->hdr.count, ARCH_CONVERT); in xfs_dir_leaf_removename() 646 *totallen = INT_GET(leaf->hdr.namebytes, ARCH_CONVERT); in xfs_dir_leaf_removename() 717 namest = XFS_DIR_LEAF_NAMESTRUCT(leaf, INT_GET(entry->nameidx, ARCH_CONVERT)); in xfs_dir_leaf_replace() 719 XFS_DIR_SF_PUT_DIRINO_ARCH(&inum, &namest->inumber, ARCH_CONVERT); in xfs_dir_leaf_replace() [all …]
|
D | xfs_inode.c | 138 if (INT_ISZERO(dip->di_next_unlinked, ARCH_CONVERT)) { in xfs_inobp_check() 142 ASSERT(!INT_ISZERO(dip->di_next_unlinked, ARCH_CONVERT)); in xfs_inobp_check() 169 if (INT_GET(dip->di_core.di_magic, ARCH_CONVERT) != XFS_DINODE_MAGIC) { in xfs_inobp_bwcheck() 172 INT_GET(dip->di_core.di_magic, ARCH_CONVERT), in xfs_inobp_bwcheck() 179 if (INT_ISZERO(dip->di_next_unlinked, ARCH_CONVERT)) { in xfs_inobp_bwcheck() 263 INT_GET(dip->di_core.di_magic, ARCH_CONVERT) == XFS_DINODE_MAGIC && in xfs_inotobp() 264 XFS_DINODE_GOOD_VERSION(INT_GET(dip->di_core.di_version, ARCH_CONVERT)); in xfs_inotobp() 407 di_ok = INT_GET(dip->di_core.di_magic, ARCH_CONVERT) == XFS_DINODE_MAGIC && in xfs_itobp() 408 XFS_DINODE_GOOD_VERSION(INT_GET(dip->di_core.di_version, ARCH_CONVERT)); in xfs_itobp() 415 INT_GET(dip->di_core.di_magic, ARCH_CONVERT)); in xfs_itobp() [all …]
|
D | xfs_itable.c | 133 arch = ARCH_CONVERT; in xfs_bulkstat_one() 375 INT_SET(irbp->ir_startino, ARCH_CONVERT, gino); in xfs_bulkstat() 376 INT_SET(irbp->ir_freecount, ARCH_CONVERT, gcnt); in xfs_bulkstat() 377 INT_SET(irbp->ir_free, ARCH_CONVERT, gfree); in xfs_bulkstat() 413 INT_GET(agi->agi_length, ARCH_CONVERT)) in xfs_bulkstat() 433 INT_SET(irbp->ir_startino, ARCH_CONVERT, gino); in xfs_bulkstat() 434 INT_SET(irbp->ir_freecount, ARCH_CONVERT, gcnt); in xfs_bulkstat() 435 INT_SET(irbp->ir_free, ARCH_CONVERT, gfree); in xfs_bulkstat() 468 INT_GET(irbp[1].ir_startino, ARCH_CONVERT)), in xfs_bulkstat() 475 ~(INT_GET(irbp[1].ir_free, ARCH_CONVERT))) in xfs_bulkstat() [all …]
|
/linux-2.4.37.9/fs/xfs/quota/ ! |
D | xfs_dquot.c | 115 INT_SET(dqp->q_core.d_id, ARCH_CONVERT, id); in xfs_qm_dqinit() 197 INT_SET(d->dd_diskdq.d_magic, ARCH_CONVERT, XFS_DQUOT_MAGIC); in xfs_qm_dqinit_core() 198 INT_SET(d->dd_diskdq.d_version, ARCH_CONVERT, XFS_DQUOT_VERSION); in xfs_qm_dqinit_core() 199 INT_SET(d->dd_diskdq.d_id, ARCH_CONVERT, id); in xfs_qm_dqinit_core() 200 INT_SET(d->dd_diskdq.d_flags, ARCH_CONVERT, type); in xfs_qm_dqinit_core() 231 ARCH_CONVERT), in __xfs_dqtrace_entry() 233 ARCH_CONVERT), in __xfs_dqtrace_entry() 235 ARCH_CONVERT), in __xfs_dqtrace_entry() 237 ARCH_CONVERT), in __xfs_dqtrace_entry() 239 ARCH_CONVERT), in __xfs_dqtrace_entry() [all …]
|
D | xfs_trans_dquot.c | 434 ASSERT(INT_GET(d->d_bcount, ARCH_CONVERT) >= in xfs_trans_apply_dquot_deltas() 438 ASSERT(INT_GET(d->d_rtbcount, ARCH_CONVERT) >= in xfs_trans_apply_dquot_deltas() 442 ASSERT(INT_GET(d->d_icount, ARCH_CONVERT) >= in xfs_trans_apply_dquot_deltas() 446 INT_MOD(d->d_bcount, ARCH_CONVERT, (xfs_qcnt_t)totalbdelta); in xfs_trans_apply_dquot_deltas() 449 INT_MOD(d->d_icount, ARCH_CONVERT, (xfs_qcnt_t)qtrx->qt_icount_delta); in xfs_trans_apply_dquot_deltas() 452 INT_MOD(d->d_rtbcount, ARCH_CONVERT, (xfs_qcnt_t)totalrtbdelta); in xfs_trans_apply_dquot_deltas() 458 if (!INT_ISZERO(d->d_id, ARCH_CONVERT)) { in xfs_trans_apply_dquot_deltas() 542 INT_GET(dqp->q_core.d_bcount, ARCH_CONVERT)); in xfs_trans_apply_dquot_deltas() 544 INT_GET(dqp->q_core.d_icount, ARCH_CONVERT)); in xfs_trans_apply_dquot_deltas() 546 INT_GET(dqp->q_core.d_rtbcount, ARCH_CONVERT)); in xfs_trans_apply_dquot_deltas() [all …]
|
D | xfs_qm_syscalls.c | 646 INT_GET(ddq->d_blk_hardlimit, ARCH_CONVERT); in xfs_qm_scall_setqlim() 649 INT_GET(ddq->d_blk_softlimit, ARCH_CONVERT); in xfs_qm_scall_setqlim() 651 INT_SET(ddq->d_blk_hardlimit, ARCH_CONVERT, hard); in xfs_qm_scall_setqlim() 652 INT_SET(ddq->d_blk_softlimit, ARCH_CONVERT, soft); in xfs_qm_scall_setqlim() 662 INT_GET(ddq->d_rtb_hardlimit, ARCH_CONVERT); in xfs_qm_scall_setqlim() 665 INT_GET(ddq->d_rtb_softlimit, ARCH_CONVERT); in xfs_qm_scall_setqlim() 667 INT_SET(ddq->d_rtb_hardlimit, ARCH_CONVERT, hard); in xfs_qm_scall_setqlim() 668 INT_SET(ddq->d_rtb_softlimit, ARCH_CONVERT, soft); in xfs_qm_scall_setqlim() 679 INT_GET(ddq->d_ino_hardlimit, ARCH_CONVERT); in xfs_qm_scall_setqlim() 682 INT_GET(ddq->d_ino_softlimit, ARCH_CONVERT); in xfs_qm_scall_setqlim() [all …]
|
D | xfs_quota_priv.h | 107 INT_ISZERO(dqp->q_core.d_blk_hardlimit, ARCH_CONVERT) && \ 108 INT_ISZERO(dqp->q_core.d_blk_softlimit, ARCH_CONVERT) && \ 109 INT_ISZERO(dqp->q_core.d_rtb_hardlimit, ARCH_CONVERT) && \ 110 INT_ISZERO(dqp->q_core.d_rtb_softlimit, ARCH_CONVERT) && \ 111 INT_ISZERO(dqp->q_core.d_ino_hardlimit, ARCH_CONVERT) && \ 112 INT_ISZERO(dqp->q_core.d_ino_softlimit, ARCH_CONVERT) && \ 113 INT_ISZERO(dqp->q_core.d_bcount, ARCH_CONVERT) && \ 114 INT_ISZERO(dqp->q_core.d_rtbcount, ARCH_CONVERT) && \ 115 INT_ISZERO(dqp->q_core.d_icount, ARCH_CONVERT)) 177 (INT_ISZERO((dqp)->q_core.d_id, ARCH_CONVERT))
|
D | xfs_qm.c | 104 ++i, (int) INT_GET(dqp->q_core.d_id, ARCH_CONVERT), \ 106 (int) INT_GET(dqp->q_core.d_bcount, ARCH_CONVERT), \ 107 (int) INT_GET(dqp->q_core.d_icount, ARCH_CONVERT), \ 753 (INT_GET(dqp->q_core.d_id, ARCH_CONVERT) == id)) { in xfs_qm_dqattach_one() 1218 INT_GET(ddqp->d_btimer, ARCH_CONVERT) ? in xfs_qm_init_quotainfo() 1219 INT_GET(ddqp->d_btimer, ARCH_CONVERT) : in xfs_qm_init_quotainfo() 1222 INT_GET(ddqp->d_itimer, ARCH_CONVERT) ? in xfs_qm_init_quotainfo() 1223 INT_GET(ddqp->d_itimer, ARCH_CONVERT) : in xfs_qm_init_quotainfo() 1226 INT_GET(ddqp->d_rtbtimer, ARCH_CONVERT) ? in xfs_qm_init_quotainfo() 1227 INT_GET(ddqp->d_rtbtimer, ARCH_CONVERT) : in xfs_qm_init_quotainfo() [all …]
|