aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2009-05-21 11:38:56 -0400
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2009-06-10 10:41:10 -0400
commit9f098900ad34edfe3bcc2498cfa372f588b96c62 (patch)
tree87622fa169eb988319637f0ce1cca02242006fee /fs/nilfs2
parent087d01b4253b611773ca81ad894486e7e17e74f6 (diff)
nilfs2: remove nilfs_bmap_delete_block
nilfs_bmap_delete_block() is a wrapper function calling nilfs_btnode_delete(). This removes it for simplicity. Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
Diffstat (limited to 'fs/nilfs2')
-rw-r--r--fs/nilfs2/bmap.c6
-rw-r--r--fs/nilfs2/bmap.h1
-rw-r--r--fs/nilfs2/btree.c8
3 files changed, 4 insertions, 11 deletions
diff --git a/fs/nilfs2/bmap.c b/fs/nilfs2/bmap.c
index ee9914a7b70d..d7dbedfbd2b4 100644
--- a/fs/nilfs2/bmap.c
+++ b/fs/nilfs2/bmap.c
@@ -437,12 +437,6 @@ int nilfs_bmap_get_new_block(const struct nilfs_bmap *bmap, __u64 ptr,
437 return 0; 437 return 0;
438} 438}
439 439
440void nilfs_bmap_delete_block(const struct nilfs_bmap *bmap,
441 struct buffer_head *bh)
442{
443 nilfs_btnode_delete(bh);
444}
445
446__u64 nilfs_bmap_data_get_key(const struct nilfs_bmap *bmap, 440__u64 nilfs_bmap_data_get_key(const struct nilfs_bmap *bmap,
447 const struct buffer_head *bh) 441 const struct buffer_head *bh)
448{ 442{
diff --git a/fs/nilfs2/bmap.h b/fs/nilfs2/bmap.h
index 5b580b83289a..0af3190931ec 100644
--- a/fs/nilfs2/bmap.h
+++ b/fs/nilfs2/bmap.h
@@ -206,7 +206,6 @@ int nilfs_bmap_get_block(const struct nilfs_bmap *, __u64,
206 struct buffer_head **); 206 struct buffer_head **);
207int nilfs_bmap_get_new_block(const struct nilfs_bmap *, __u64, 207int nilfs_bmap_get_new_block(const struct nilfs_bmap *, __u64,
208 struct buffer_head **); 208 struct buffer_head **);
209void nilfs_bmap_delete_block(const struct nilfs_bmap *, struct buffer_head *);
210 209
211 210
212/* Assume that bmap semaphore is locked. */ 211/* Assume that bmap semaphore is locked. */
diff --git a/fs/nilfs2/btree.c b/fs/nilfs2/btree.c
index 102e218b426f..61e70d719b4d 100644
--- a/fs/nilfs2/btree.c
+++ b/fs/nilfs2/btree.c
@@ -1026,7 +1026,7 @@ static int nilfs_btree_prepare_insert(struct nilfs_btree *btree,
1026 &path[level].bp_newreq); 1026 &path[level].bp_newreq);
1027 err_out_child_node: 1027 err_out_child_node:
1028 for (level--; level > NILFS_BTREE_LEVEL_DATA; level--) { 1028 for (level--; level > NILFS_BTREE_LEVEL_DATA; level--) {
1029 nilfs_bmap_delete_block(&btree->bt_bmap, path[level].bp_sib_bh); 1029 nilfs_btnode_delete(path[level].bp_sib_bh);
1030 btree->bt_bmap.b_pops->bpop_abort_alloc_ptr( 1030 btree->bt_bmap.b_pops->bpop_abort_alloc_ptr(
1031 &btree->bt_bmap, &path[level].bp_newreq); 1031 &btree->bt_bmap, &path[level].bp_newreq);
1032 1032
@@ -1220,7 +1220,7 @@ static void nilfs_btree_concat_left(struct nilfs_btree *btree,
1220 unlock_buffer(path[level].bp_bh); 1220 unlock_buffer(path[level].bp_bh);
1221 unlock_buffer(path[level].bp_sib_bh); 1221 unlock_buffer(path[level].bp_sib_bh);
1222 1222
1223 nilfs_bmap_delete_block(&btree->bt_bmap, path[level].bp_bh); 1223 nilfs_btnode_delete(path[level].bp_bh);
1224 path[level].bp_bh = path[level].bp_sib_bh; 1224 path[level].bp_bh = path[level].bp_sib_bh;
1225 path[level].bp_sib_bh = NULL; 1225 path[level].bp_sib_bh = NULL;
1226 path[level].bp_index += nilfs_btree_node_get_nchildren(btree, left); 1226 path[level].bp_index += nilfs_btree_node_get_nchildren(btree, left);
@@ -1251,7 +1251,7 @@ static void nilfs_btree_concat_right(struct nilfs_btree *btree,
1251 unlock_buffer(path[level].bp_bh); 1251 unlock_buffer(path[level].bp_bh);
1252 unlock_buffer(path[level].bp_sib_bh); 1252 unlock_buffer(path[level].bp_sib_bh);
1253 1253
1254 nilfs_bmap_delete_block(&btree->bt_bmap, path[level].bp_sib_bh); 1254 nilfs_btnode_delete(path[level].bp_sib_bh);
1255 path[level].bp_sib_bh = NULL; 1255 path[level].bp_sib_bh = NULL;
1256 path[level + 1].bp_index++; 1256 path[level + 1].bp_index++;
1257} 1257}
@@ -1275,7 +1275,7 @@ static void nilfs_btree_shrink(struct nilfs_btree *btree,
1275 nilfs_btree_node_move_left(btree, root, child, n); 1275 nilfs_btree_node_move_left(btree, root, child, n);
1276 unlock_buffer(path[level].bp_bh); 1276 unlock_buffer(path[level].bp_bh);
1277 1277
1278 nilfs_bmap_delete_block(&btree->bt_bmap, path[level].bp_bh); 1278 nilfs_btnode_delete(path[level].bp_bh);
1279 path[level].bp_bh = NULL; 1279 path[level].bp_bh = NULL;
1280} 1280}
1281 1281