ext2_subr.c (42539) | ext2_subr.c (43301) |
---|---|
1/* 2 * modified for Lites 1.1 3 * 4 * Aug 1995, Godmar Back (gback@cs.utah.edu) 5 * University of Utah, Department of Computer Science 6 */ 7/* 8 * Copyright (c) 1982, 1986, 1989, 1993 --- 68 unchanged lines hidden (view full) --- 77 int bsize, error; 78 79 ip = VTOI(vp); 80 fs = ip->i_e2fs; 81 lbn = lblkno(fs, offset); 82 bsize = blksize(fs, ip, lbn); 83 84 *bpp = NULL; | 1/* 2 * modified for Lites 1.1 3 * 4 * Aug 1995, Godmar Back (gback@cs.utah.edu) 5 * University of Utah, Department of Computer Science 6 */ 7/* 8 * Copyright (c) 1982, 1986, 1989, 1993 --- 68 unchanged lines hidden (view full) --- 77 int bsize, error; 78 79 ip = VTOI(vp); 80 fs = ip->i_e2fs; 81 lbn = lblkno(fs, offset); 82 bsize = blksize(fs, ip, lbn); 83 84 *bpp = NULL; |
85 if (error = bread(vp, lbn, bsize, NOCRED, &bp)) { | 85 if ((error = bread(vp, lbn, bsize, NOCRED, &bp)) != 0) { |
86 brelse(bp); 87 return (error); 88 } 89 if (res) 90 *res = (char *)bp->b_data + blkoff(fs, offset); 91 *bpp = bp; 92 return (0); 93} --- 34 unchanged lines hidden --- | 86 brelse(bp); 87 return (error); 88 } 89 if (res) 90 *res = (char *)bp->b_data + blkoff(fs, offset); 91 *bpp = bp; 92 return (0); 93} --- 34 unchanged lines hidden --- |