sys/vfs/hammer: Use hammer_find_inode()
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Thu, 10 Dec 2015 10:51:12 +0000 (19:51 +0900)
committerTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Fri, 11 Dec 2015 09:07:01 +0000 (18:07 +0900)
commit587c6c14de739603ac99a467c8087793c5b1591d
tree2c674315cf85e27903b9dda39131baf80ff80ce6
parentc436263a5b85e9999c081502587b2d422f66e521
sys/vfs/hammer: Use hammer_find_inode()

Add __hammer_find_inode() and make hammer_get_*inode() use this.
__hammer_find_inode() is no-ref version of hammer_find_inode()
directly called by hammer_find_inode().

Neither three function arguments obj_id, asof, localization nor
three fields of struct hammer_inode_info are modified in
hammer_get_inode() and hammer_get_dummy_inode(), so getting rid
of hammer_inode_info initialization placed before loop: is ok.
sys/vfs/hammer/hammer_inode.c