diff options
Diffstat (limited to 'fs/xfs/xfs_iget.c')
-rw-r--r-- | fs/xfs/xfs_iget.c | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/fs/xfs/xfs_iget.c b/fs/xfs/xfs_iget.c index 3323826274b3..80e526489be5 100644 --- a/fs/xfs/xfs_iget.c +++ b/fs/xfs/xfs_iget.c | |||
@@ -455,32 +455,6 @@ out_error_or_again: | |||
455 | return error; | 455 | return error; |
456 | } | 456 | } |
457 | 457 | ||
458 | |||
459 | /* | ||
460 | * Look for the inode corresponding to the given ino in the hash table. | ||
461 | * If it is there and its i_transp pointer matches tp, return it. | ||
462 | * Otherwise, return NULL. | ||
463 | */ | ||
464 | xfs_inode_t * | ||
465 | xfs_inode_incore(xfs_mount_t *mp, | ||
466 | xfs_ino_t ino, | ||
467 | xfs_trans_t *tp) | ||
468 | { | ||
469 | xfs_inode_t *ip; | ||
470 | xfs_perag_t *pag; | ||
471 | |||
472 | pag = xfs_get_perag(mp, ino); | ||
473 | read_lock(&pag->pag_ici_lock); | ||
474 | ip = radix_tree_lookup(&pag->pag_ici_root, XFS_INO_TO_AGINO(mp, ino)); | ||
475 | read_unlock(&pag->pag_ici_lock); | ||
476 | xfs_put_perag(mp, pag); | ||
477 | |||
478 | /* the returned inode must match the transaction */ | ||
479 | if (ip && (ip->i_transp != tp)) | ||
480 | return NULL; | ||
481 | return ip; | ||
482 | } | ||
483 | |||
484 | /* | 458 | /* |
485 | * Decrement reference count of an inode structure and unlock it. | 459 | * Decrement reference count of an inode structure and unlock it. |
486 | * | 460 | * |