]> git.michaelhowe.org Git - packages/o/openafs.git/commit
Windows: Modify signature of buf_CleanAsync and buf_CleanAsyncLocked
authorJeffrey Altman <jaltman@your-file-system.com>
Fri, 3 Sep 2010 01:17:24 +0000 (21:17 -0400)
committerJeffrey Altman <jaltman@openafs.org>
Wed, 8 Sep 2010 03:47:21 +0000 (20:47 -0700)
commit81e9b15f568bbfdbbfa54c2f2aaf7f1f1e5beb62
tree2b36d1349e137731ce2baf71fc0c0ecb6b0fd31e
parenta7e9c8316765b3b7a8933aafba3681e2e4d106ef
Windows: Modify signature of buf_CleanAsync and buf_CleanAsyncLocked

The buf_CleanAsync() and buf_CleanAsyncLocked() signature does
not include a cm_scache_t pointer even though buf_CleanAsyncLocked()
needs a pointer to the matching cm_scache_t object.  There are
some calls when the cm_scache_t object is already known.  For those
cases it is more efficient to avoid the additional lookup especially
when buf_CleanAsync*() is being called on every buffer associated
with the cm_scache_t object.

At the same time add a flags field and a constant
CM_BUF_WRITE_SCP_LOCKED to permit the lock state of the cm_scache_t
to be passed in.

Finally, fix up the usage in buf_FlushCleanPages() which gains
the most from these changes.

LICENSE MIT

Change-Id: I3726441ff83a89e24d790174ca71396d633f1be6
Reviewed-on: http://gerrit.openafs.org/2662
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Jeffrey Altman <jaltman@openafs.org>
Reviewed-by: Jeffrey Altman <jaltman@openafs.org>
(cherry picked from commit 1ef135110b7d850e2c40bbbb6b7de69c76872fa9)
Reviewed-on: http://gerrit.openafs.org/2708
src/WINNT/afsd/cm_buf.c
src/WINNT/afsd/cm_buf.h
src/WINNT/afsd/cm_dcache.c