From 988866139de9f3c67c5a9c8b9a3809fcece2eb08 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Wed, 19 Jan 2011 20:30:15 -0800 Subject: [PATCH] HAMMER VFS - vfs.hammer.double_buffer adjustments * Do not try to use the (currently broken) _vnode_validate() to validate de-dup data when double_buffer is turned on. Use the device buffer cache instead. --- sys/vfs/hammer/hammer_dedup.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/vfs/hammer/hammer_dedup.c b/sys/vfs/hammer/hammer_dedup.c index 3baf2031a3..a6dadbeabe 100644 --- a/sys/vfs/hammer/hammer_dedup.c +++ b/sys/vfs/hammer/hammer_dedup.c @@ -410,7 +410,9 @@ hammer_dedup_validate(hammer_dedup_cache_t dcp, int zone, int bytes, * device-based buffer (for large-zone data blocks it will * generate a separate read). */ - if (_vnode_validate(dcp, data, &error)) { + if (hammer_double_buffer) { + error = 1; + } else if (_vnode_validate(dcp, data, &error)) { hammer_live_dedup_vnode_bcmps++; return (1); } else { -- 2.41.0