Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/pgoyette-localcount]: src/sys/fs/adosfs Call bdevsw_release() in the nor...



details:   https://anonhg.NetBSD.org/src/rev/c14e1a007fb0
branches:  pgoyette-localcount
changeset: 852831:c14e1a007fb0
user:      pgoyette <pgoyette%NetBSD.org@localhost>
date:      Thu Jul 21 11:02:56 2016 +0000

description:
Call bdevsw_release() in the normal-exit path.

diffstat:

 sys/fs/adosfs/advfsops.c |  10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

diffs (31 lines):

diff -r a52c59bf4bc3 -r c14e1a007fb0 sys/fs/adosfs/advfsops.c
--- a/sys/fs/adosfs/advfsops.c  Thu Jul 21 10:37:09 2016 +0000
+++ b/sys/fs/adosfs/advfsops.c  Thu Jul 21 11:02:56 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: advfsops.c,v 1.75.2.1 2016/07/20 23:47:56 pgoyette Exp $       */
+/*     $NetBSD: advfsops.c,v 1.75.2.2 2016/07/21 11:02:56 pgoyette Exp $       */
 
 /*
  * Copyright (c) 1994 Christian E. Hopps
@@ -32,7 +32,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: advfsops.c,v 1.75.2.1 2016/07/20 23:47:56 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: advfsops.c,v 1.75.2.2 2016/07/21 11:02:56 pgoyette Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_compat_netbsd.h"
@@ -157,8 +157,10 @@
        amp->uid = args->uid;
        amp->gid = args->gid;
        amp->mask = args->mask;
-       return set_statvfs_info(path, UIO_USERSPACE, args->fspec, UIO_USERSPACE,
-           mp->mnt_op->vfs_name, mp, l);
+       error = set_statvfs_info(path, UIO_USERSPACE, args->fspec,
+           UIO_USERSPACE, mp->mnt_op->vfs_name, mp, l);
+       bdevsw_release(bdev);
+       return error
 }
 
 int



Home | Main Index | Thread Index | Old Index