diff options
Diffstat (limited to 'fs/xfs/xfs_iget.c')
-rw-r--r-- | fs/xfs/xfs_iget.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/fs/xfs/xfs_iget.c b/fs/xfs/xfs_iget.c index fa402a6bbbcf..e281eb4a1c49 100644 --- a/fs/xfs/xfs_iget.c +++ b/fs/xfs/xfs_iget.c | |||
@@ -73,7 +73,6 @@ xfs_inode_alloc( | |||
73 | ASSERT(atomic_read(&ip->i_pincount) == 0); | 73 | ASSERT(atomic_read(&ip->i_pincount) == 0); |
74 | ASSERT(!spin_is_locked(&ip->i_flags_lock)); | 74 | ASSERT(!spin_is_locked(&ip->i_flags_lock)); |
75 | ASSERT(completion_done(&ip->i_flush)); | 75 | ASSERT(completion_done(&ip->i_flush)); |
76 | ASSERT(!rwsem_is_locked(&ip->i_iolock.mr_lock)); | ||
77 | 76 | ||
78 | mrlock_init(&ip->i_iolock, MRLOCK_BARRIER, "xfsio", ip->i_ino); | 77 | mrlock_init(&ip->i_iolock, MRLOCK_BARRIER, "xfsio", ip->i_ino); |
79 | 78 | ||
@@ -375,7 +374,7 @@ xfs_iget( | |||
375 | return EINVAL; | 374 | return EINVAL; |
376 | 375 | ||
377 | /* get the perag structure and ensure that it's inode capable */ | 376 | /* get the perag structure and ensure that it's inode capable */ |
378 | pag = xfs_get_perag(mp, ino); | 377 | pag = xfs_perag_get(mp, XFS_INO_TO_AGNO(mp, ino)); |
379 | if (!pag->pagi_inodeok) | 378 | if (!pag->pagi_inodeok) |
380 | return EINVAL; | 379 | return EINVAL; |
381 | ASSERT(pag->pag_ici_init); | 380 | ASSERT(pag->pag_ici_init); |
@@ -399,7 +398,7 @@ again: | |||
399 | if (error) | 398 | if (error) |
400 | goto out_error_or_again; | 399 | goto out_error_or_again; |
401 | } | 400 | } |
402 | xfs_put_perag(mp, pag); | 401 | xfs_perag_put(pag); |
403 | 402 | ||
404 | *ipp = ip; | 403 | *ipp = ip; |
405 | 404 | ||
@@ -418,7 +417,7 @@ out_error_or_again: | |||
418 | delay(1); | 417 | delay(1); |
419 | goto again; | 418 | goto again; |
420 | } | 419 | } |
421 | xfs_put_perag(mp, pag); | 420 | xfs_perag_put(pag); |
422 | return error; | 421 | return error; |
423 | } | 422 | } |
424 | 423 | ||
@@ -489,12 +488,12 @@ xfs_ireclaim( | |||
489 | * added to the tree assert that it's been there before to catch | 488 | * added to the tree assert that it's been there before to catch |
490 | * problems with the inode life time early on. | 489 | * problems with the inode life time early on. |
491 | */ | 490 | */ |
492 | pag = xfs_get_perag(mp, ip->i_ino); | 491 | pag = xfs_perag_get(mp, XFS_INO_TO_AGNO(mp, ip->i_ino)); |
493 | write_lock(&pag->pag_ici_lock); | 492 | write_lock(&pag->pag_ici_lock); |
494 | if (!radix_tree_delete(&pag->pag_ici_root, agino)) | 493 | if (!radix_tree_delete(&pag->pag_ici_root, agino)) |
495 | ASSERT(0); | 494 | ASSERT(0); |
496 | write_unlock(&pag->pag_ici_lock); | 495 | write_unlock(&pag->pag_ici_lock); |
497 | xfs_put_perag(mp, pag); | 496 | xfs_perag_put(pag); |
498 | 497 | ||
499 | /* | 498 | /* |
500 | * Here we do an (almost) spurious inode lock in order to coordinate | 499 | * Here we do an (almost) spurious inode lock in order to coordinate |