On Wed, Dec 10, 2014 at 06:15:04PM +0200, Kaspars Bankovskis wrote: > allocbuf was removed in 1.88 of sys/kern/vfs_bio.c > > but not from manpages >
fixed, but couple of comments inline: > Index: distrib/sets/lists/comp/mi > =================================================================== > RCS file: /cvs/src/distrib/sets/lists/comp/mi,v > retrieving revision 1.1117 > diff -u -p -r1.1117 mi > --- distrib/sets/lists/comp/mi 9 Dec 2014 18:35:05 -0000 1.1117 > +++ distrib/sets/lists/comp/mi 10 Dec 2014 15:55:52 -0000 > @@ -6022,7 +6022,6 @@ > ./usr/share/man/man9/add_true_randomness.9 > ./usr/share/man/man9/add_tty_randomness.9 > ./usr/share/man/man9/addlog.9 > -./usr/share/man/man9/allocbuf.9 > ./usr/share/man/man9/aml_evalname.9 > ./usr/share/man/man9/aml_evalnode.9 > ./usr/share/man/man9/aml_find_node.9 no need to do this. it happens by magic. > Index: share/man/man9/Makefile > =================================================================== > RCS file: /cvs/src/share/man/man9/Makefile,v > retrieving revision 1.223 > diff -u -p -r1.223 Makefile > --- share/man/man9/Makefile 24 Nov 2014 12:43:54 -0000 1.223 > +++ share/man/man9/Makefile 10 Dec 2014 15:57:25 -0000 > @@ -70,7 +70,7 @@ MLINKS+=buffercache.9 bread.9 buffercach > buffercache.9 bwrite.9 buffercache.9 bawrite.9 \ > buffercache.9 bdwrite.9 buffercache.9 getblk.9 \ > buffercache.9 geteblk.9 buffercache.9 incore.9 \ > - buffercache.9 allocbuf.9 buffercache.9 brelse.9 \ > + buffercache.9 buffercache.9 brelse.9 \ > buffercache.9 biodone.9 buffercache.9 biowait.9 > MLINKS+=bufq_init.9 bufq_switch.9 bufq_init.9 bufq_destroy.9 \ > bufq_init.9 bufq_queue.9 bufq_init.9 bufq_dequeue.9 \ the mlink format is like normal link, so "source target". so the new line above should be: +buffercache.9 brelse.9 jmc > Index: share/man/man9/buffercache.9 > =================================================================== > RCS file: /cvs/src/share/man/man9/buffercache.9,v > retrieving revision 1.9 > diff -u -p -r1.9 buffercache.9 > --- share/man/man9/buffercache.9 11 Jun 2013 16:42:05 -0000 1.9 > +++ share/man/man9/buffercache.9 10 Dec 2014 15:58:38 -0000 > @@ -115,7 +115,6 @@ > .Nm getblk , > .Nm geteblk , > .Nm incore , > -.Nm allocbuf , > .Nm brelse , > .Nm biodone , > .Nm biowait > @@ -144,8 +143,6 @@ > .Ft struct buf * > .Fn incore "struct vnode *vp" "daddr_t blkno" > .Ft void > -.Fn allocbuf "struct buf *bp" "int size" > -.Ft void > .Fn brelse "struct buf *bp" > .Ft void > .Fn biodone "struct buf *bp" > @@ -296,16 +293,6 @@ Note that > .Fn incore > doesn't mark the buffer as busy unlike > .Fn getblk . > -.\" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > -.It Fn allocbuf "bp" "size" > -Expand or contract the actual memory allocated to a buffer. > -If the buffer shrinks, the truncated part of the data > -is lost, so it is up to the caller to have written > -it out > -.Em first > -if needed; this routine will not start a write. > -If the buffer grows, it is the caller's responsibility to fill out > -the buffer's additional contents. > .\" - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - > .It Fn brelse "bp" > Unlock a buffer by clearing the >