[XFS] kill di_mode checks after xfs_iget
authorChristoph Hellwig <hch@infradead.org>
Tue, 22 Apr 2008 07:33:40 +0000 (17:33 +1000)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Tue, 29 Apr 2008 05:53:31 +0000 (15:53 +1000)
commit6a7f422d47d4af461704ebb9d7a389d9e59766b2
treec51e1c699c364bbd09d36e2de3609619bac50c0d
parent4e5dbb3498e74514b9936d691413afc55fb84ea9
[XFS] kill di_mode checks after xfs_iget

Unless XFS_IGET_CREATE is passed xfs_iget will return ENOENT if it
encounters an inode with di_mode == 0. Remove the duplicated checks in the
callers.

(the log recovery case is not touched for now)

SGI-PV: 976035
SGI-Modid: xfs-linux-melb:xfs-kern:30898a

Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/linux-2.6/xfs_export.c
fs/xfs/linux-2.6/xfs_ioctl.c
fs/xfs/quota/xfs_qm.c
fs/xfs/quota/xfs_qm_syscalls.c
fs/xfs/xfs_itable.c