Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/uebayasi-xip]: src/sys/miscfs/genfs Remove unused code.
details: https://anonhg.NetBSD.org/src/rev/ac44da97dcfd
branches: uebayasi-xip
changeset: 751876:ac44da97dcfd
user: uebayasi <uebayasi%NetBSD.org@localhost>
date: Fri Nov 19 08:12:12 2010 +0000
description:
Remove unused code.
diffstat:
sys/miscfs/genfs/genfs_io.c | 36 ++----------------------------------
1 files changed, 2 insertions(+), 34 deletions(-)
diffs (66 lines):
diff -r b8ecbf1af8a7 -r ac44da97dcfd sys/miscfs/genfs/genfs_io.c
--- a/sys/miscfs/genfs/genfs_io.c Fri Nov 19 08:11:04 2010 +0000
+++ b/sys/miscfs/genfs/genfs_io.c Fri Nov 19 08:12:12 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: genfs_io.c,v 1.36.2.44 2010/11/19 08:11:04 uebayasi Exp $ */
+/* $NetBSD: genfs_io.c,v 1.36.2.45 2010/11/19 08:12:12 uebayasi Exp $ */
/*
* Copyright (c) 1982, 1986, 1989, 1993
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.36.2.44 2010/11/19 08:11:04 uebayasi Exp $");
+__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.36.2.45 2010/11/19 08:12:12 uebayasi Exp $");
#include "opt_xip.h"
@@ -909,47 +909,15 @@
const int fs_bshift = vp2fs_bshift(vp);
const int dev_bshift = vp2dev_bshift(vp);
const int fs_bsize = 1 << fs_bshift;
-#if 0
-#define blk_mask (fs_bsize - 1)
-#define trunc_blk(x) ((x) & ~blk_mask)
-#define round_blk(x) (((x) + blk_mask) & ~blk_mask)
-
- const int orignmempages = MIN(orignpages,
- round_page(memeof - origoffset) >> PAGE_SHIFT);
- npages = orignmempages;
- const off_t startoffset = trunc_blk(origoffset);
- const off_t endoffset = MIN(
- round_page(round_blk(origoffset + (npages << PAGE_SHIFT))),
- round_page(memeof));
- const int ridx = (origoffset - startoffset) >> PAGE_SHIFT;
-#endif
int error;
off_t off;
-#if 0
- off_t memeof;
- int orignmempages;
-#endif
int i;
UVMHIST_FUNC("genfs_do_getpages_xip_io"); UVMHIST_CALLED(ubchist);
KASSERT(((flags & PGO_GLOCKHELD) != 0) || genfs_node_rdlocked(vp));
-#if 0
- GOP_SIZE(vp, vp->v_size, &memeof, GOP_SIZE_MEM);
- orignmempages = MIN(orignpages, round_page(memeof - origoffset) >> PAGE_SHIFT);
-#endif
-
-#if 0
- int fs_bshift, fs_bsize, dev_bshift, dev_bsize;
-
- fs_bshift = vp->v_mount->mnt_fs_bshift;
- fs_bsize = 1 << fs_bshift;
- dev_bshift = vp->v_mount->mnt_dev_bshift;
- dev_bsize = 1 << dev_bshift;
-#endif
-
#ifdef UVMHIST
const off_t startoffset = trunc_blk(origoffset);
const off_t endoffset = round_blk(origoffset + PAGE_SIZE * orignmempages);
Home |
Main Index |
Thread Index |
Old Index