• Home
  • Raw
  • Download

Lines Matching refs:args

366 	struct xfs_da_args	*args)  in xfs_attr_rmtval_get()  argument
369 struct xfs_mount *mp = args->dp->i_mount; in xfs_attr_rmtval_get()
371 xfs_dablk_t lblkno = args->rmtblkno; in xfs_attr_rmtval_get()
372 uint8_t *dst = args->value; in xfs_attr_rmtval_get()
376 int blkcnt = args->rmtblkcnt; in xfs_attr_rmtval_get()
380 trace_xfs_attr_rmtval_get(args); in xfs_attr_rmtval_get()
382 ASSERT(!(args->flags & ATTR_KERNOVAL)); in xfs_attr_rmtval_get()
383 ASSERT(args->rmtvaluelen == args->valuelen); in xfs_attr_rmtval_get()
385 valuelen = args->rmtvaluelen; in xfs_attr_rmtval_get()
388 error = xfs_bmapi_read(args->dp, (xfs_fileoff_t)lblkno, in xfs_attr_rmtval_get()
403 error = xfs_trans_read_buf(mp, args->trans, in xfs_attr_rmtval_get()
410 error = xfs_attr_rmtval_copyout(mp, bp, args->dp->i_ino, in xfs_attr_rmtval_get()
413 xfs_trans_brelse(args->trans, bp); in xfs_attr_rmtval_get()
432 struct xfs_da_args *args) in xfs_attr_rmtval_set() argument
434 struct xfs_inode *dp = args->dp; in xfs_attr_rmtval_set()
439 uint8_t *src = args->value; in xfs_attr_rmtval_set()
446 trace_xfs_attr_rmtval_set(args); in xfs_attr_rmtval_set()
454 blkcnt = xfs_attr3_rmt_blocks(mp, args->rmtvaluelen); in xfs_attr_rmtval_set()
455 error = xfs_bmap_first_unused(args->trans, args->dp, blkcnt, &lfileoff, in xfs_attr_rmtval_set()
460 args->rmtblkno = lblkno = (xfs_dablk_t)lfileoff; in xfs_attr_rmtval_set()
461 args->rmtblkcnt = blkcnt; in xfs_attr_rmtval_set()
480 error = xfs_bmapi_write(args->trans, dp, (xfs_fileoff_t)lblkno, in xfs_attr_rmtval_set()
481 blkcnt, XFS_BMAPI_ATTRFORK, args->total, &map, in xfs_attr_rmtval_set()
485 error = xfs_defer_finish(&args->trans); in xfs_attr_rmtval_set()
498 error = xfs_trans_roll_inode(&args->trans, dp); in xfs_attr_rmtval_set()
509 lblkno = args->rmtblkno; in xfs_attr_rmtval_set()
510 blkcnt = args->rmtblkcnt; in xfs_attr_rmtval_set()
511 valuelen = args->rmtvaluelen; in xfs_attr_rmtval_set()
537 xfs_attr_rmtval_copyin(mp, bp, args->dp->i_ino, &offset, in xfs_attr_rmtval_set()
560 struct xfs_da_args *args) in xfs_attr_rmtval_remove() argument
562 struct xfs_mount *mp = args->dp->i_mount; in xfs_attr_rmtval_remove()
568 trace_xfs_attr_rmtval_remove(args); in xfs_attr_rmtval_remove()
573 lblkno = args->rmtblkno; in xfs_attr_rmtval_remove()
574 blkcnt = args->rmtblkcnt; in xfs_attr_rmtval_remove()
586 error = xfs_bmapi_read(args->dp, (xfs_fileoff_t)lblkno, in xfs_attr_rmtval_remove()
614 lblkno = args->rmtblkno; in xfs_attr_rmtval_remove()
615 blkcnt = args->rmtblkcnt; in xfs_attr_rmtval_remove()
618 error = xfs_bunmapi(args->trans, args->dp, lblkno, blkcnt, in xfs_attr_rmtval_remove()
622 error = xfs_defer_finish(&args->trans); in xfs_attr_rmtval_remove()
629 error = xfs_trans_roll_inode(&args->trans, args->dp); in xfs_attr_rmtval_remove()