summaryrefslogtreecommitdiffstats
path: root/sys/fs/msdosfs
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2003-12-29 09:50:42 +0000
committerbde <bde@FreeBSD.org>2003-12-29 09:50:42 +0000
commite56230b2224ab196ea03e12bf6e7dadf42ae6c75 (patch)
treeb66f036c7a7806964bbbb6a0b207ebe31e20eb0c /sys/fs/msdosfs
parent0825cbd52912ef62940ccb503a6e943318b67e50 (diff)
downloadFreeBSD-src-e56230b2224ab196ea03e12bf6e7dadf42ae6c75.zip
FreeBSD-src-e56230b2224ab196ea03e12bf6e7dadf42ae6c75.tar.gz
Fixed style bugs in rev.1.112. The bugs started with obscure magic
numbers in comments (Apple PR numbers?) and didn't improve.
Diffstat (limited to 'sys/fs/msdosfs')
-rw-r--r--sys/fs/msdosfs/msdosfs_vfsops.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/sys/fs/msdosfs/msdosfs_vfsops.c b/sys/fs/msdosfs/msdosfs_vfsops.c
index 31881c9..0b21bc1 100644
--- a/sys/fs/msdosfs/msdosfs_vfsops.c
+++ b/sys/fs/msdosfs/msdosfs_vfsops.c
@@ -209,11 +209,11 @@ msdosfs_mount(mp, path, data, ndp, td)
VOP_UNLOCK(devvp, 0, td);
}
pmp->pm_flags &= ~MSDOSFSMNT_RONLY;
-
- /* [2753891] Now that the volume is modifiable, mark it dirty */
+
+ /* Now that the volume is modifiable, mark it dirty. */
error = markvoldirty(pmp, 1);
if (error)
- return error;
+ return (error);
}
if (args.fspec == 0) {
#ifdef __notyet__ /* doesn't work correctly with current mountd XXX */
@@ -615,9 +615,9 @@ mountmsdosfs(devvp, mp, td, argp)
if (ronly)
pmp->pm_flags |= MSDOSFSMNT_RONLY;
else {
- /* [2753891] Mark the volume dirty while it is mounted read/write */
- if ((error = markvoldirty(pmp, 1)) != 0)
- goto error_exit;
+ /* Mark the volume dirty while it is mounted read/write. */
+ if ((error = markvoldirty(pmp, 1)) != 0)
+ goto error_exit;
pmp->pm_fmod = 1;
}
mp->mnt_data = (qaddr_t) pmp;
@@ -677,12 +677,12 @@ msdosfs_unmount(mp, mntflags, td)
}
pmp->pm_devvp->v_rdev->si_mountpoint = NULL;
- /* [2753891] If the volume was mounted read/write, mark it clean now */
- if ((pmp->pm_flags & MSDOSFSMNT_RONLY) == 0) {
- error = markvoldirty(pmp, 0);
- if (error && !(flags & FORCECLOSE))
- return (error);
- }
+ /* If the volume was mounted read/write, mark it clean now. */
+ if ((pmp->pm_flags & MSDOSFSMNT_RONLY) == 0) {
+ error = markvoldirty(pmp, 0);
+ if (error && (flags & FORCECLOSE) == 0)
+ return (error);
+ }
#ifdef MSDOSFS_DEBUG
{
struct vnode *vp = pmp->pm_devvp;
OpenPOWER on IntegriCloud