summaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_log_recover.c
diff options
context:
space:
mode:
authorDave Chinner2010-12-20 02:34:26 +0100
committerDave Chinner2010-12-20 02:34:26 +0100
commite60599492990d1b52c70e9ed2f8e062fe11ca937 (patch)
treecff4380f728123db94f432e46cc4b1028ba61073 /fs/xfs/xfs_log_recover.c
parentxfs: remove all the inodes on a buffer from the AIL in bulk (diff)
downloadkernel-qcow2-linux-e60599492990d1b52c70e9ed2f8e062fe11ca937.tar.gz
kernel-qcow2-linux-e60599492990d1b52c70e9ed2f8e062fe11ca937.tar.xz
kernel-qcow2-linux-e60599492990d1b52c70e9ed2f8e062fe11ca937.zip
xfs: use AIL bulk update function to implement single updates
We now have two copies of AIL insert operations that are mostly duplicate functionality. The single log item updates can be implemented via the bulk updates by turning xfs_trans_ail_update() into a simple wrapper. This removes all the duplicate insert functionality and associated helpers. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'fs/xfs/xfs_log_recover.c')
-rw-r--r--fs/xfs/xfs_log_recover.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/xfs/xfs_log_recover.c b/fs/xfs/xfs_log_recover.c
index d7219e29d9ab..4abe7a9b380e 100644
--- a/fs/xfs/xfs_log_recover.c
+++ b/fs/xfs/xfs_log_recover.c
@@ -2573,7 +2573,7 @@ xlog_recover_efi_pass2(
/*
* xfs_trans_ail_update() drops the AIL lock.
*/
- xfs_trans_ail_update(log->l_ailp, (xfs_log_item_t *)efip, lsn);
+ xfs_trans_ail_update(log->l_ailp, &efip->efi_item, lsn);
return 0;
}