From ae37d9d18603e01a3db9f6d1b1ed7607f5d9442e Mon Sep 17 00:00:00 2001 From: perseant Date: Thu, 20 Jun 2002 20:43:17 +0000 Subject: [PATCH] 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. --- sys/ufs/lfs/lfs_syscalls.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/sys/ufs/lfs/lfs_syscalls.c b/sys/ufs/lfs/lfs_syscalls.c index 841032745608..fc42a2b01ff0 100644 --- a/sys/ufs/lfs/lfs_syscalls.c +++ b/sys/ufs/lfs/lfs_syscalls.c @@ -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 -__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 @@ lfs_bmapv(struct proc *p, fsid_t *fsidp, BLOCK_INFO *blkiov, int blkcnt) 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.