/* * Save a log intent item and a list of extents, so that we can replay * whatever action had to happen to the extent list and file the log done * item.
*/ struct xfs_defer_pending { struct list_head dfp_list; /* pending items */ struct list_head dfp_work; /* work items */ struct xfs_log_item *dfp_intent; /* log intent item */ struct xfs_log_item *dfp_done; /* log done item */ conststruct xfs_defer_op_type *dfp_ops; unsignedint dfp_count; /* # extent items */ unsignedint dfp_flags;
};
/* * Create a log intent item for this deferred item, but don't actually finish * the work. Caller must clear this before the final transaction commit.
*/ #define XFS_DEFER_PAUSED (1U << 0)
/* * Rename w/ parent pointers can require up to 5 inodes with deferred ops to * be joined to the transaction: src_dp, target_dp, src_ip, target_ip, and wip. * These inodes are locked in sorted order by their inode numbers
*/ #define XFS_DEFER_OPS_NR_INODES 5 #define XFS_DEFER_OPS_NR_BUFS 2 /* join up to two buffers */
/* Resources that must be held across a transaction roll. */ struct xfs_defer_resources { /* held buffers */ struct xfs_buf *dr_bp[XFS_DEFER_OPS_NR_BUFS];
/* inodes with no unlock flags */ struct xfs_inode *dr_ip[XFS_DEFER_OPS_NR_INODES];
/* number of held buffers */ unsignedshort dr_bufs;
/* bitmap of ordered buffers */ unsignedshort dr_ordered;
/* number of held inodes */ unsignedshort dr_inos;
};
/* * This structure enables a dfops user to detach the chain of deferred * operations from a transaction so that they can be continued later.
*/ struct xfs_defer_capture { /* List of other capture structures. */ struct list_head dfc_list;
/* Deferred ops state saved from the transaction. */ struct list_head dfc_dfops; unsignedint dfc_tpflags;
/* Block reservations for the data and rt devices. */ unsignedint dfc_blkres; unsignedint dfc_rtxres;
/* Log reservation saved from the transaction. */ unsignedint dfc_logres;
struct xfs_defer_resources dfc_held;
};
/* * Functions to capture a chain of deferred operations and continue them later. * This doesn't normally happen except log recovery.
*/ int xfs_defer_ops_capture_and_commit(struct xfs_trans *tp, struct list_head *capture_list); void xfs_defer_ops_continue(struct xfs_defer_capture *d, struct xfs_trans *tp, struct xfs_defer_resources *dres); void xfs_defer_ops_capture_abort(struct xfs_mount *mp, struct xfs_defer_capture *d); void xfs_defer_resources_rele(struct xfs_defer_resources *dres);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.