Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ffs Don't nest structure definitions.
details: https://anonhg.NetBSD.org/src/rev/e96f3565b3e3
branches: trunk
changeset: 332046:e96f3565b3e3
user: matt <matt%NetBSD.org@localhost>
date: Fri Sep 05 06:10:07 2014 +0000
description:
Don't nest structure definitions.
diffstat:
sys/ufs/ffs/ffs_snapshot.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diffs (33 lines):
diff -r 97d8b40d9e6f -r e96f3565b3e3 sys/ufs/ffs/ffs_snapshot.c
--- a/sys/ufs/ffs/ffs_snapshot.c Fri Sep 05 06:08:15 2014 +0000
+++ b/sys/ufs/ffs/ffs_snapshot.c Fri Sep 05 06:10:07 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ffs_snapshot.c,v 1.136 2014/07/10 06:02:40 dholland Exp $ */
+/* $NetBSD: ffs_snapshot.c,v 1.137 2014/09/05 06:10:07 matt Exp $ */
/*
* Copyright 2000 Marshall Kirk McKusick. All Rights Reserved.
@@ -38,7 +38,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_snapshot.c,v 1.136 2014/07/10 06:02:40 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_snapshot.c,v 1.137 2014/09/05 06:10:07 matt Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ffs.h"
@@ -77,11 +77,13 @@
#include <uvm/uvm.h>
+TAILQ_HEAD(inodelst, inode); /* List of active snapshots */
+
struct snap_info {
kmutex_t si_lock; /* Lock this snapinfo */
kmutex_t si_snaplock; /* Snapshot vnode common lock */
lwp_t *si_owner; /* Sanplock owner */
- TAILQ_HEAD(inodelst, inode) si_snapshots; /* List of active snapshots */
+ struct inodelst si_snapshots; /* List of active snapshots */
daddr_t *si_snapblklist; /* Snapshot block hints list */
uint32_t si_gen; /* Incremented on change */
};
Home |
Main Index |
Thread Index |
Old Index