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)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 1 Apr 2012 01:35:33 +0000 (18:35 -0700)
commit41a8e51772c65775f6b34c29ececa01178e633b9
treece3a74c7b8bc386ad681efc915d1f81d2cada780
parent39312e2a708905230d943ab98542ec8d6fabb22e
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