diff options
author | das <das@FreeBSD.org> | 2003-06-15 02:21:13 +0000 |
---|---|---|
committer | das <das@FreeBSD.org> | 2003-06-15 02:21:13 +0000 |
commit | 0ddc73e815f42f5748404fb0ea5c5a08d9918a6b (patch) | |
tree | 7fa72e60428a243c245e9933293b90c33c15a39d /sys/fs | |
parent | 1b22cc79dcbd3768c805ffd8c9f8e5e7b2da83a9 (diff) | |
download | FreeBSD-src-0ddc73e815f42f5748404fb0ea5c5a08d9918a6b.zip FreeBSD-src-0ddc73e815f42f5748404fb0ea5c5a08d9918a6b.tar.gz |
Fix some style problems, some of which are old, some new, and some
inherited from UFS.
Requested by: bde, njl
Diffstat (limited to 'sys/fs')
-rw-r--r-- | sys/fs/unionfs/union_vnops.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/sys/fs/unionfs/union_vnops.c b/sys/fs/unionfs/union_vnops.c index 7e176dd..4862642 100644 --- a/sys/fs/unionfs/union_vnops.c +++ b/sys/fs/unionfs/union_vnops.c @@ -668,23 +668,25 @@ union_whiteout(ap) struct union_node *un = VTOUNION(ap->a_dvp); struct componentname *cnp = ap->a_cnp; struct vnode *uppervp; - int error = EOPNOTSUPP; + int error; switch (ap->a_flags) { - case LOOKUP: - error = EOPNOTSUPP; - break; case CREATE: case DELETE: - if ((uppervp=union_lock_upper(un,cnp->cn_thread)) != NULLVP) { + uppervp = union_lock_upper(un, cnp->cn_thread); + if (uppervp != NULLVP) { error = VOP_WHITEOUT(un->un_uppervp, cnp, ap->a_flags); union_unlock_upper(uppervp, cnp->cn_thread); - } + } else + error = EOPNOTSUPP; + break; + case LOOKUP: + error = EOPNOTSUPP; break; default: panic("union_whiteout: unknown op"); - } - return(error); + } + return (error); } /* |