diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-08-13 02:22:09 -0400 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-08-13 02:22:09 -0400 |
commit | df80c933f9eb01a7af3812bbe437e38205386304 (patch) | |
tree | ea20515f5f77558a63de202dcdb36fd96b91ffbd /fs/xfs/linux-2.6/xfs_super.c | |
parent | e1cccd917be7364f81b5dc4e33ee3a6e0db21a99 (diff) |
[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>
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_super.c')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_super.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c index 71ac3a6162e9..1ca593fb1225 100644 --- a/fs/xfs/linux-2.6/xfs_super.c +++ b/fs/xfs/linux-2.6/xfs_super.c | |||
@@ -980,12 +980,7 @@ STATIC struct inode * | |||
980 | xfs_fs_alloc_inode( | 980 | xfs_fs_alloc_inode( |
981 | struct super_block *sb) | 981 | struct super_block *sb) |
982 | { | 982 | { |
983 | bhv_vnode_t *vp; | 983 | return kmem_zone_alloc(xfs_vnode_zone, KM_SLEEP); |
984 | |||
985 | vp = kmem_zone_alloc(xfs_vnode_zone, KM_SLEEP); | ||
986 | if (unlikely(!vp)) | ||
987 | return NULL; | ||
988 | return vp; | ||
989 | } | 984 | } |
990 | 985 | ||
991 | STATIC void | 986 | STATIC void |