• R
    nilfs2: remove bmap pointer operations · d4b96157
    Ryusuke Konishi 提交于
    Previously, the bmap codes of nilfs used three types of function
    tables.  The abuse of indirect function calls decreased source
    readability and suffered many indirect jumps which would confuse
    branch prediction of processors.
    
    This eliminates one type of the function tables,
    nilfs_bmap_ptr_operations, which was used to dispatch low level
    pointer operations of the nilfs bmap.
    
    This adds a new integer variable "b_ptr_type" to nilfs_bmap struct,
    and uses the value to select the pointer operations.
    Signed-off-by: NRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
    d4b96157
direct.c 10.5 KB