From d8283a2df5c98dc227e2e11edf8737a13b735403 Mon Sep 17 00:00:00 2001 From: tedu Date: Fri, 9 May 2014 03:54:28 +0000 Subject: [PATCH] stop using B_AGE, it was effectively retired some time ago. --- sys/isofs/cd9660/cd9660_vfsops.c | 5 +---- sys/isofs/cd9660/cd9660_vnops.c | 5 +---- sys/msdosfs/msdosfs_vfsops.c | 3 +-- sys/uvm/uvm_pager.c | 5 +---- 4 files changed, 4 insertions(+), 14 deletions(-) diff --git a/sys/isofs/cd9660/cd9660_vfsops.c b/sys/isofs/cd9660/cd9660_vfsops.c index 70abba53ef2..959a77ac47b 100644 --- a/sys/isofs/cd9660/cd9660_vfsops.c +++ b/sys/isofs/cd9660/cd9660_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cd9660_vfsops.c,v 1.66 2013/12/01 16:40:56 krw Exp $ */ +/* $OpenBSD: cd9660_vfsops.c,v 1.67 2014/05/09 03:54:28 tedu Exp $ */ /* $NetBSD: cd9660_vfsops.c,v 1.26 1997/06/13 15:38:58 pk Exp $ */ /*- @@ -377,7 +377,6 @@ iso_mountfs(devvp, mp, p, argp) isomp->im_bmask = logical_block_size - 1; isomp->im_bshift = ffs(logical_block_size) - 1; - pribp->b_flags |= B_AGE; brelse(pribp); pribp = NULL; @@ -410,7 +409,6 @@ iso_mountfs(devvp, mp, p, argp) * The contents are valid, * but they will get reread as part of another vnode, so... */ - bp->b_flags |= B_AGE; brelse(bp); bp = NULL; } @@ -437,7 +435,6 @@ iso_mountfs(devvp, mp, p, argp) isomp->root_extent = isonum_733(rootp->extent); isomp->root_size = isonum_733(rootp->size); isomp->joliet_level = joliet_level; - supbp->b_flags |= B_AGE; } if (supbp) { diff --git a/sys/isofs/cd9660/cd9660_vnops.c b/sys/isofs/cd9660/cd9660_vnops.c index 9f31e5831c9..f092f047f91 100644 --- a/sys/isofs/cd9660/cd9660_vnops.c +++ b/sys/isofs/cd9660/cd9660_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cd9660_vnops.c,v 1.64 2013/12/14 02:57:25 guenther Exp $ */ +/* $OpenBSD: cd9660_vnops.c,v 1.65 2014/05/09 03:54:28 tedu Exp $ */ /* $NetBSD: cd9660_vnops.c,v 1.42 1997/10/16 23:56:57 christos Exp $ */ /*- @@ -274,9 +274,6 @@ cd9660_read(void *v) error = uiomove(bp->b_data + on, (int)n, uio); - if (n + on == imp->logical_block_size || - uio->uio_offset == (off_t)ip->i_size) - bp->b_flags |= B_AGE; brelse(bp); } while (error == 0 && uio->uio_resid > 0 && n != 0); return (error); diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c index 36684dc6b11..4b82aab5941 100644 --- a/sys/msdosfs/msdosfs_vfsops.c +++ b/sys/msdosfs/msdosfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: msdosfs_vfsops.c,v 1.63 2013/04/15 15:32:19 jsing Exp $ */ +/* $OpenBSD: msdosfs_vfsops.c,v 1.64 2014/05/09 03:54:28 tedu Exp $ */ /* $NetBSD: msdosfs_vfsops.c,v 1.48 1997/10/18 02:54:57 briggs Exp $ */ /*- @@ -312,7 +312,6 @@ msdosfs_mountfs(struct vnode *devvp, struct mount *mp, struct proc *p, */ if ((error = bread(devvp, 0, 4096, &bp)) != 0) goto error_exit; - bp->b_flags |= B_AGE; bsp = (union bootsector *)bp->b_data; b33 = (struct byte_bpb33 *)bsp->bs33.bsBPB; b50 = (struct byte_bpb50 *)bsp->bs50.bsBPB; diff --git a/sys/uvm/uvm_pager.c b/sys/uvm/uvm_pager.c index 23b7f15d2bd..113ab4816aa 100644 --- a/sys/uvm/uvm_pager.c +++ b/sys/uvm/uvm_pager.c @@ -1,4 +1,4 @@ -/* $OpenBSD: uvm_pager.c,v 1.66 2014/05/08 20:08:50 kettenis Exp $ */ +/* $OpenBSD: uvm_pager.c,v 1.67 2014/05/09 03:54:28 tedu Exp $ */ /* $NetBSD: uvm_pager.c,v 1.36 2000/11/27 18:26:41 chs Exp $ */ /* @@ -774,8 +774,5 @@ uvm_aio_aiodone(struct buf *bp) #ifdef UVM_SWAP_ENCRYPT freed: #endif - if (write && (bp->b_flags & B_AGE) != 0 && bp->b_vp != NULL) { - vwakeup(bp->b_vp); - } pool_put(&bufpool, bp); } -- 2.20.1