version 1.12, 2014/12/29 15:29:38 |
version 1.12.4.1, 2017/04/21 16:54:02 |
Line 369 v7fs_statvfs(struct mount *mp, struct st |
|
Line 369 v7fs_statvfs(struct mount *mp, struct st |
|
static bool |
static bool |
v7fs_sync_selector(void *cl, struct vnode *vp) |
v7fs_sync_selector(void *cl, struct vnode *vp) |
{ |
{ |
struct v7fs_node *v7fs_node = vp->v_data; |
struct v7fs_node *v7fs_node; |
|
|
|
KASSERT(mutex_owned(vp->v_interlock)); |
|
|
|
v7fs_node = vp->v_data; |
if (v7fs_node == NULL) |
if (v7fs_node == NULL) |
return false; |
return false; |
if (!v7fs_inode_allocated(&v7fs_node->inode)) |
if (!v7fs_inode_allocated(&v7fs_node->inode)) |
Line 576 v7fs_mountroot(void) |
|
Line 579 v7fs_mountroot(void) |
|
|
|
if ((error = v7fs_mountfs(rootvp, mp, _BYTE_ORDER))) { |
if ((error = v7fs_mountfs(rootvp, mp, _BYTE_ORDER))) { |
DPRINTF("mountfs error=%d\n", error); |
DPRINTF("mountfs error=%d\n", error); |
vfs_unbusy(mp, false, NULL); |
vfs_unbusy(mp); |
vfs_destroy(mp); |
vfs_rele(mp); |
return error; |
return error; |
} |
} |
|
|
mountlist_append(mp); |
mountlist_append(mp); |
|
|
vfs_unbusy(mp, false, NULL); |
vfs_unbusy(mp); |
|
|
return 0; |
return 0; |
} |
} |