mirror of
https://github.com/freebsd/freebsd-src
synced 2024-11-05 18:22:52 +00:00
Removed some unused/obsolete code.
Submitted by: John Dyson
This commit is contained in:
parent
9532143ae6
commit
e5501f43a5
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=5840
1 changed files with 1 additions and 7 deletions
|
@ -31,7 +31,7 @@
|
|||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)ufs_readwrite.c 8.7 (Berkeley) 1/21/94
|
||||
* $Id: ufs_readwrite.c,v 1.5 1994/10/10 01:04:55 phk Exp $
|
||||
* $Id: ufs_readwrite.c,v 1.6 1995/01/09 16:05:26 davidg Exp $
|
||||
*/
|
||||
|
||||
#ifdef LFS_READWRITE
|
||||
|
@ -101,9 +101,6 @@ READ(ap)
|
|||
if ((bytesinfile = ip->i_size - uio->uio_offset) <= 0)
|
||||
break;
|
||||
lbn = lblkno(fs, uio->uio_offset);
|
||||
xfersize = vfs_read_bypass( vp, uio, bytesinfile, lbn);
|
||||
if( xfersize != 0)
|
||||
continue;
|
||||
nextlbn = lbn + 1;
|
||||
size = BLKSIZE(fs, ip, lbn);
|
||||
blkoffset = blkoff(fs, uio->uio_offset);
|
||||
|
@ -256,9 +253,6 @@ WRITE(ap)
|
|||
if (uio->uio_offset + xfersize > ip->i_size) {
|
||||
ip->i_size = uio->uio_offset + xfersize;
|
||||
}
|
||||
/*
|
||||
(void)vnode_pager_uncache(vp);
|
||||
*/
|
||||
|
||||
size = BLKSIZE(fs, ip, lbn) - bp->b_resid;
|
||||
if (size < xfersize)
|
||||
|
|
Loading…
Reference in a new issue