OpenAFS Master Repository branch, master, updated. BP--openafs-stable-1_6_x-1248-ga41dee0
Gerrit Code Review
gerrit@openafs.org
Sun, 5 Jun 2011 07:39:16 -0700 (PDT)
The following commit has been merged in the master branch:
commit a41dee091610d3acff04e73e21eb1ecbae0980b5
Author: Simon Wilkinson <sxw@your-file-system.com>
Date: Sun Apr 17 20:52:50 2011 +0100
libafs: Tidy up iovec allocation and trimming
Tidy up the way that we perform iovec allocation and trimming by
making the rest of the world look a little bit more like Darwin.
This relies upon a struct uio, followed by 16 iovecs, being able
to fit into a SmallSpace sized block. On the majority of 32 bit
systems, such a block is 256 bytes long (on AIX and HPUX it is
152 bytes). With a 32bit size_t, an iovec is 8 bytes, so 16 of
them is 128 bytes, and a struct uio is 24 bytes, giving a grand
total of 152.
Change-Id: I5243f034bcb4e1f5fa319c4f522229bd96eaae3d
Reviewed-on: http://gerrit.openafs.org/4749
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/afs/DARWIN/osi_machdep.h | 6 ++--
src/afs/DARWIN/osi_misc.c | 6 ++--
src/afs/VNOPS/afs_vnop_read.c | 50 ++++++---------------------------------
src/afs/VNOPS/afs_vnop_write.c | 30 ++++-------------------
src/afs/afs_osi_uio.c | 31 ++++++++++++++++++++++++
src/afs/afs_prototypes.h | 5 ++++
6 files changed, 56 insertions(+), 72 deletions(-)
--
OpenAFS Master Repository