git: sbin/hammer: Fix wrong hash value

Tomohiro Kusumi tkusumi at crater.dragonflybsd.org
Fri Apr 3 09:13:43 PDT 2015


commit e21af3db38717d0dd1e09531590f615872f558d3
Author: Tomohiro Kusumi <kusumi.tomohiro at gmail.com>
Date:   Fri Apr 3 23:17:26 2015 +0900

    sbin/hammer: Fix wrong hash value
    
    - get_buffer_readahead() scans ondisk buffer using a wrong hash
      value based on raw address. It needs to use zone2 address.
    
    - Using wrong value results unnecessary malloc/free since buf
      is always NULL after TAILQ_FOREACH().

Summary of changes:
 sbin/hammer/ondisk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/e21af3db38717d0dd1e09531590f615872f558d3


-- 
DragonFly BSD source repository


More information about the Commits mailing list