diff options
author | Konstantin Belousov <kib@FreeBSD.org> | 2021-01-13 06:55:38 +0000 |
---|---|---|
committer | Konstantin Belousov <kib@FreeBSD.org> | 2021-01-14 12:43:13 +0000 |
commit | 685265ecfbd8e929d7c6988a99b708d3a3a5cbf4 (patch) | |
tree | 5ccba79a7afd3503164495a5c435ce04735fbf18 | |
parent | e47a6525e71d48fd3dd49aac61cbe211ceec34f2 (diff) | |
download | src-685265ecfbd8e929d7c6988a99b708d3a3a5cbf4.tar.gz src-685265ecfbd8e929d7c6988a99b708d3a3a5cbf4.zip |
tmpfs_reclaim: style
MFC after: 3 days
Sponsored by: The FreeBSD Foundation
-rw-r--r-- | sys/fs/tmpfs/tmpfs_vnops.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/sys/fs/tmpfs/tmpfs_vnops.c b/sys/fs/tmpfs/tmpfs_vnops.c index 90711b4849c5..d8c10517b0e0 100644 --- a/sys/fs/tmpfs/tmpfs_vnops.c +++ b/sys/fs/tmpfs/tmpfs_vnops.c @@ -1490,11 +1490,11 @@ need: int tmpfs_reclaim(struct vop_reclaim_args *v) { - struct vnode *vp = v->a_vp; - + struct vnode *vp; struct tmpfs_mount *tmp; struct tmpfs_node *node; + vp = v->a_vp; node = VP_TO_TMPFS_NODE(vp); tmp = VFS_TO_TMPFS(vp->v_mount); @@ -1505,9 +1505,11 @@ tmpfs_reclaim(struct vop_reclaim_args *v) TMPFS_NODE_LOCK(node); tmpfs_free_vp(vp); - /* If the node referenced by this vnode was deleted by the user, + /* + * If the node referenced by this vnode was deleted by the user, * we must free its associated data structures (now that the vnode - * is being reclaimed). */ + * is being reclaimed). + */ if (node->tn_links == 0 && (node->tn_vpstate & TMPFS_VNODE_ALLOCATING) == 0) { node->tn_vpstate = TMPFS_VNODE_DOOMED; @@ -1517,7 +1519,7 @@ tmpfs_reclaim(struct vop_reclaim_args *v) TMPFS_NODE_UNLOCK(node); MPASS(vp->v_data == NULL); - return 0; + return (0); } int |