Lines Matching +full:chg +full:- +full:int
1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2002,2005 Silicon Graphics, Inc.
34 xfs_lsn_t li_lsn; /* last on-disk lsn */
71 void (*iop_size)(struct xfs_log_item *, int *, int *);
74 void (*iop_unpin)(struct xfs_log_item *, int remove);
76 int (*iop_precommit)(struct xfs_trans *tp, struct xfs_log_item *lip);
81 int (*iop_recover)(struct xfs_log_item *lip,
103 return lip->li_ops->flags & XFS_ITEM_INTENT; in xlog_item_is_intent()
109 return lip->li_ops->flags & XFS_ITEM_INTENT_DONE; in xlog_item_is_intent_done()
113 int type, const struct xfs_item_ops *ops);
127 unsigned int t_magic; /* magic number */
128 unsigned int t_log_res; /* amt of log space resvd */
129 unsigned int t_log_count; /* count for perm log res */
130 unsigned int t_blk_res; /* # of blocks resvd */
131 unsigned int t_blk_res_used; /* # of resvd blocks used */
132 unsigned int t_rtx_res; /* # of rt extents resvd */
133 unsigned int t_rtx_res_used; /* # of resvd rt extents used */
134 unsigned int t_flags; /* misc flags */
141 int64_t t_fdblocks_delta; /* superblock fdblocks chg */
142 int64_t t_res_fdblocks_delta; /* on-disk only chg */
143 int64_t t_frextents_delta;/* superblock freextents chg*/
144 int64_t t_res_frextents_delta; /* on-disk only chg */
148 int64_t t_rextsize_delta;/* superblock rextsize chg */
149 int64_t t_rbmblocks_delta;/* superblock rbmblocks chg */
151 int64_t t_rextents_delta;/* superblocks rextents chg */
152 int64_t t_rextslog_delta;/* superblocks rextslog chg */
163 #define xfs_trans_set_sync(tp) ((tp)->t_flags |= XFS_TRANS_SYNC)
168 int xfs_trans_alloc(struct xfs_mount *mp, struct xfs_trans_res *resp,
171 int xfs_trans_alloc_empty(struct xfs_mount *mp,
175 int xfs_trans_get_buf_map(struct xfs_trans *tp, struct xfs_buftarg *target,
176 struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags,
179 static inline int
184 int numblks, in xfs_trans_get_buf()
192 int xfs_trans_read_buf_map(struct xfs_mount *mp,
195 struct xfs_buf_map *map, int nmaps,
200 static inline int
206 int numblks, in xfs_trans_read_buf()
228 void xfs_trans_ichgtime(struct xfs_trans *, struct xfs_inode *, int);
236 int xfs_trans_commit(struct xfs_trans *);
237 int xfs_trans_roll(struct xfs_trans **);
238 int xfs_trans_roll_inode(struct xfs_trans **, struct xfs_inode *);
240 int xfs_trans_ail_init(struct xfs_mount *);
255 return lip->li_ops->iop_relog(lip, tp); in xfs_trans_item_relog()
260 int xfs_trans_alloc_inode(struct xfs_inode *ip, struct xfs_trans_res *resv,
261 unsigned int dblocks, unsigned int rblocks, bool force,
263 int xfs_trans_alloc_icreate(struct xfs_mount *mp, struct xfs_trans_res *resv,
265 struct xfs_dquot *pdqp, unsigned int dblocks,
267 int xfs_trans_alloc_ichange(struct xfs_inode *ip, struct xfs_dquot *udqp,
270 int xfs_trans_alloc_dir(struct xfs_inode *dp, struct xfs_trans_res *resv,
271 struct xfs_inode *ip, unsigned int *dblocks,
272 struct xfs_trans **tpp, int *nospace_error);
278 ASSERT(current->journal_info == NULL); in xfs_trans_set_context()
279 tp->t_pflags = memalloc_nofs_save(); in xfs_trans_set_context()
280 current->journal_info = tp; in xfs_trans_set_context()
287 if (current->journal_info == tp) { in xfs_trans_clear_context()
288 memalloc_nofs_restore(tp->t_pflags); in xfs_trans_clear_context()
289 current->journal_info = NULL; in xfs_trans_clear_context()
298 ASSERT(current->journal_info == old_tp); in xfs_trans_switch_context()
299 new_tp->t_pflags = old_tp->t_pflags; in xfs_trans_switch_context()
300 old_tp->t_pflags = 0; in xfs_trans_switch_context()
301 current->journal_info = new_tp; in xfs_trans_switch_context()