diff options
Diffstat (limited to 'fs/xfs/xfs_super.c')
-rw-r--r-- | fs/xfs/xfs_super.c | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index 5cf06b85fd9d..3eca58f51ae9 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c | |||
@@ -796,8 +796,6 @@ xfs_fs_destroy_inode( | |||
796 | if (is_bad_inode(inode)) | 796 | if (is_bad_inode(inode)) |
797 | goto out_reclaim; | 797 | goto out_reclaim; |
798 | 798 | ||
799 | xfs_ioend_wait(ip); | ||
800 | |||
801 | ASSERT(XFS_FORCED_SHUTDOWN(ip->i_mount) || ip->i_delayed_blks == 0); | 799 | ASSERT(XFS_FORCED_SHUTDOWN(ip->i_mount) || ip->i_delayed_blks == 0); |
802 | 800 | ||
803 | /* | 801 | /* |
@@ -837,7 +835,6 @@ xfs_fs_inode_init_once( | |||
837 | inode_init_once(VFS_I(ip)); | 835 | inode_init_once(VFS_I(ip)); |
838 | 836 | ||
839 | /* xfs inode */ | 837 | /* xfs inode */ |
840 | atomic_set(&ip->i_iocount, 0); | ||
841 | atomic_set(&ip->i_pincount, 0); | 838 | atomic_set(&ip->i_pincount, 0); |
842 | spin_lock_init(&ip->i_flags_lock); | 839 | spin_lock_init(&ip->i_flags_lock); |
843 | init_waitqueue_head(&ip->i_ipin_wait); | 840 | init_waitqueue_head(&ip->i_ipin_wait); |
@@ -887,7 +884,7 @@ xfs_log_inode( | |||
887 | } | 884 | } |
888 | 885 | ||
889 | xfs_ilock(ip, XFS_ILOCK_EXCL); | 886 | xfs_ilock(ip, XFS_ILOCK_EXCL); |
890 | xfs_trans_ijoin_ref(tp, ip, XFS_ILOCK_EXCL); | 887 | xfs_trans_ijoin(tp, ip, XFS_ILOCK_EXCL); |
891 | xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); | 888 | xfs_trans_log_inode(tp, ip, XFS_ILOG_CORE); |
892 | return xfs_trans_commit(tp, 0); | 889 | return xfs_trans_commit(tp, 0); |
893 | } | 890 | } |
@@ -914,9 +911,8 @@ xfs_fs_write_inode( | |||
914 | * of forcing it all the way to stable storage using a | 911 | * of forcing it all the way to stable storage using a |
915 | * synchronous transaction we let the log force inside the | 912 | * synchronous transaction we let the log force inside the |
916 | * ->sync_fs call do that for thus, which reduces the number | 913 | * ->sync_fs call do that for thus, which reduces the number |
917 | * of synchronous log foces dramatically. | 914 | * of synchronous log forces dramatically. |
918 | */ | 915 | */ |
919 | xfs_ioend_wait(ip); | ||
920 | error = xfs_log_inode(ip); | 916 | error = xfs_log_inode(ip); |
921 | if (error) | 917 | if (error) |
922 | goto out; | 918 | goto out; |
@@ -1019,7 +1015,7 @@ xfs_fs_put_super( | |||
1019 | */ | 1015 | */ |
1020 | xfs_filestream_unmount(mp); | 1016 | xfs_filestream_unmount(mp); |
1021 | 1017 | ||
1022 | XFS_bflush(mp->m_ddev_targp); | 1018 | xfs_flush_buftarg(mp->m_ddev_targp, 1); |
1023 | 1019 | ||
1024 | xfs_unmountfs(mp); | 1020 | xfs_unmountfs(mp); |
1025 | xfs_freesb(mp); | 1021 | xfs_freesb(mp); |
@@ -1443,7 +1439,7 @@ xfs_fs_fill_super( | |||
1443 | */ | 1439 | */ |
1444 | xfs_filestream_unmount(mp); | 1440 | xfs_filestream_unmount(mp); |
1445 | 1441 | ||
1446 | XFS_bflush(mp->m_ddev_targp); | 1442 | xfs_flush_buftarg(mp->m_ddev_targp, 1); |
1447 | 1443 | ||
1448 | xfs_unmountfs(mp); | 1444 | xfs_unmountfs(mp); |
1449 | goto out_free_sb; | 1445 | goto out_free_sb; |
@@ -1670,7 +1666,6 @@ init_xfs_fs(void) | |||
1670 | printk(KERN_INFO XFS_VERSION_STRING " with " | 1666 | printk(KERN_INFO XFS_VERSION_STRING " with " |
1671 | XFS_BUILD_OPTIONS " enabled\n"); | 1667 | XFS_BUILD_OPTIONS " enabled\n"); |
1672 | 1668 | ||
1673 | xfs_ioend_init(); | ||
1674 | xfs_dir_startup(); | 1669 | xfs_dir_startup(); |
1675 | 1670 | ||
1676 | error = xfs_init_zones(); | 1671 | error = xfs_init_zones(); |