summaryrefslogtreecommitdiff
path: root/fs/nilfs2/direct.c
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2010-07-10 17:21:54 +0400
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2010-07-23 05:02:14 +0400
commitdc935be2a094087bc561d80f8cf9e66bbc1f7b18 (patch)
treeab7af5a2a40633f74a949916de7797c3d8f345b7 /fs/nilfs2/direct.c
parente7c274f8083793f8f861def63c02a0839b34d26d (diff)
downloadlinux-dc935be2a094087bc561d80f8cf9e66bbc1f7b18.tar.xz
nilfs2: unify bmap set_target_v operations
This unifies two similar functions nilfs_btree_set_target_v and nilfs_direct_set_target_v into one, nilfs_bmap_set_target_v. Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2/direct.c')
-rw-r--r--fs/nilfs2/direct.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/fs/nilfs2/direct.c b/fs/nilfs2/direct.c
index cfc7218914d6..318613010106 100644
--- a/fs/nilfs2/direct.c
+++ b/fs/nilfs2/direct.c
@@ -116,13 +116,6 @@ nilfs_direct_find_target_v(const struct nilfs_bmap *direct, __u64 key)
return nilfs_bmap_find_target_in_group(direct);
}
-static void nilfs_direct_set_target_v(struct nilfs_bmap *direct,
- __u64 key, __u64 ptr)
-{
- direct->b_last_allocated_key = key;
- direct->b_last_allocated_ptr = ptr;
-}
-
static int nilfs_direct_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr)
{
union nilfs_bmap_ptr_req req;
@@ -152,7 +145,7 @@ static int nilfs_direct_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr)
nilfs_bmap_set_dirty(bmap);
if (NILFS_BMAP_USE_VBN(bmap))
- nilfs_direct_set_target_v(bmap, key, req.bpr_ptr);
+ nilfs_bmap_set_target_v(bmap, key, req.bpr_ptr);
nilfs_bmap_add_blocks(bmap, 1);
}