Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ffs Fix last commit. The last block of the file sys...
details: https://anonhg.NetBSD.org/src/rev/81e6c2b7694d
branches: trunk
changeset: 580671:81e6c2b7694d
user: hannken <hannken%NetBSD.org@localhost>
date: Tue May 03 09:43:23 2005 +0000
description:
Fix last commit. The last block of the file system may have changed
even if the last cylinder group is not modified.
diffstat:
sys/ufs/ffs/ffs_snapshot.c | 15 ++++++---------
1 files changed, 6 insertions(+), 9 deletions(-)
diffs (33 lines):
diff -r 239737c5e141 -r 81e6c2b7694d sys/ufs/ffs/ffs_snapshot.c
--- a/sys/ufs/ffs/ffs_snapshot.c Tue May 03 08:24:15 2005 +0000
+++ b/sys/ufs/ffs/ffs_snapshot.c Tue May 03 09:43:23 2005 +0000
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_snapshot.c,v 1.13 2005/04/24 15:49:37 hannken Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_snapshot.c,v 1.14 2005/05/03 09:43:23 hannken Exp $");
#if defined(_KERNEL_OPT)
#include "opt_ffs.h"
@@ -292,15 +292,12 @@
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
microtime(&starttime);
/*
- * If the last cylinder group has changed the last block
- * saved before may have changed too so update it now.
+ * The last block saved before may have changed so update it now.
*/
- if (!ACTIVECG_ISSET(fs, fs->fs_ncg-1)) {
- if ((error = readfsblk(vp, cgbuf, numblks - 1)) != 0)
- goto out1;
- if ((error = writevnblk(vp, cgbuf, numblks - 1)) != 0)
- goto out1;
- }
+ if ((error = readfsblk(vp, cgbuf, numblks - 1)) != 0)
+ goto out1;
+ if ((error = writevnblk(vp, cgbuf, numblks - 1)) != 0)
+ goto out1;
/*
* First, copy all the cylinder group maps that have changed.
*/
Home |
Main Index |
Thread Index |
Old Index