Lines Matching +full:chg +full:- +full:int
1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2002,2005 Silicon Graphics, Inc.
33 xfs_lsn_t li_lsn; /* last on-disk lsn */
67 void (*iop_size)(struct xfs_log_item *, int *, int *);
70 void (*iop_unpin)(struct xfs_log_item *, int remove);
75 int (*iop_recover)(struct xfs_log_item *lip,
86 return lip->li_ops->iop_recover != NULL && in xlog_item_is_intent()
87 lip->li_ops->iop_match != NULL; in xlog_item_is_intent()
90 /* Is this a log intent-done item? */
94 return lip->li_ops->iop_unpin == NULL && in xlog_item_is_intent_done()
95 lip->li_ops->iop_push == NULL; in xlog_item_is_intent_done()
105 int type, const struct xfs_item_ops *ops);
125 unsigned int t_magic; /* magic number */
126 unsigned int t_log_res; /* amt of log space resvd */
127 unsigned int t_log_count; /* count for perm log res */
128 unsigned int t_blk_res; /* # of blocks resvd */
129 unsigned int t_blk_res_used; /* # of resvd blocks used */
130 unsigned int t_rtx_res; /* # of rt extents resvd */
131 unsigned int t_rtx_res_used; /* # of resvd rt extents used */
132 unsigned int t_flags; /* misc flags */
139 int64_t t_fdblocks_delta; /* superblock fdblocks chg */
140 int64_t t_res_fdblocks_delta; /* on-disk only chg */
141 int64_t t_frextents_delta;/* superblock freextents chg*/
142 int64_t t_res_frextents_delta; /* on-disk only chg */
151 int64_t t_rextsize_delta;/* superblock rextsize chg */
152 int64_t t_rbmblocks_delta;/* superblock rbmblocks chg */
154 int64_t t_rextents_delta;/* superblocks rextents chg */
155 int64_t t_rextslog_delta;/* superblocks rextslog chg */
166 #define xfs_trans_set_sync(tp) ((tp)->t_flags |= XFS_TRANS_SYNC)
169 #define xfs_trans_agblocks_delta(tp, d) ((tp)->t_ag_freeblks_delta += (int64_t)d)
170 #define xfs_trans_agflist_delta(tp, d) ((tp)->t_ag_flist_delta += (int64_t)d)
171 #define xfs_trans_agbtree_delta(tp, d) ((tp)->t_ag_btree_delta += (int64_t)d)
181 int xfs_trans_alloc(struct xfs_mount *mp, struct xfs_trans_res *resp,
184 int xfs_trans_alloc_empty(struct xfs_mount *mp,
188 int xfs_trans_get_buf_map(struct xfs_trans *tp, struct xfs_buftarg *target,
189 struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags,
192 static inline int
197 int numblks, in xfs_trans_get_buf()
205 int xfs_trans_read_buf_map(struct xfs_mount *mp,
208 struct xfs_buf_map *map, int nmaps,
213 static inline int
219 int numblks, in xfs_trans_read_buf()
241 void xfs_trans_ichgtime(struct xfs_trans *, struct xfs_inode *, int);
249 int xfs_trans_commit(struct xfs_trans *);
250 int xfs_trans_roll(struct xfs_trans **);
251 int xfs_trans_roll_inode(struct xfs_trans **, struct xfs_inode *);
253 int xfs_trans_ail_init(struct xfs_mount *);
268 return lip->li_ops->iop_relog(lip, tp); in xfs_trans_item_relog()
275 ASSERT(current->journal_info == NULL); in xfs_trans_set_context()
276 tp->t_pflags = memalloc_nofs_save(); in xfs_trans_set_context()
277 current->journal_info = tp; in xfs_trans_set_context()
284 if (current->journal_info == tp) { in xfs_trans_clear_context()
285 memalloc_nofs_restore(tp->t_pflags); in xfs_trans_clear_context()
286 current->journal_info = NULL; in xfs_trans_clear_context()
295 ASSERT(current->journal_info == old_tp); in xfs_trans_switch_context()
296 new_tp->t_pflags = old_tp->t_pflags; in xfs_trans_switch_context()
297 old_tp->t_pflags = 0; in xfs_trans_switch_context()
298 current->journal_info = new_tp; in xfs_trans_switch_context()