Lines Matching defs:args
201 xfs_alloc_arg_t args; /* block allocation args */
204 memset(&args, 0, sizeof(args));
205 args.tp = cur->bc_tp;
206 args.mp = cur->bc_mp;
207 args.fsbno = cur->bc_tp->t_firstblock;
208 xfs_rmap_ino_bmbt_owner(&args.oinfo, cur->bc_ino.ip->i_ino,
211 if (args.fsbno == NULLFSBLOCK) {
212 args.fsbno = be64_to_cpu(start->l);
213 args.type = XFS_ALLOCTYPE_START_BNO;
225 args.minleft = args.tp->t_blk_res;
227 args.type = XFS_ALLOCTYPE_START_BNO;
229 args.type = XFS_ALLOCTYPE_NEAR_BNO;
232 args.minlen = args.maxlen = args.prod = 1;
233 args.wasdel = cur->bc_ino.flags & XFS_BTCUR_BMBT_WASDEL;
234 if (!args.wasdel && args.tp->t_blk_res == 0) {
238 error = xfs_alloc_vextent(&args);
242 if (args.fsbno == NULLFSBLOCK && args.minleft) {
248 args.fsbno = 0;
249 args.type = XFS_ALLOCTYPE_FIRST_AG;
250 error = xfs_alloc_vextent(&args);
255 if (WARN_ON_ONCE(args.fsbno == NULLFSBLOCK)) {
260 ASSERT(args.len == 1);
261 cur->bc_tp->t_firstblock = args.fsbno;
264 xfs_trans_log_inode(args.tp, cur->bc_ino.ip, XFS_ILOG_CORE);
265 xfs_trans_mod_dquot_byino(args.tp, cur->bc_ino.ip,
268 new->l = cpu_to_be64(args.fsbno);