diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-05-21 12:07:13 -0400 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-06-10 10:41:10 -0400 |
commit | f198dbb9cf580c09644ebdf46846115c6daff14e (patch) | |
tree | 0792f2044153e35bea1c2b93d69ba8045cd86551 /fs/nilfs2/bmap.h | |
parent | 9f098900ad34edfe3bcc2498cfa372f588b96c62 (diff) |
nilfs2: move get block functions in bmap.c into btree codes
Two get block function for btree nodes, nilfs_bmap_get_block() and
nilfs_bmap_get_new_block(), are called only from the btree codes.
This relocation will increase opportunities of compiler optimization.
Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/bmap.h')
-rw-r--r-- | fs/nilfs2/bmap.h | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/fs/nilfs2/bmap.h b/fs/nilfs2/bmap.h index 0af3190931ec..978073bf5650 100644 --- a/fs/nilfs2/bmap.h +++ b/fs/nilfs2/bmap.h | |||
@@ -202,12 +202,6 @@ void nilfs_bmap_add_blocks(const struct nilfs_bmap *, int); | |||
202 | void nilfs_bmap_sub_blocks(const struct nilfs_bmap *, int); | 202 | void nilfs_bmap_sub_blocks(const struct nilfs_bmap *, int); |
203 | 203 | ||
204 | 204 | ||
205 | int nilfs_bmap_get_block(const struct nilfs_bmap *, __u64, | ||
206 | struct buffer_head **); | ||
207 | int nilfs_bmap_get_new_block(const struct nilfs_bmap *, __u64, | ||
208 | struct buffer_head **); | ||
209 | |||
210 | |||
211 | /* Assume that bmap semaphore is locked. */ | 205 | /* Assume that bmap semaphore is locked. */ |
212 | static inline int nilfs_bmap_dirty(const struct nilfs_bmap *bmap) | 206 | static inline int nilfs_bmap_dirty(const struct nilfs_bmap *bmap) |
213 | { | 207 | { |