HAMMER VFS - Fix assertion with multi-volume setup
authorMatthew Dillon <dillon@apollo.backplane.com>
Sun, 1 Apr 2012 01:35:33 +0000 (18:35 -0700)
committerVenkatesh Srinivas <me@endeavour.zapto.org>
Tue, 1 May 2012 05:54:29 +0000 (22:54 -0700)
commit753086a7af598105c605455998d711eb58e165ea
tree0ed240328d9c1d0be9ae51bf8a9edb3d1315e55d
parent2a9bfc81fff48191a76fdf894657083e091df58a
HAMMER VFS - Fix assertion with multi-volume setup

* The RB compare code for hammer_io was extracting the volume number
  from the wrong place, creating a situation where duplicate hammer_io's
  would sometimes be inserted in the RB tree (causing an assertion + panic).

* Pull the volume number from a different field.

Reported-by: Mark Saad <nonesuch@longcount.org>
sys/vfs/hammer/hammer_io.c