diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-02-04 20:14:01 -0500 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-02-07 02:24:00 -0500 |
commit | cbc89dcfd24fd161f7a8e262266177db160a58fb (patch) | |
tree | 135e0ce9605b4e91357570def1b3869a35f5592e /fs/xfs/linux-2.6 | |
parent | 4188c78d951d8a44630f4c33bc0f5b63374572a4 (diff) |
[XFS] kill xfs_root
The only caller (xfs_fs_fill_super) can simplify call igrab on the root
inode.
SGI-PV: 971186
SGI-Modid: xfs-linux-melb:xfs-kern:30393a
Signed-off-by: Christoph Hellwig <hch@infradead.org>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_super.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/xfs/linux-2.6/xfs_super.c b/fs/xfs/linux-2.6/xfs_super.c index 49d1d0ee6c23..56b6c6985d90 100644 --- a/fs/xfs/linux-2.6/xfs_super.c +++ b/fs/xfs/linux-2.6/xfs_super.c | |||
@@ -1344,9 +1344,11 @@ xfs_fs_fill_super( | |||
1344 | sb->s_time_gran = 1; | 1344 | sb->s_time_gran = 1; |
1345 | set_posix_acl_flag(sb); | 1345 | set_posix_acl_flag(sb); |
1346 | 1346 | ||
1347 | error = xfs_root(mp, &rootvp); | 1347 | rootvp = igrab(mp->m_rootip->i_vnode); |
1348 | if (error) | 1348 | if (!rootvp) { |
1349 | error = ENOENT; | ||
1349 | goto fail_unmount; | 1350 | goto fail_unmount; |
1351 | } | ||
1350 | 1352 | ||
1351 | sb->s_root = d_alloc_root(vn_to_inode(rootvp)); | 1353 | sb->s_root = d_alloc_root(vn_to_inode(rootvp)); |
1352 | if (!sb->s_root) { | 1354 | if (!sb->s_root) { |