cvs commit: src/sys/sys bio.h buf.h src/sys/kern vfs_bio.c vfs_cluster.c
Matthew Dillon
dillon at crater.dragonflybsd.org
Sun Jul 13 20:09:45 PDT 2008
dillon 2008/07/13 20:09:00 PDT
DragonFly src repository
Modified files:
sys/sys bio.h buf.h
sys/kern vfs_bio.c vfs_cluster.c
Log:
Kernel support for HAMMER:
* Add another type to the bio->bio_caller_info1 union
* Add two new flags to getblk(), used by the cluster code.
GETBLK_SZMATCH - Tell getblk() to fail and return NULL if a
pre-existing buffer's size does not match
the requested size (this prevents getblk()
from doing a potentially undesired bwrite()
sequence).
GETBLK_NOWAIT - Tell getblk() to use a non-blocking lock.
* pop_bio() now returns the previous BIO (or NULL if there is no previous
BIO). This allows HAMMER to chain bio_done()'s
* Fix a bug in cluster_read(). The cluster code's read-ahead at the
end could go past the caller-specified limit and force a block to
the wrong block size.
Revision Changes Path
1.6 +1 -0 src/sys/sys/bio.h
1.51 +8 -1 src/sys/sys/buf.h
1.112 +21 -2 src/sys/kern/vfs_bio.c
1.40 +14 -23 src/sys/kern/vfs_cluster.c
http://www.dragonflybsd.org/cvsweb/src/sys/sys/bio.h.diff?r1=1.5&r2=1.6&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/sys/buf.h.diff?r1=1.50&r2=1.51&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_bio.c.diff?r1=1.111&r2=1.112&f=u
http://www.dragonflybsd.org/cvsweb/src/sys/kern/vfs_cluster.c.diff?r1=1.39&r2=1.40&f=u
More information about the Commits
mailing list