summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_trans.h
diff options
context:
space:
mode:
authorJosef 'Jeff' Sipek2008-03-27 07:58:27 +0100
committerLachlan McIlroy2008-04-18 03:41:57 +0200
commit535f6b3735db6ef6026537bfe55ae00c3d9cc1ee (patch)
tree49be6c12a19332a0ce0288143f67b44e4b8538b8 /fs/xfs/xfs_trans.h
parent[XFS] Remove superflous xfs_readsb call in xfs_mountfs. (diff)
downloadkernel-qcow2-linux-535f6b3735db6ef6026537bfe55ae00c3d9cc1ee.tar.gz
kernel-qcow2-linux-535f6b3735db6ef6026537bfe55ae00c3d9cc1ee.tar.xz
kernel-qcow2-linux-535f6b3735db6ef6026537bfe55ae00c3d9cc1ee.zip
[XFS] Replace custom AIL linked-list code with struct list_head
Replace the xfs_ail_entry_t with a struct list_head and clean the surrounding code up. Also fixes a livelock in xfs_trans_first_push_ail() by terminating the loop at the head of the list correctly. SGI-PV: 978682 SGI-Modid: xfs-linux-melb:xfs-kern:30636a Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net> Signed-off-by: David Chinner <dgc@sgi.com> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/xfs/xfs_trans.h')
-rw-r--r--fs/xfs/xfs_trans.h7
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/xfs/xfs_trans.h b/fs/xfs/xfs_trans.h
index b5effce00089..0804207c7391 100644
--- a/fs/xfs/xfs_trans.h
+++ b/fs/xfs/xfs_trans.h
@@ -113,13 +113,8 @@ struct xfs_mount;
struct xfs_trans;
struct xfs_dquot_acct;
-typedef struct xfs_ail_entry {
- struct xfs_log_item *ail_forw; /* AIL forw pointer */
- struct xfs_log_item *ail_back; /* AIL back pointer */
-} xfs_ail_entry_t;
-
typedef struct xfs_log_item {
- xfs_ail_entry_t li_ail; /* AIL pointers */
+ struct list_head li_ail; /* AIL pointers */
xfs_lsn_t li_lsn; /* last on-disk lsn */
struct xfs_log_item_desc *li_desc; /* ptr to current desc*/
struct xfs_mount *li_mountp; /* ptr to fs mount */