diff options
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r-- | fs/xfs/xfs_inode.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index dde2e5dc6c62..c7c48da97ad4 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
@@ -1981,7 +1981,7 @@ xfs_ifree_cluster( | |||
1981 | if (lip->li_type == XFS_LI_INODE) { | 1981 | if (lip->li_type == XFS_LI_INODE) { |
1982 | iip = (xfs_inode_log_item_t *)lip; | 1982 | iip = (xfs_inode_log_item_t *)lip; |
1983 | ASSERT(iip->ili_logged == 1); | 1983 | ASSERT(iip->ili_logged == 1); |
1984 | lip->li_cb = (void(*)(xfs_buf_t*,xfs_log_item_t*)) xfs_istale_done; | 1984 | lip->li_cb = xfs_istale_done; |
1985 | xfs_trans_ail_copy_lsn(mp->m_ail, | 1985 | xfs_trans_ail_copy_lsn(mp->m_ail, |
1986 | &iip->ili_flush_lsn, | 1986 | &iip->ili_flush_lsn, |
1987 | &iip->ili_item.li_lsn); | 1987 | &iip->ili_item.li_lsn); |
@@ -2051,9 +2051,8 @@ xfs_ifree_cluster( | |||
2051 | xfs_trans_ail_copy_lsn(mp->m_ail, &iip->ili_flush_lsn, | 2051 | xfs_trans_ail_copy_lsn(mp->m_ail, &iip->ili_flush_lsn, |
2052 | &iip->ili_item.li_lsn); | 2052 | &iip->ili_item.li_lsn); |
2053 | 2053 | ||
2054 | xfs_buf_attach_iodone(bp, | 2054 | xfs_buf_attach_iodone(bp, xfs_istale_done, |
2055 | (void(*)(xfs_buf_t*,xfs_log_item_t*)) | 2055 | &iip->ili_item); |
2056 | xfs_istale_done, (xfs_log_item_t *)iip); | ||
2057 | 2056 | ||
2058 | if (ip != free_ip) | 2057 | if (ip != free_ip) |
2059 | xfs_iunlock(ip, XFS_ILOCK_EXCL); | 2058 | xfs_iunlock(ip, XFS_ILOCK_EXCL); |
@@ -3065,8 +3064,7 @@ xfs_iflush_int( | |||
3065 | * and unlock the inode's flush lock when the inode is | 3064 | * and unlock the inode's flush lock when the inode is |
3066 | * completely written to disk. | 3065 | * completely written to disk. |
3067 | */ | 3066 | */ |
3068 | xfs_buf_attach_iodone(bp, (void(*)(xfs_buf_t*,xfs_log_item_t*)) | 3067 | xfs_buf_attach_iodone(bp, xfs_iflush_done, &iip->ili_item); |
3069 | xfs_iflush_done, (xfs_log_item_t *)iip); | ||
3070 | 3068 | ||
3071 | ASSERT(XFS_BUF_FSPRIVATE(bp, void *) != NULL); | 3069 | ASSERT(XFS_BUF_FSPRIVATE(bp, void *) != NULL); |
3072 | ASSERT(XFS_BUF_IODONE_FUNC(bp) != NULL); | 3070 | ASSERT(XFS_BUF_IODONE_FUNC(bp) != NULL); |