sys/vfs/hammer: Use HAMMER_ENCODE() for hammer_mod_rb_compare()
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Tue, 8 Dec 2015 07:55:09 +0000 (16:55 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Tue, 8 Dec 2015 18:09:49 +0000 (03:09 +0900)
commitb49481fb7d7b5a6212b585b2cabe115f00cb5bd5
tree99c41a71601bb660975dea7677a61a6437f042b6
parent334cf18cb6e6f08f4dbefd9af52300ee386e2c72
sys/vfs/hammer: Use HAMMER_ENCODE() for hammer_mod_rb_compare()

Try not to hardcode 8 for volume fields.

The 60 bits offset format changes, but the change doesn't affect
RB-Tree's elements comparison. It works as long as it has volume
bits and 52 bits offset within that volume. Whether HAMMER_ENCODE()
is used or not, io[12]_offset are not valid offsets anyway.
These offset values just need to be unique for physical locations.

(A) before this commit
----oooooooooooooooooooooooooooooooooooooooooooooooooooovvvvvvvv
(B) this commit
----vvvvvvvvoooooooooooooooooooooooooooooooooooooooooooooooooooo
sys/vfs/hammer/hammer_io.c