Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 84491
b: refs/heads/master
c: cbc89dc
h: refs/heads/master
i:
  84489: a45bb27
  84487: 17c3bb6
v: v3
  • Loading branch information
Christoph Hellwig authored and Lachlan McIlroy committed Feb 7, 2008
1 parent 7c8edf9 commit a9a3f71
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 24 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 4188c78d951d8a44630f4c33bc0f5b63374572a4
refs/heads/master: cbc89dcfd24fd161f7a8e262266177db160a58fb
6 changes: 4 additions & 2 deletions trunk/fs/xfs/linux-2.6/xfs_super.c
Original file line number Diff line number Diff line change
Expand Up @@ -1344,9 +1344,11 @@ xfs_fs_fill_super(
sb->s_time_gran = 1;
set_posix_acl_flag(sb);

error = xfs_root(mp, &rootvp);
if (error)
rootvp = igrab(mp->m_rootip->i_vnode);
if (!rootvp) {
error = ENOENT;
goto fail_unmount;
}

sb->s_root = d_alloc_root(vn_to_inode(rootvp));
if (!sb->s_root) {
Expand Down
20 changes: 0 additions & 20 deletions trunk/fs/xfs/xfs_vfsops.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,26 +807,6 @@ xfs_unmount_flush(
return XFS_ERROR(EFSCORRUPTED);
}

/*
* xfs_root extracts the root vnode from a vfs.
*
* vfsp -- the vfs struct for the desired file system
* vpp -- address of the caller's vnode pointer which should be
* set to the desired fs root vnode
*/
int
xfs_root(
xfs_mount_t *mp,
bhv_vnode_t **vpp)
{
bhv_vnode_t *vp;

vp = XFS_ITOV(mp->m_rootip);
VN_HOLD(vp);
*vpp = vp;
return 0;
}

/*
* xfs_sync flushes any pending I/O to file system vfsp.
*
Expand Down
1 change: 0 additions & 1 deletion trunk/fs/xfs/xfs_vfsops.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ int xfs_mount(struct xfs_mount *mp, struct xfs_mount_args *args,
int xfs_unmount(struct xfs_mount *mp, int flags, struct cred *credp);
int xfs_mntupdate(struct xfs_mount *mp, int *flags,
struct xfs_mount_args *args);
int xfs_root(struct xfs_mount *mp, bhv_vnode_t **vpp);
int xfs_sync(struct xfs_mount *mp, int flags);
void xfs_do_force_shutdown(struct xfs_mount *mp, int flags, char *fname,
int lnnum);
Expand Down

0 comments on commit a9a3f71

Please sign in to comment.