ufs_bmap.c (58088) | ufs_bmap.c (58345) |
---|---|
1/* 2 * Copyright (c) 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)ufs_bmap.c 8.7 (Berkeley) 3/21/95 | 1/* 2 * Copyright (c) 1989, 1991, 1993 3 * The Regents of the University of California. All rights reserved. 4 * (c) UNIX System Laboratories, Inc. 5 * All or some portions of this file are derived from material licensed 6 * to the University of California by American Telephone and Telegraph 7 * Co. or Unix System Laboratories, Inc. and are reproduced herein with 8 * the permission of UNIX System Laboratories, Inc. --- 22 unchanged lines hidden (view full) --- 31 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 32 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 33 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 34 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 35 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 36 * SUCH DAMAGE. 37 * 38 * @(#)ufs_bmap.c 8.7 (Berkeley) 3/21/95 |
39 * $FreeBSD: head/sys/ufs/ufs/ufs_bmap.c 58088 2000-03-15 07:18:15Z mckusick $ | 39 * $FreeBSD: head/sys/ufs/ufs/ufs_bmap.c 58345 2000-03-20 10:44:49Z phk $ |
40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/buf.h> 45#include <sys/proc.h> 46#include <sys/vnode.h> 47#include <sys/mount.h> --- 139 unchanged lines hidden (view full) --- 187 xap->in_exists = 1; 188 bp = getblk(vp, metalbn, mp->mnt_stat.f_iosize, 0, 0); 189 if ((bp->b_flags & B_CACHE) == 0) { 190#ifdef DIAGNOSTIC 191 if (!daddr) 192 panic("ufs_bmaparray: indirect block not in cache"); 193#endif 194 bp->b_blkno = blkptrtodb(ump, daddr); | 40 */ 41 42#include <sys/param.h> 43#include <sys/systm.h> 44#include <sys/buf.h> 45#include <sys/proc.h> 46#include <sys/vnode.h> 47#include <sys/mount.h> --- 139 unchanged lines hidden (view full) --- 187 xap->in_exists = 1; 188 bp = getblk(vp, metalbn, mp->mnt_stat.f_iosize, 0, 0); 189 if ((bp->b_flags & B_CACHE) == 0) { 190#ifdef DIAGNOSTIC 191 if (!daddr) 192 panic("ufs_bmaparray: indirect block not in cache"); 193#endif 194 bp->b_blkno = blkptrtodb(ump, daddr); |
195 bp->b_flags |= B_READ; | 195 bp->b_iocmd = BIO_READ; |
196 bp->b_flags &= ~(B_INVAL|B_ERROR); 197 vfs_busy_pages(bp, 0); 198 VOP_STRATEGY(bp->b_vp, bp); 199 curproc->p_stats->p_ru.ru_inblock++; /* XXX */ 200 error = biowait(bp); 201 if (error) { 202 brelse(bp); 203 return (error); --- 117 unchanged lines hidden --- | 196 bp->b_flags &= ~(B_INVAL|B_ERROR); 197 vfs_busy_pages(bp, 0); 198 VOP_STRATEGY(bp->b_vp, bp); 199 curproc->p_stats->p_ru.ru_inblock++; /* XXX */ 200 error = biowait(bp); 201 if (error) { 202 brelse(bp); 203 return (error); --- 117 unchanged lines hidden --- |