]> git.baikalelectronics.ru Git - kernel.git/commit
nilfs2: allow btree code to directly call dat operations
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Sat, 15 Aug 2009 06:34:33 +0000 (15:34 +0900)
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Mon, 14 Sep 2009 09:27:16 +0000 (18:27 +0900)
commit0ba378a66a1af58a02ae1bbe1b1148330717d116
treea6c4a318776f5804f53994acad7254c7404418f0
parent810951d0ab7edc7315118029e1461d092f9956c0
nilfs2: allow btree code to directly call dat operations

The current btree code is written so that btree functions call dat
operations via wrapper functions in bmap.c when they allocate, free,
or modify virtual block addresses.

This abstraction requires additional function calls and causes
frequent call of nilfs_bmap_get_dat() function since it is used in the
every wrapper function.

This removes the wrapper functions and makes them available from
btree.c and direct.c, which will increase the opportunity of
compiler optimization.

Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
fs/nilfs2/bmap.c
fs/nilfs2/bmap.h
fs/nilfs2/btree.c
fs/nilfs2/direct.c