[XFS] remove some easy bhv_vnode_t instances
In various places we can just move a VFS_I call into the argument list of called functions/macros instead of having a local bhv_vnode_t. SGI-PV: 981498 SGI-Modid: xfs-linux-melb:xfs-kern:31776a Signed-off-by: Christoph Hellwig <hch@infradead.org> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
This commit is contained in:
committed by
Lachlan McIlroy
parent
e1cccd917b
commit
df80c933f9
@@ -980,12 +980,7 @@ STATIC struct inode *
|
||||
xfs_fs_alloc_inode(
|
||||
struct super_block *sb)
|
||||
{
|
||||
bhv_vnode_t *vp;
|
||||
|
||||
vp = kmem_zone_alloc(xfs_vnode_zone, KM_SLEEP);
|
||||
if (unlikely(!vp))
|
||||
return NULL;
|
||||
return vp;
|
||||
return kmem_zone_alloc(xfs_vnode_zone, KM_SLEEP);
|
||||
}
|
||||
|
||||
STATIC void
|
||||
|
Reference in New Issue
Block a user