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 */
73 void (*iop_size)(struct xfs_log_item *, int *, int *);
76 void (*iop_unpin)(struct xfs_log_item *, int remove);
78 int (*iop_precommit)(struct xfs_trans *tp, struct xfs_log_item *lip);
101 return lip->li_ops->flags & XFS_ITEM_INTENT; in xlog_item_is_intent()
107 return lip->li_ops->flags & XFS_ITEM_INTENT_DONE; in xlog_item_is_intent_done()
111 int type, const struct xfs_item_ops *ops);
125 unsigned int t_log_res; /* amt of log space resvd */
126 unsigned int t_log_count; /* count for perm log res */
127 unsigned int t_blk_res; /* # of blocks resvd */
128 unsigned int t_blk_res_used; /* # of resvd blocks used */
129 unsigned int t_rtx_res; /* # of rt extents resvd */
130 unsigned int t_rtx_res_used; /* # of resvd rt extents used */
131 unsigned int t_flags; /* misc flags */
138 int64_t t_fdblocks_delta; /* superblock fdblocks chg */
139 int64_t t_res_fdblocks_delta; /* on-disk only chg */
140 int64_t t_frextents_delta;/* superblock freextents chg*/
141 int64_t t_res_frextents_delta; /* on-disk only chg */
145 int64_t t_rextsize_delta;/* superblock rextsize chg */
146 int64_t t_rbmblocks_delta;/* superblock rbmblocks chg */
148 int64_t t_rextents_delta;/* superblocks rextents chg */
149 int64_t t_rextslog_delta;/* superblocks rextslog chg */
161 #define xfs_trans_set_sync(tp) ((tp)->t_flags |= XFS_TRANS_SYNC)
166 int xfs_trans_alloc(struct xfs_mount *mp, struct xfs_trans_res *resp,
169 int xfs_trans_reserve_more(struct xfs_trans *tp,
170 unsigned int blocks, unsigned int rtextents);
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()
237 int xfs_trans_commit(struct xfs_trans *);
238 int xfs_trans_roll(struct xfs_trans **);
239 int xfs_trans_roll_inode(struct xfs_trans **, struct xfs_inode *);
241 int xfs_trans_ail_init(struct xfs_mount *);
253 int xfs_trans_alloc_inode(struct xfs_inode *ip, struct xfs_trans_res *resv,
254 unsigned int dblocks, unsigned int rblocks, bool force,
256 int xfs_trans_reserve_more_inode(struct xfs_trans *tp, struct xfs_inode *ip,
257 unsigned int dblocks, unsigned int rblocks, bool force_quota);
258 int xfs_trans_alloc_icreate(struct xfs_mount *mp, struct xfs_trans_res *resv,
260 struct xfs_dquot *pdqp, unsigned int dblocks,
262 int xfs_trans_alloc_ichange(struct xfs_inode *ip, struct xfs_dquot *udqp,
265 int xfs_trans_alloc_dir(struct xfs_inode *dp, struct xfs_trans_res *resv,
266 struct xfs_inode *ip, unsigned int *dblocks,
267 struct xfs_trans **tpp, int *nospace_error);
273 tp->t_pflags = memalloc_nofs_save(); in xfs_trans_set_context()
280 memalloc_nofs_restore(tp->t_pflags); in xfs_trans_clear_context()
288 new_tp->t_pflags = old_tp->t_pflags; in xfs_trans_switch_context()
289 old_tp->t_pflags = 0; in xfs_trans_switch_context()