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);
99 return lip->li_ops->flags & XFS_ITEM_INTENT; in xlog_item_is_intent()
105 return lip->li_ops->flags & XFS_ITEM_INTENT_DONE; in xlog_item_is_intent_done()
109 int type, const struct xfs_item_ops *ops);
123 unsigned int t_magic; /* magic number */
124 unsigned int t_log_res; /* amt of log space resvd */
125 unsigned int t_log_count; /* count for perm log res */
126 unsigned int t_blk_res; /* # of blocks resvd */
127 unsigned int t_blk_res_used; /* # of resvd blocks used */
128 unsigned int t_rtx_res; /* # of rt extents resvd */
129 unsigned int t_rtx_res_used; /* # of resvd rt extents used */
130 unsigned int t_flags; /* misc flags */
137 int64_t t_fdblocks_delta; /* superblock fdblocks chg */
138 int64_t t_res_fdblocks_delta; /* on-disk only chg */
139 int64_t t_frextents_delta;/* superblock freextents chg*/
140 int64_t t_res_frextents_delta; /* on-disk only chg */
144 int64_t t_rextsize_delta;/* superblock rextsize chg */
145 int64_t t_rbmblocks_delta;/* superblock rbmblocks chg */
147 int64_t t_rextents_delta;/* superblocks rextents chg */
148 int64_t t_rextslog_delta;/* superblocks rextslog chg */
159 #define xfs_trans_set_sync(tp) ((tp)->t_flags |= XFS_TRANS_SYNC)
164 int xfs_trans_alloc(struct xfs_mount *mp, struct xfs_trans_res *resp,
167 int xfs_trans_reserve_more(struct xfs_trans *tp,
168 unsigned int blocks, unsigned int rtextents);
169 int xfs_trans_alloc_empty(struct xfs_mount *mp,
173 int xfs_trans_get_buf_map(struct xfs_trans *tp, struct xfs_buftarg *target,
174 struct xfs_buf_map *map, int nmaps, xfs_buf_flags_t flags,
177 static inline int
182 int numblks, in xfs_trans_get_buf()
190 int xfs_trans_read_buf_map(struct xfs_mount *mp,
193 struct xfs_buf_map *map, int nmaps,
198 static inline int
204 int numblks, in xfs_trans_read_buf()
226 void xfs_trans_ichgtime(struct xfs_trans *, struct xfs_inode *, int);
234 int xfs_trans_commit(struct xfs_trans *);
235 int xfs_trans_roll(struct xfs_trans **);
236 int xfs_trans_roll_inode(struct xfs_trans **, struct xfs_inode *);
238 int xfs_trans_ail_init(struct xfs_mount *);
250 int xfs_trans_alloc_inode(struct xfs_inode *ip, struct xfs_trans_res *resv,
251 unsigned int dblocks, unsigned int rblocks, bool force,
253 int xfs_trans_reserve_more_inode(struct xfs_trans *tp, struct xfs_inode *ip,
254 unsigned int dblocks, unsigned int rblocks, bool force_quota);
255 int xfs_trans_alloc_icreate(struct xfs_mount *mp, struct xfs_trans_res *resv,
257 struct xfs_dquot *pdqp, unsigned int dblocks,
259 int xfs_trans_alloc_ichange(struct xfs_inode *ip, struct xfs_dquot *udqp,
262 int xfs_trans_alloc_dir(struct xfs_inode *dp, struct xfs_trans_res *resv,
263 struct xfs_inode *ip, unsigned int *dblocks,
264 struct xfs_trans **tpp, int *nospace_error);
270 ASSERT(current->journal_info == NULL); in xfs_trans_set_context()
271 tp->t_pflags = memalloc_nofs_save(); in xfs_trans_set_context()
272 current->journal_info = tp; in xfs_trans_set_context()
279 if (current->journal_info == tp) { in xfs_trans_clear_context()
280 memalloc_nofs_restore(tp->t_pflags); in xfs_trans_clear_context()
281 current->journal_info = NULL; in xfs_trans_clear_context()
290 ASSERT(current->journal_info == old_tp); in xfs_trans_switch_context()
291 new_tp->t_pflags = old_tp->t_pflags; in xfs_trans_switch_context()
292 old_tp->t_pflags = 0; in xfs_trans_switch_context()
293 current->journal_info = new_tp; in xfs_trans_switch_context()