diff options
Diffstat (limited to 'fs/xfs/xfs_inode.c')
-rw-r--r-- | fs/xfs/xfs_inode.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index c07553bbcdb4..0349e714dc30 100644 --- a/fs/xfs/xfs_inode.c +++ b/fs/xfs/xfs_inode.c | |||
@@ -864,6 +864,7 @@ xfs_iread( | |||
864 | ip = kmem_zone_zalloc(xfs_inode_zone, KM_SLEEP); | 864 | ip = kmem_zone_zalloc(xfs_inode_zone, KM_SLEEP); |
865 | ip->i_ino = ino; | 865 | ip->i_ino = ino; |
866 | ip->i_mount = mp; | 866 | ip->i_mount = mp; |
867 | atomic_set(&ip->i_iocount, 0); | ||
867 | spin_lock_init(&ip->i_flags_lock); | 868 | spin_lock_init(&ip->i_flags_lock); |
868 | 869 | ||
869 | /* | 870 | /* |
@@ -1455,7 +1456,7 @@ xfs_itruncate_start( | |||
1455 | mp = ip->i_mount; | 1456 | mp = ip->i_mount; |
1456 | vp = XFS_ITOV(ip); | 1457 | vp = XFS_ITOV(ip); |
1457 | 1458 | ||
1458 | vn_iowait(vp); /* wait for the completion of any pending DIOs */ | 1459 | vn_iowait(ip); /* wait for the completion of any pending DIOs */ |
1459 | 1460 | ||
1460 | /* | 1461 | /* |
1461 | * Call toss_pages or flushinval_pages to get rid of pages | 1462 | * Call toss_pages or flushinval_pages to get rid of pages |