Lines Matching refs:args

84 	struct xfs_da_args	*args)
89 state->args = args;
90 state->mp = args->dp->i_mount;
123 struct xfs_da_args *args)
127 state->args = args;
128 state->mp = state->args->dp->i_mount;
433 struct xfs_da_args *args,
440 struct xfs_trans *tp = args->trans;
445 struct xfs_inode *dp = args->dp;
447 trace_xfs_da_node_create(args);
463 hdr3->info.owner = cpu_to_be64(args->dp->i_ino);
472 XFS_DA_LOGRANGE(node, &node->hdr, args->geo->node_hdr_size));
495 trace_xfs_da_split(state->args);
540 trace_xfs_attr_leaf_split_before(state->args);
545 trace_xfs_attr_leaf_split_after(state->args);
620 xfs_trans_log_buf(state->args->trans, addblk->bp,
633 xfs_trans_log_buf(state->args->trans, addblk->bp,
657 struct xfs_da_args *args;
667 trace_xfs_da_root_split(state->args);
673 args = state->args;
674 error = xfs_da_grow_inode(args, &blkno);
678 dp = args->dp;
679 tp = args->trans;
680 error = xfs_da_get_buf(tp, dp, blkno, &bp, args->whichfork);
741 error = xfs_da3_node_create(args,
742 (args->whichfork == XFS_DATA_FORK) ? args->geo->leafblk : 0,
743 level + 1, &bp, args->whichfork);
760 ASSERT(blk1->blkno >= args->geo->leafblk &&
761 blk1->blkno < args->geo->freeblk);
762 ASSERT(blk2->blkno >= args->geo->leafblk &&
763 blk2->blkno < args->geo->freeblk);
792 struct xfs_inode *dp = state->args->dp;
794 trace_xfs_da_node_split(state->args);
802 useextra = state->extravalid && state->args->whichfork == XFS_ATTR_FORK;
807 if (nodehdr.count + newcount > state->args->geo->node_ents) {
812 error = xfs_da_grow_inode(state->args, &blkno);
816 error = xfs_da3_node_create(state->args, blkno, treelevel,
817 &newblk->bp, state->args->whichfork);
892 struct xfs_inode *dp = state->args->dp;
894 trace_xfs_da_node_rebalance(state->args);
922 tp = state->args->trans;
980 state->args->geo->node_hdr_size));
985 state->args->geo->node_hdr_size +
1025 struct xfs_inode *dp = state->args->dp;
1027 trace_xfs_da_node_add(state->args);
1035 if (state->args->whichfork == XFS_DATA_FORK)
1036 ASSERT(newblk->blkno >= state->args->geo->leafblk &&
1037 newblk->blkno < state->args->geo->freeblk);
1049 xfs_trans_log_buf(state->args->trans, oldblk->bp,
1055 xfs_trans_log_buf(state->args->trans, oldblk->bp,
1057 state->args->geo->node_hdr_size));
1082 trace_xfs_da_join(state->args);
1139 error = xfs_da_shrink_inode(state->args, drop_blk->blkno,
1188 struct xfs_da_args *args;
1193 struct xfs_inode *dp = state->args->dp;
1195 trace_xfs_da_root_join(state->args);
1199 args = state->args;
1217 error = xfs_da3_node_read(args->trans, dp, child, &bp, args->whichfork);
1229 memcpy(root_blk->bp->b_addr, bp->b_addr, args->geo->blksize);
1236 xfs_trans_log_buf(args->trans, root_blk->bp, 0,
1237 args->geo->blksize - 1);
1238 error = xfs_da_shrink_inode(args, child, bp);
1267 struct xfs_inode *dp = state->args->dp;
1269 trace_xfs_da_node_toosmall(state->args);
1280 if (nodehdr.count > (state->args->geo->node_ents >> 1)) {
1317 count = state->args->geo->node_ents;
1318 count -= state->args->geo->node_ents >> 2;
1331 error = xfs_da3_node_read(state->args->trans, dp, blkno, &bp,
1332 state->args->whichfork);
1338 xfs_trans_brelse(state->args->trans, bp);
1404 struct xfs_inode *dp = state->args->dp;
1406 trace_xfs_da_fixhashpath(state->args);
1437 xfs_trans_log_buf(state->args->trans, blk->bp,
1458 struct xfs_inode *dp = state->args->dp;
1460 trace_xfs_da_node_remove(state->args);
1476 xfs_trans_log_buf(state->args->trans, drop_blk->bp,
1481 xfs_trans_log_buf(state->args->trans, drop_blk->bp,
1485 xfs_trans_log_buf(state->args->trans, drop_blk->bp,
1486 XFS_DA_LOGRANGE(node, &node->hdr, state->args->geo->node_hdr_size));
1513 struct xfs_inode *dp = state->args->dp;
1515 trace_xfs_da_node_unbalance(state->args);
1523 tp = state->args->trans;
1559 state->args->geo->node_hdr_size));
1592 struct xfs_da_args *args;
1603 struct xfs_inode *dp = state->args->dp;
1605 args = state->args;
1611 blkno = args->geo->leafblk;
1619 error = xfs_da3_node_read(args->trans, args->dp, blkno,
1620 &blk->bp, args->whichfork);
1639 blk->hashval = xfs_dir2_leaf_lasthash(args->dp,
1665 if (blkno == args->geo->leafblk)
1680 hashval = args->hashval;
1720 if (XFS_IS_CORRUPT(dp->i_mount, blkno == args->geo->leafblk))
1735 retval = xfs_dir2_leafn_lookup_int(blk->bp, args,
1738 retval = xfs_attr3_leaf_lookup_int(blk->bp, args);
1739 blk->index = args->index;
1740 args->blkno = blk->blkno;
1746 (blk->hashval == args->hashval)) {
1812 struct xfs_da_args *args;
1816 struct xfs_inode *dp = state->args->dp;
1821 args = state->args;
1822 ASSERT(args != NULL);
1848 trace_xfs_da_link_before(args);
1852 error = xfs_da3_node_read(args->trans, dp,
1854 &bp, args->whichfork);
1862 xfs_trans_log_buf(args->trans, bp, 0, sizeof(*tmp_info)-1);
1869 trace_xfs_da_link_after(args);
1873 error = xfs_da3_node_read(args->trans, dp,
1875 &bp, args->whichfork);
1883 xfs_trans_log_buf(args->trans, bp, 0, sizeof(*tmp_info)-1);
1888 xfs_trans_log_buf(args->trans, old_blk->bp, 0, sizeof(*tmp_info) - 1);
1889 xfs_trans_log_buf(args->trans, new_blk->bp, 0, sizeof(*tmp_info) - 1);
1905 struct xfs_da_args *args;
1912 args = state->args;
1913 ASSERT(args != NULL);
1929 trace_xfs_da_unlink_back(args);
1932 error = xfs_da3_node_read(args->trans, args->dp,
1934 &bp, args->whichfork);
1942 xfs_trans_log_buf(args->trans, bp, 0,
1946 trace_xfs_da_unlink_forward(args);
1949 error = xfs_da3_node_read(args->trans, args->dp,
1951 &bp, args->whichfork);
1959 xfs_trans_log_buf(args->trans, bp, 0,
1964 xfs_trans_log_buf(args->trans, save_blk->bp, 0, sizeof(*save_info) - 1);
1986 struct xfs_da_args *args;
1993 struct xfs_inode *dp = state->args->dp;
1995 trace_xfs_da_path_shift(state->args);
2002 args = state->args;
2003 ASSERT(args != NULL);
2024 ASSERT(args->op_flags & XFS_DA_OP_OKNOENT);
2036 error = xfs_da3_node_read(args->trans, dp, blkno, &bp,
2037 args->whichfork);
2048 xfs_trans_brelse(args->trans, blk->bp);
2091 blk->hashval = xfs_dir2_leaf_lasthash(args->dp,
2143 struct xfs_da_args *args,
2147 return (args->namelen == len && memcmp(args->name, name, len) == 0) ?
2153 struct xfs_da_args *args,
2157 struct xfs_trans *tp = args->trans;
2158 struct xfs_inode *dp = args->dp;
2159 int w = args->whichfork;
2177 args->total, &map, &nmap);
2199 args->total, &mapp[mapi], &nmap);
2226 args->total -= dp->i_nblocks - nblks;
2240 struct xfs_da_args *args,
2246 trace_xfs_da_grow_inode(args);
2248 bno = args->geo->leafblk;
2249 error = xfs_da_grow_inode_int(args, &bno, args->geo->fsbcount);
2265 struct xfs_da_args *args,
2295 trace_xfs_da_swap_lastblock(args);
2299 tp = args->trans;
2300 dp = args->dp;
2301 w = args->whichfork;
2304 lastoff = args->geo->freeblk;
2313 last_blkno = (xfs_dablk_t)lastoff - args->geo->fsbcount;
2320 memcpy(dead_buf->b_addr, last_buf->b_addr, args->geo->blksize);
2321 xfs_trans_log_buf(tp, dead_buf, 0, args->geo->blksize - 1);
2387 par_blkno = args->geo->leafblk;
2475 struct xfs_da_args *args,
2483 trace_xfs_da_shrink_inode(args);
2485 dp = args->dp;
2486 w = args->whichfork;
2487 tp = args->trans;
2488 count = args->geo->fsbcount;
2499 error = xfs_da3_swap_lastblock(args, &dead_blkno,