Source-Changes-HG archive

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

[src/trunk]: src/sys/fs/puffs Fix copying issue that was causing errors in un...



details:   https://anonhg.NetBSD.org/src/rev/e80e9aa81df5
branches:  trunk
changeset: 459840:e80e9aa81df5
user:      christos <christos%NetBSD.org@localhost>
date:      Fri Sep 27 22:36:57 2019 +0000

description:
Fix copying issue that was causing errors in unit_test puffs_tstavfs by
removing code.

diffstat:

 sys/fs/puffs/puffs_vfsops.c |  11 +++--------
 1 files changed, 3 insertions(+), 8 deletions(-)

diffs (34 lines):

diff -r e2b501be5ab6 -r e80e9aa81df5 sys/fs/puffs/puffs_vfsops.c
--- a/sys/fs/puffs/puffs_vfsops.c       Fri Sep 27 20:10:42 2019 +0000
+++ b/sys/fs/puffs/puffs_vfsops.c       Fri Sep 27 22:36:57 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: puffs_vfsops.c,v 1.122 2019/09/23 12:00:57 christos Exp $      */
+/*     $NetBSD: puffs_vfsops.c,v 1.123 2019/09/27 22:36:57 christos Exp $      */
 
 /*
  * Copyright (c) 2005, 2006  Antti Kantee.  All Rights Reserved.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.122 2019/09/23 12:00:57 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: puffs_vfsops.c,v 1.123 2019/09/27 22:36:57 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -501,14 +501,9 @@
         *
         * XXX: cache the copy in non-error case
         */
+       copy_statvfs_info(sbp, mp);
        if (!error) {
-               struct statvfs *sb = STATVFSBUF_GET();
-               puffs_statvfs_to_statvfs(&statvfs_msg->pvfsr_sb, sb);
-               copy_statvfs_info(sb, mp);
-               STATVFSBUF_PUT(sb);
                statvfs_to_puffs_statvfs(sbp, &statvfs_msg->pvfsr_sb);
-       } else {
-               copy_statvfs_info(sbp, mp);
        }
 
        PUFFS_MSG_RELEASE(statvfs);



Home | Main Index | Thread Index | Old Index