Source-Changes-HG archive

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

[src/trunk]: src/sys/ufs/lfs Don't bomb out of lfs_bmapv if the caller is req...



details:   https://anonhg.NetBSD.org/src/rev/ccc2f5da25dc
branches:  trunk
changeset: 533084:ccc2f5da25dc
user:      perseant <perseant%NetBSD.org@localhost>
date:      Thu Jun 20 20:43:17 2002 +0000

description:
Don't bomb out of lfs_bmapv if the caller is requesting blocks that
live in the current segment.  There's nothing wrong with this, and
it is necessary for the correct operation of the coaleascer.

diffstat:

 sys/ufs/lfs/lfs_syscalls.c |  12 ++----------
 1 files changed, 2 insertions(+), 10 deletions(-)

diffs (33 lines):

diff -r 967e1dfa2bc0 -r ccc2f5da25dc sys/ufs/lfs/lfs_syscalls.c
--- a/sys/ufs/lfs/lfs_syscalls.c        Thu Jun 20 20:23:23 2002 +0000
+++ b/sys/ufs/lfs/lfs_syscalls.c        Thu Jun 20 20:43:17 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: lfs_syscalls.c,v 1.67 2002/06/16 00:13:16 perseant Exp $       */
+/*     $NetBSD: lfs_syscalls.c,v 1.68 2002/06/20 20:43:17 perseant Exp $       */
 
 /*-
  * Copyright (c) 1999, 2000 The NetBSD Foundation, Inc.
@@ -71,7 +71,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lfs_syscalls.c,v 1.67 2002/06/16 00:13:16 perseant Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lfs_syscalls.c,v 1.68 2002/06/20 20:43:17 perseant Exp $");
 
 #define LFS            /* for prototypes in syscallargs.h */
 
@@ -722,14 +722,6 @@
        lastino = LFS_UNUSED_INUM;
        for (blkp = blkiov; cnt--; ++blkp)
        {
-#ifdef DEBUG
-               if (dtosn(fs, fs->lfs_curseg) == dtosn(fs, blkp->bi_daddr)) {
-                       printf("lfs_bmapv: attempt to clean current segment? (#%d)\n",
-                              dtosn(fs, fs->lfs_curseg));
-                       vfs_unbusy(mntp);
-                       return (EBUSY);
-               }
-#endif /* DEBUG */
                /*
                 * Get the IFILE entry (only once) and see if the file still
                 * exists.



Home | Main Index | Thread Index | Old Index