Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ffs ffs_gop_alloc() is not used any more. Remove it.
details: https://anonhg.NetBSD.org/src/rev/553613ea618b
branches: trunk
changeset: 544224:553613ea618b
user: kristerw <kristerw%NetBSD.org@localhost>
date: Sat Mar 15 01:10:18 2003 +0000
description:
ffs_gop_alloc() is not used any more. Remove it.
OK:ed by Konrad Schroder.
diffstat:
sys/ufs/ffs/ffs_balloc.c | 49 +----------------------------------------------
sys/ufs/ffs/ffs_extern.h | 3 +-
2 files changed, 3 insertions(+), 49 deletions(-)
diffs (84 lines):
diff -r bee880703236 -r 553613ea618b sys/ufs/ffs/ffs_balloc.c
--- a/sys/ufs/ffs/ffs_balloc.c Sat Mar 15 00:22:47 2003 +0000
+++ b/sys/ufs/ffs/ffs_balloc.c Sat Mar 15 01:10:18 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ffs_balloc.c,v 1.31 2003/01/24 21:55:21 fvdl Exp $ */
+/* $NetBSD: ffs_balloc.c,v 1.32 2003/03/15 01:10:18 kristerw Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -36,7 +36,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ffs_balloc.c,v 1.31 2003/01/24 21:55:21 fvdl Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ffs_balloc.c,v 1.32 2003/03/15 01:10:18 kristerw Exp $");
#if defined(_KERNEL_OPT)
#include "opt_quota.h"
@@ -513,48 +513,3 @@
}
return (error);
}
-
-
-int
-ffs_gop_alloc(struct vnode *vp, off_t off, off_t len, int flags,
- struct ucred *cred)
-{
- struct inode *ip = VTOI(vp);
- struct fs *fs = ip->i_fs;
- int error, delta, bshift, bsize;
- UVMHIST_FUNC("ffs_gop_alloc"); UVMHIST_CALLED(ubchist);
-
- error = 0;
- bshift = fs->fs_bshift;
- bsize = 1 << bshift;
-
- delta = off & (bsize - 1);
- off -= delta;
- len += delta;
-
- while (len > 0) {
- bsize = MIN(bsize, len);
-
- error = VOP_BALLOC(vp, off, bsize, cred, flags, NULL);
- if (error) {
- goto out;
- }
-
- /*
- * increase file size now, VOP_BALLOC() requires that
- * EOF be up-to-date before each call.
- */
-
- if (ip->i_ffs_size < off + bsize) {
- UVMHIST_LOG(ubchist, "vp %p old 0x%x new 0x%x",
- vp, ip->i_ffs_size, off + bsize, 0);
- ip->i_ffs_size = off + bsize;
- }
-
- off += bsize;
- len -= bsize;
- }
-
-out:
- return error;
-}
diff -r bee880703236 -r 553613ea618b sys/ufs/ffs/ffs_extern.h
--- a/sys/ufs/ffs/ffs_extern.h Sat Mar 15 00:22:47 2003 +0000
+++ b/sys/ufs/ffs/ffs_extern.h Sat Mar 15 01:10:18 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ffs_extern.h,v 1.26 2003/02/17 23:48:14 perseant Exp $ */
+/* $NetBSD: ffs_extern.h,v 1.27 2003/03/15 01:10:18 kristerw Exp $ */
/*-
* Copyright (c) 1991, 1993, 1994
@@ -93,7 +93,6 @@
/* ffs_balloc.c */
int ffs_balloc __P((void *));
-int ffs_gop_alloc __P((struct vnode *, off_t, off_t, int, struct ucred *));
/* ffs_bswap.c */
void ffs_sb_swap __P((struct fs*, struct fs *));
Home |
Main Index |
Thread Index |
Old Index