aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_inode_item.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@infradead.org>2010-06-23 04:11:15 -0400
committerAlex Elder <aelder@sgi.com>2010-07-26 14:16:35 -0400
commitca30b2a7b7ac899ac4da6030ccbebf2f137b8e6d (patch)
treeb934c18bb70196aa44c7eb586569692e1b889f82 /fs/xfs/xfs_inode_item.c
parent7bfa31d8e0f90b65ff23be94fca65ce261b43fc8 (diff)
xfs: give li_cb callbacks the correct prototype
Stop the function pointer casting madness and give all the li_cb instances correct prototype. Signed-off-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Dave Chinner <dchinner@redhat.com>
Diffstat (limited to 'fs/xfs/xfs_inode_item.c')
-rw-r--r--fs/xfs/xfs_inode_item.c23
1 files changed, 10 insertions, 13 deletions
diff --git a/fs/xfs/xfs_inode_item.c b/fs/xfs/xfs_inode_item.c
index 2626aaca42f2..c7e70d708345 100644
--- a/fs/xfs/xfs_inode_item.c
+++ b/fs/xfs/xfs_inode_item.c
@@ -867,14 +867,14 @@ xfs_inode_item_destroy(
867 * from the AIL if it has not been re-logged, and unlocking the inode's 867 * from the AIL if it has not been re-logged, and unlocking the inode's
868 * flush lock. 868 * flush lock.
869 */ 869 */
870/*ARGSUSED*/
871void 870void
872xfs_iflush_done( 871xfs_iflush_done(
873 xfs_buf_t *bp, 872 struct xfs_buf *bp,
874 xfs_inode_log_item_t *iip) 873 struct xfs_log_item *lip)
875{ 874{
875 struct xfs_inode_log_item *iip = INODE_ITEM(lip);
876 xfs_inode_t *ip = iip->ili_inode; 876 xfs_inode_t *ip = iip->ili_inode;
877 struct xfs_ail *ailp = iip->ili_item.li_ailp; 877 struct xfs_ail *ailp = lip->li_ailp;
878 878
879 /* 879 /*
880 * We only want to pull the item from the AIL if it is 880 * We only want to pull the item from the AIL if it is
@@ -885,12 +885,11 @@ xfs_iflush_done(
885 * the lock since it's cheaper, and then we recheck while 885 * the lock since it's cheaper, and then we recheck while
886 * holding the lock before removing the inode from the AIL. 886 * holding the lock before removing the inode from the AIL.
887 */ 887 */
888 if (iip->ili_logged && 888 if (iip->ili_logged && lip->li_lsn == iip->ili_flush_lsn) {
889 (iip->ili_item.li_lsn == iip->ili_flush_lsn)) {
890 spin_lock(&ailp->xa_lock); 889 spin_lock(&ailp->xa_lock);
891 if (iip->ili_item.li_lsn == iip->ili_flush_lsn) { 890 if (lip->li_lsn == iip->ili_flush_lsn) {
892 /* xfs_trans_ail_delete() drops the AIL lock. */ 891 /* xfs_trans_ail_delete() drops the AIL lock. */
893 xfs_trans_ail_delete(ailp, (xfs_log_item_t*)iip); 892 xfs_trans_ail_delete(ailp, lip);
894 } else { 893 } else {
895 spin_unlock(&ailp->xa_lock); 894 spin_unlock(&ailp->xa_lock);
896 } 895 }
@@ -908,8 +907,6 @@ xfs_iflush_done(
908 * Release the inode's flush lock since we're done with it. 907 * Release the inode's flush lock since we're done with it.
909 */ 908 */
910 xfs_ifunlock(ip); 909 xfs_ifunlock(ip);
911
912 return;
913} 910}
914 911
915/* 912/*
@@ -959,10 +956,10 @@ xfs_iflush_abort(
959 956
960void 957void
961xfs_istale_done( 958xfs_istale_done(
962 xfs_buf_t *bp, 959 struct xfs_buf *bp,
963 xfs_inode_log_item_t *iip) 960 struct xfs_log_item *lip)
964{ 961{
965 xfs_iflush_abort(iip->ili_inode); 962 xfs_iflush_abort(INODE_ITEM(lip)->ili_inode);
966} 963}
967 964
968/* 965/*