Home
last modified time | relevance | path

Searched refs:tp (Results 1 – 25 of 203) sorted by relevance

123456789

/fs/xfs/
A Dxfs_trans.c120 ASSERT(tp->t_blk_res >= tp->t_blk_res_used); in xfs_trans_dup()
121 ntp->t_blk_res = tp->t_blk_res - tp->t_blk_res_used; in xfs_trans_dup()
122 tp->t_blk_res = tp->t_blk_res_used; in xfs_trans_dup()
124 ntp->t_rtx_res = tp->t_rtx_res - tp->t_rtx_res_used; in xfs_trans_dup()
125 tp->t_rtx_res = tp->t_rtx_res_used; in xfs_trans_dup()
232 return tp; in __xfs_trans_alloc()
281 *tpp = tp; in xfs_trans_alloc()
352 if (tp->t_blk_res_used > tp->t_blk_res) in xfs_trans_mod_sb()
391 ASSERT(tp->t_rtx_res_used <= tp->t_rtx_res); in xfs_trans_mod_sb()
611 ASSERT(tp->t_blk_res || tp->t_fdblocks_delta >= 0); in xfs_trans_unreserve_and_mod_sb()
[all …]
A Dxfs_trans_buf.c24 struct xfs_trans *tp, in xfs_trans_buf_item_match() argument
93 bp->b_transp = tp; in _xfs_trans_bjoin()
129 if (!tp) in xfs_trans_get_buf_map()
203 return __xfs_trans_getsb(tp, tp->t_mountp->m_sb_bp); in xfs_trans_getsb()
212 return __xfs_trans_getsb(tp, tp->t_mountp->m_rtsb_bp); in xfs_trans_getrtsb()
249 if (tp) in xfs_trans_read_buf_map()
310 if (tp && (tp->t_flags & XFS_TRANS_DIRTY)) in xfs_trans_read_buf_map()
324 if (tp) { in xfs_trans_read_buf_map()
368 if (!tp) { in xfs_trans_brelse()
460 xfs_trans_t *tp, in xfs_trans_bhold() argument
[all …]
A Dxfs_trans_dquot.c31 struct xfs_trans *tp, in xfs_trans_dqjoin() argument
55 struct xfs_trans *tp, in xfs_trans_log_dquot() argument
242 xfs_trans_t *tp, in xfs_trans_mod_dquot_byino() argument
264 struct xfs_trans *tp, in xfs_trans_get_dqtrx() argument
308 ASSERT(tp); in xfs_trans_mod_dquot()
485 if (!tp->t_dqinfo) in xfs_trans_apply_dquot_deltas()
671 if (!tp->t_dqinfo) in xfs_trans_unreserve_and_mod_dquots()
878 if (tp) { in xfs_trans_dqresv()
1040 xfs_trans_t *tp) in xfs_trans_alloc_dqinfo() argument
1048 xfs_trans_t *tp) in xfs_trans_free_dqinfo() argument
[all …]
A Dxfs_reflink.c138 struct xfs_trans *tp, in xfs_reflink_find_shared() argument
182 struct xfs_trans *tp, in xfs_reflink_find_rtshared() argument
441 struct xfs_trans *tp; in xfs_reflink_fill_cow_hole() local
494 xfs_trans_cancel(tp); in xfs_reflink_fill_cow_hole()
508 struct xfs_trans *tp; in xfs_reflink_fill_delalloc() local
518 false, &tp); in xfs_reflink_fill_delalloc()
557 xfs_trans_cancel(tp); in xfs_reflink_fill_delalloc()
707 struct xfs_trans *tp; in xfs_reflink_cancel_cow_range() local
723 0, 0, 0, &tp); in xfs_reflink_cancel_cow_range()
742 xfs_trans_cancel(tp); in xfs_reflink_cancel_cow_range()
[all …]
A Dxfs_bmap_util.c98 struct xfs_trans *tp, in xfs_bmap_count_blocks() argument
579 struct xfs_trans *tp; in xfs_free_eofblocks() local
639 xfs_trans_cancel(tp); in xfs_free_eofblocks()
658 xfs_trans_t *tp; in xfs_alloc_file_space() local
772 xfs_trans_cancel(tp); in xfs_alloc_file_space()
785 struct xfs_trans *tp; in xfs_unmap_extent() local
790 false, &tp); in xfs_unmap_extent()
809 xfs_trans_cancel(tp); in xfs_unmap_extent()
1342 tp = *tpp; in xfs_swap_extent_rmap()
1491 tp = *tpp; in xfs_swap_change_owner()
[all …]
A Dxfs_inode.c587 struct xfs_trans *tp, in xfs_icreate() argument
701 &tp); in xfs_create()
706 resblks, &tp); in xfs_create()
768 xfs_trans_cancel(tp); in xfs_create()
823 &tp); in xfs_create_tmpfile()
860 xfs_trans_cancel(tp); in xfs_create_tmpfile()
1090 *tpp = tp; in xfs_itruncate_extents_flags()
1215 &tp); in xfs_inactive_ifree()
1935 &tp, &dontcare); in xfs_remove()
2186 &tp); in xfs_rename()
[all …]
A Dxfs_iunlink_item.c52 struct xfs_trans *tp, in xfs_iunlink_log_dinode() argument
62 error = xfs_imap_to_bp(tp->t_mountp, tp, &ip->i_imap, &ibp); in xfs_iunlink_log_dinode()
90 xfs_dinode_calc_crc(tp->t_mountp, dip); in xfs_iunlink_log_dinode()
91 xfs_trans_inode_buf(tp, ibp); in xfs_iunlink_log_dinode()
95 xfs_trans_brelse(tp, ibp); in xfs_iunlink_log_dinode()
109 struct xfs_trans *tp, in xfs_iunlink_item_precommit() argument
115 error = xfs_iunlink_log_dinode(tp, iup); in xfs_iunlink_item_precommit()
141 struct xfs_trans *tp, in xfs_iunlink_log_inode() argument
146 struct xfs_mount *mp = tp->t_mountp; in xfs_iunlink_log_inode()
172 xfs_trans_add_item(tp, &iup->item); in xfs_iunlink_log_inode()
[all …]
A Dxfs_iwalk.c55 struct xfs_trans *tp; member
177 struct xfs_trans *tp = iwag->tp; in xfs_iwalk_ag_recs() local
224 struct xfs_trans *tp, in xfs_iwalk_del_inobt() argument
263 struct xfs_trans *tp = iwag->tp; in xfs_iwalk_ag_start() local
366 xfs_trans_cancel(iwag->tp); in xfs_iwalk_run_callbacks()
367 iwag->tp = NULL; in xfs_iwalk_run_callbacks()
574 struct xfs_trans *tp, in xfs_iwalk() argument
583 .tp = tp, in xfs_iwalk()
621 if (iwag->tp) in xfs_iwalk_ag_work()
735 struct xfs_trans *tp, in xfs_inobt_walk() argument
[all …]
A Dxfs_symlink.c102 struct xfs_trans *tp = NULL; in xfs_symlink() local
150 pdqp, resblks, &tp); in xfs_symlink()
168 error = xfs_dialloc(&tp, &args, &ino); in xfs_symlink()
181 xfs_trans_ijoin(tp, dp, 0); in xfs_symlink()
209 xfs_trans_set_sync(tp); in xfs_symlink()
211 error = xfs_trans_commit(tp); in xfs_symlink()
226 xfs_trans_cancel(tp); in xfs_symlink()
264 struct xfs_trans *tp; in xfs_inactive_symlink_rmt() local
282 xfs_trans_ijoin(tp, ip, 0); in xfs_inactive_symlink_rmt()
298 error = xfs_trans_commit(tp); in xfs_inactive_symlink_rmt()
[all …]
A Dxfs_quota.h99 void xfs_trans_unreserve_and_mod_dquots(struct xfs_trans *tp,
106 int xfs_trans_reserve_quota_icreate(struct xfs_trans *tp,
150 # define xfs_trans_mod_ino_dquot(tp, ip, dqp, field, delta) \ argument
151 xfs_trans_mod_dquot((tp), (dqp), (field), (delta))
165 #define xfs_trans_dup_dqinfo(tp, tp2) argument
166 #define xfs_trans_free_dqinfo(tp) argument
167 static inline void xfs_trans_mod_dquot_byino(struct xfs_trans *tp, in xfs_trans_mod_dquot_byino() argument
171 #define xfs_trans_apply_dquot_deltas(tp) argument
172 #define xfs_trans_unreserve_and_mod_dquots(tp, a) argument
194 #define xfs_qm_vop_create_dqattach(tp, ip, u, g, p) argument
[all …]
A Dxfs_trans.h160 #define xfs_trans_set_sync(tp) ((tp)->t_flags |= XFS_TRANS_SYNC) argument
168 int xfs_trans_reserve_more(struct xfs_trans *tp,
179 struct xfs_trans *tp, in xfs_trans_get_buf() argument
191 struct xfs_trans *tp,
201 struct xfs_trans *tp, in xfs_trans_read_buf() argument
210 return xfs_trans_read_buf_map(mp, tp, target, &map, 1, in xfs_trans_read_buf()
215 struct xfs_buf *xfs_trans_getrtsb(struct xfs_trans *tp);
269 struct xfs_trans *tp) in xfs_trans_set_context() argument
271 tp->t_pflags = memalloc_nofs_save(); in xfs_trans_set_context()
276 struct xfs_trans *tp) in xfs_trans_clear_context() argument
[all …]
A Dxfs_rtalloc.c698 struct xfs_trans *tp; in xfs_growfs_rt_fixup_extsize() local
707 &tp); in xfs_growfs_rt_fixup_extsize()
726 struct xfs_trans *tp; in xfs_rtginode_ensure() local
734 xfs_trans_cancel(tp); in xfs_rtginode_ensure()
863 struct xfs_trans *tp, in xfs_growfs_rt_sb_fields() argument
895 struct xfs_trans *tp; in xfs_growfs_rt_zoned() local
979 &args.tp); in xfs_growfs_rt_bmblock()
982 nargs.tp = args.tp; in xfs_growfs_rt_bmblock()
1613 struct xfs_trans *tp, in xfs_rtmount_iread_extents() argument
1638 struct xfs_trans *tp, in xfs_rtmount_rtg() argument
[all …]
/fs/xfs/libxfs/
A Dxfs_defer.c189 struct xfs_trans *tp, in xfs_defer_barrier_create_intent() argument
206 struct xfs_trans *tp, in xfs_defer_barrier_create_done() argument
215 struct xfs_trans *tp, in xfs_defer_barrier_finish_item() argument
243 struct xfs_trans *tp, in xfs_defer_create_done() argument
277 struct xfs_trans *tp, in xfs_defer_create_intent() argument
310 struct xfs_trans *tp) in xfs_defer_create_intents() argument
376 struct xfs_trans *tp, in xfs_defer_trans_abort() argument
764 struct xfs_trans *tp) in xfs_defer_cancel() argument
769 xfs_defer_trans_abort(tp, &tp->t_dfops); in xfs_defer_cancel()
995 dfc->dfc_blkres = tp->t_blk_res - tp->t_blk_res_used; in xfs_defer_ops_capture()
[all …]
A Dxfs_dir2.c239 xfs_trans_t *tp, in xfs_dir_init() argument
257 args->trans = tp; in xfs_dir_init()
326 struct xfs_trans *tp, in xfs_dir_createname() argument
357 args->trans = tp; in xfs_dir_createname()
427 struct xfs_trans *tp, in xfs_dir_lookup() argument
449 args->trans = tp; in xfs_dir_lookup()
494 struct xfs_trans *tp, in xfs_dir_removename() argument
519 args->trans = tp; in xfs_dir_removename()
551 struct xfs_trans *tp, in xfs_dir_replace() argument
579 args->trans = tp; in xfs_dir_replace()
[all …]
A Dxfs_exchmaps.c85 struct xfs_trans *tp, in xfs_exchmaps_update_size() argument
162 struct xfs_trans *tp, in xfs_exchmaps_update_quota() argument
382 struct xfs_trans *tp, in xfs_exchmaps_one_step() argument
424 struct xfs_trans *tp, in xfs_exchmaps_attr_to_sf() argument
431 .trans = tp, in xfs_exchmaps_attr_to_sf()
456 struct xfs_trans *tp, in xfs_exchmaps_dir_to_sf() argument
463 .trans = tp, in xfs_exchmaps_dir_to_sf()
488 struct xfs_trans *tp, in xfs_exchmaps_link_to_sf() argument
531 struct xfs_trans *tp, in xfs_exchmaps_clear_reflink() argument
543 struct xfs_trans *tp, in xfs_exchmaps_do_postop_work() argument
[all …]
A Dxfs_inode_util.c267 struct xfs_trans *tp, in xfs_inode_init() argument
365 xfs_log_sb(tp); in xfs_inode_init()
435 struct xfs_trans *tp, in xfs_iunlink_update_bucket() argument
471 struct xfs_trans *tp, in xfs_iunlink_insert_inode() argument
531 struct xfs_trans *tp, in xfs_iunlink() argument
558 struct xfs_trans *tp, in xfs_iunlink_remove_inode() argument
633 struct xfs_trans *tp, in xfs_iunlink_remove() argument
657 struct xfs_trans *tp, in xfs_droplink() argument
678 return xfs_iunlink(tp, ip); in xfs_droplink()
686 struct xfs_trans *tp, in xfs_bumplink() argument
[all …]
A Dxfs_defer.h37 void xfs_defer_item_pause(struct xfs_trans *tp, struct xfs_defer_pending *dfp);
42 int xfs_defer_finish_noroll(struct xfs_trans **tp);
43 int xfs_defer_finish(struct xfs_trans **tp);
44 int xfs_defer_finish_one(struct xfs_trans *tp, struct xfs_defer_pending *dfp);
52 struct xfs_log_item *(*create_intent)(struct xfs_trans *tp,
55 struct xfs_log_item *(*create_done)(struct xfs_trans *tp,
57 int (*finish_item)(struct xfs_trans *tp, struct xfs_log_item *done,
59 void (*finish_cleanup)(struct xfs_trans *tp,
64 struct xfs_log_item *(*relog_intent)(struct xfs_trans *tp,
136 int xfs_defer_ops_capture_and_commit(struct xfs_trans *tp,
[all …]
A Dxfs_metadir.c83 struct xfs_trans *tp, in xfs_metadir_lookup() argument
90 .trans = tp, in xfs_metadir_lookup()
133 struct xfs_trans *tp, in xfs_metadir_load() argument
293 xfs_trans_ijoin(upd->tp, upd->dp, 0); in xfs_metadir_create()
339 &resblks, &upd->tp, &nospace_error); in xfs_metadir_start_link()
344 xfs_trans_cancel(upd->tp); in xfs_metadir_start_link()
345 upd->tp = NULL; in xfs_metadir_start_link()
420 error = xfs_trans_commit(upd->tp); in xfs_metadir_commit()
421 upd->tp = NULL; in xfs_metadir_commit()
435 xfs_trans_cancel(upd->tp); in xfs_metadir_cancel()
[all …]
A Dxfs_bmap.h21 struct xfs_trans *tp; /* transaction pointer */ member
179 struct xfs_trans *tp, xfs_extlen_t *blen);
183 int xfs_bmap_add_attrfork(struct xfs_trans *tp, struct xfs_inode *ip,
185 void xfs_bmap_local_to_extents_empty(struct xfs_trans *tp,
189 void (*init_fn)(struct xfs_trans *tp, struct xfs_buf *bp,
196 int xfs_bmap_last_before(struct xfs_trans *tp, struct xfs_inode *ip,
203 int xfs_bmapi_write(struct xfs_trans *tp, struct xfs_inode *ip,
206 int xfs_bunmapi(struct xfs_trans *tp, struct xfs_inode *ip,
228 int xfs_bmap_add_extent_unwritten_real(struct xfs_trans *tp,
257 void xfs_bmap_map_extent(struct xfs_trans *tp, struct xfs_inode *ip,
[all …]
A Dxfs_ialloc.c205 struct xfs_trans *tp, in xfs_inobt_insert() argument
298 struct xfs_trans *tp, in xfs_ialloc_inode_init() argument
353 if (tp) in xfs_ialloc_inode_init()
389 } else if (tp) { in xfs_ialloc_inode_init()
396 if (tp) { in xfs_ialloc_inode_init()
696 struct xfs_trans *tp, in xfs_ialloc_ag_alloc() argument
713 args.tp = tp; in xfs_ialloc_ag_alloc()
1066 struct xfs_trans *tp, in xfs_dialloc_check_ino() argument
1703 tp->t_dqinfo = NULL; in xfs_dialloc_roll()
1716 *tpp = tp; in xfs_dialloc_roll()
[all …]
A Dxfs_rtbitmap.c1061 .tp = tp, in xfs_rtfree_extent()
1117 struct xfs_trans *tp, in xfs_rtfree_blocks() argument
1157 struct xfs_trans *tp, in xfs_rtalloc_query_range() argument
1167 .tp = tp, in xfs_rtalloc_query_range()
1218 struct xfs_trans *tp, in xfs_rtalloc_query_all() argument
1238 .tp = tp, in xfs_rtalloc_extent_is_free()
1335 struct xfs_trans *tp; in xfs_rtfile_alloc_blocks() local
1360 xfs_trans_cancel(tp); in xfs_rtfile_alloc_blocks()
1374 struct xfs_trans *tp; in xfs_rtfile_initialize_block() local
1478 struct xfs_trans *tp, in xfs_rtbitmap_create() argument
[all …]
A Dxfs_alloc.h35 struct xfs_trans *tp; /* transaction pointer */ member
76 int xfs_alloc_get_freelist(struct xfs_perag *pag, struct xfs_trans *tp,
81 int xfs_free_ag_extent(struct xfs_trans *tp, struct xfs_buf *agbp,
97 struct xfs_trans *tp, /* transaction pointer */
145 struct xfs_trans *tp, /* transaction pointer */
155 struct xfs_trans *tp, in xfs_free_extent() argument
162 return __xfs_free_extent(tp, pag, agbno, len, oinfo, type, false); in xfs_free_extent()
196 int xfs_alloc_read_agfl(struct xfs_perag *pag, struct xfs_trans *tp,
233 int xfs_free_extent_later(struct xfs_trans *tp, xfs_fsblock_t bno,
277 void xfs_alloc_cancel_autoreap(struct xfs_trans *tp,
[all …]
/fs/xfs/scrub/
A Dtempfile.c50 struct xfs_trans *tp = NULL; in xrep_tempfile_create() local
66 ASSERT(sc->tp == NULL); in xrep_tempfile_create()
87 &tp); in xrep_tempfile_create()
147 error = xfs_trans_commit(tp); in xrep_tempfile_create()
166 xfs_trans_cancel(tp); in xrep_tempfile_create()
209 ASSERT(sc->tp == NULL); in xrep_tempfile_adjust_directory_tree()
258 ASSERT(sc->tp == NULL); in xrep_tempfile_remove_metadir()
531 xfs_trans_brelse(sc->tp, bp); in xrep_tempfile_copyin()
745 struct xfs_trans *tp = sc->tp; in xrep_tempexch_reserve_quota() local
808 ASSERT(sc->tp != NULL); in xrep_tempexch_trans_reserve()
[all …]
A Drepair.c186 error = xfs_trans_roll(&sc->tp); in xrep_roll_ag_trans()
242 error = xfs_defer_finish(&sc->tp); in xrep_defer_finish()
459 args.tp = sc->tp; in xrep_fix_freelist()
661 xfs_trans_brelse(ri->sc->tp, bp); in xrep_findroot_block()
769 bp = xfs_trans_getsb(sc->tp); in xrep_update_qflags()
809 ASSERT(sc->tp != NULL); in xrep_ino_dqattach()
897 sc->tp, sa->agi_bp); in xrep_ag_btcur_init()
1088 ASSERT(sc->tp); in xrep_reset_perag_resv()
1161 error = xfs_trans_roll(&sub->sc.tp); in xrep_metadata_inode_subtype()
1246 error = xfs_trans_roll(&sc->tp); in xrep_metadata_inode_forks()
[all …]
A Dorphanage.c54 struct xfs_trans *tp; in xrep_chown_orphanage() local
99 xfs_trans_log_inode(tp, dp, XFS_ILOG_CORE); in xrep_chown_orphanage()
104 xfs_trans_set_sync(tp); in xrep_chown_orphanage()
105 error = xfs_trans_commit(tp); in xrep_chown_orphanage()
138 ASSERT(sc->tp == NULL); in xrep_orphanage_create()
322 ASSERT(sc->tp == NULL); in xrep_adoption_trans_alloc()
348 &sc->tp); in xrep_adoption_trans_alloc()
358 xfs_trans_ijoin(sc->tp, sc->ip, 0); in xrep_adoption_trans_alloc()
565 xfs_bumplink(sc->tp, sc->orphanage); in xrep_adoption_move()
570 xfs_bumplink(sc->tp, sc->ip); in xrep_adoption_move()
[all …]

Completed in 86 milliseconds

123456789