diff options
| author | Alex Elder <aelder@sgi.com> | 2010-05-24 12:57:36 -0400 |
|---|---|---|
| committer | Alex Elder <aelder@sgi.com> | 2010-05-24 12:57:36 -0400 |
| commit | 88e88374ee4958786397a57f684de6f1fc5e0242 (patch) | |
| tree | 750fe86ece5d65e597223eb07c5ce7cf5b3749a0 /fs/xfs/xfs_log.h | |
| parent | 7e125f7b9cbfce4101191b8076d606c517a73066 (diff) | |
| parent | ccf7c23fc129e75ef60e6f59f60a485b7a056598 (diff) | |
Merge branch 'delayed-logging-for-2.6.35' into for-linus
Diffstat (limited to 'fs/xfs/xfs_log.h')
| -rw-r--r-- | fs/xfs/xfs_log.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/fs/xfs/xfs_log.h b/fs/xfs/xfs_log.h index 229d1f36ba9a..04c78e642cc8 100644 --- a/fs/xfs/xfs_log.h +++ b/fs/xfs/xfs_log.h | |||
| @@ -19,7 +19,6 @@ | |||
| 19 | #define __XFS_LOG_H__ | 19 | #define __XFS_LOG_H__ |
| 20 | 20 | ||
| 21 | /* get lsn fields */ | 21 | /* get lsn fields */ |
| 22 | |||
| 23 | #define CYCLE_LSN(lsn) ((uint)((lsn)>>32)) | 22 | #define CYCLE_LSN(lsn) ((uint)((lsn)>>32)) |
| 24 | #define BLOCK_LSN(lsn) ((uint)(lsn)) | 23 | #define BLOCK_LSN(lsn) ((uint)(lsn)) |
| 25 | 24 | ||
| @@ -114,6 +113,9 @@ struct xfs_log_vec { | |||
| 114 | struct xfs_log_vec *lv_next; /* next lv in build list */ | 113 | struct xfs_log_vec *lv_next; /* next lv in build list */ |
| 115 | int lv_niovecs; /* number of iovecs in lv */ | 114 | int lv_niovecs; /* number of iovecs in lv */ |
| 116 | struct xfs_log_iovec *lv_iovecp; /* iovec array */ | 115 | struct xfs_log_iovec *lv_iovecp; /* iovec array */ |
| 116 | struct xfs_log_item *lv_item; /* owner */ | ||
| 117 | char *lv_buf; /* formatted buffer */ | ||
| 118 | int lv_buf_len; /* size of formatted buffer */ | ||
| 117 | }; | 119 | }; |
| 118 | 120 | ||
| 119 | /* | 121 | /* |
| @@ -134,6 +136,7 @@ struct xlog_in_core; | |||
| 134 | struct xlog_ticket; | 136 | struct xlog_ticket; |
| 135 | struct xfs_log_item; | 137 | struct xfs_log_item; |
| 136 | struct xfs_item_ops; | 138 | struct xfs_item_ops; |
| 139 | struct xfs_trans; | ||
| 137 | 140 | ||
| 138 | void xfs_log_item_init(struct xfs_mount *mp, | 141 | void xfs_log_item_init(struct xfs_mount *mp, |
| 139 | struct xfs_log_item *item, | 142 | struct xfs_log_item *item, |
| @@ -187,9 +190,16 @@ int xfs_log_need_covered(struct xfs_mount *mp); | |||
| 187 | 190 | ||
| 188 | void xlog_iodone(struct xfs_buf *); | 191 | void xlog_iodone(struct xfs_buf *); |
| 189 | 192 | ||
| 190 | struct xlog_ticket * xfs_log_ticket_get(struct xlog_ticket *ticket); | 193 | struct xlog_ticket *xfs_log_ticket_get(struct xlog_ticket *ticket); |
| 191 | void xfs_log_ticket_put(struct xlog_ticket *ticket); | 194 | void xfs_log_ticket_put(struct xlog_ticket *ticket); |
| 192 | 195 | ||
| 196 | xlog_tid_t xfs_log_get_trans_ident(struct xfs_trans *tp); | ||
| 197 | |||
| 198 | int xfs_log_commit_cil(struct xfs_mount *mp, struct xfs_trans *tp, | ||
| 199 | struct xfs_log_vec *log_vector, | ||
| 200 | xfs_lsn_t *commit_lsn, int flags); | ||
| 201 | bool xfs_log_item_in_current_chkpt(struct xfs_log_item *lip); | ||
| 202 | |||
| 193 | #endif | 203 | #endif |
| 194 | 204 | ||
| 195 | 205 | ||
