diff options
Diffstat (limited to 'fs/xfs/xfs_iget.c')
-rw-r--r-- | fs/xfs/xfs_iget.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/fs/xfs/xfs_iget.c b/fs/xfs/xfs_iget.c index 75664d1b9f59..b460e62bcf86 100644 --- a/fs/xfs/xfs_iget.c +++ b/fs/xfs/xfs_iget.c | |||
@@ -435,29 +435,6 @@ xfs_iput(xfs_inode_t *ip, | |||
435 | } | 435 | } |
436 | 436 | ||
437 | /* | 437 | /* |
438 | * Special iput for brand-new inodes that are still locked | ||
439 | */ | ||
440 | void | ||
441 | xfs_iput_new( | ||
442 | xfs_inode_t *ip, | ||
443 | uint lock_flags) | ||
444 | { | ||
445 | struct inode *inode = VFS_I(ip); | ||
446 | |||
447 | xfs_itrace_entry(ip); | ||
448 | |||
449 | if ((ip->i_d.di_mode == 0)) { | ||
450 | ASSERT(!xfs_iflags_test(ip, XFS_IRECLAIMABLE)); | ||
451 | make_bad_inode(inode); | ||
452 | } | ||
453 | if (inode->i_state & I_NEW) | ||
454 | unlock_new_inode(inode); | ||
455 | if (lock_flags) | ||
456 | xfs_iunlock(ip, lock_flags); | ||
457 | IRELE(ip); | ||
458 | } | ||
459 | |||
460 | /* | ||
461 | * This is called free all the memory associated with an inode. | 438 | * This is called free all the memory associated with an inode. |
462 | * It must free the inode itself and any buffers allocated for | 439 | * It must free the inode itself and any buffers allocated for |
463 | * if_extents/if_data and if_broot. It must also free the lock | 440 | * if_extents/if_data and if_broot. It must also free the lock |