diff options
Diffstat (limited to 'fs/nilfs2/bmap.c')
-rw-r--r-- | fs/nilfs2/bmap.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/fs/nilfs2/bmap.c b/fs/nilfs2/bmap.c index d7dbedfbd2b4..cf5c5d2cfa00 100644 --- a/fs/nilfs2/bmap.c +++ b/fs/nilfs2/bmap.c | |||
@@ -417,26 +417,6 @@ void nilfs_bmap_sub_blocks(const struct nilfs_bmap *bmap, int n) | |||
417 | mark_inode_dirty(bmap->b_inode); | 417 | mark_inode_dirty(bmap->b_inode); |
418 | } | 418 | } |
419 | 419 | ||
420 | int nilfs_bmap_get_block(const struct nilfs_bmap *bmap, __u64 ptr, | ||
421 | struct buffer_head **bhp) | ||
422 | { | ||
423 | return nilfs_btnode_get(&NILFS_BMAP_I(bmap)->i_btnode_cache, | ||
424 | ptr, 0, bhp, 0); | ||
425 | } | ||
426 | |||
427 | int nilfs_bmap_get_new_block(const struct nilfs_bmap *bmap, __u64 ptr, | ||
428 | struct buffer_head **bhp) | ||
429 | { | ||
430 | int ret; | ||
431 | |||
432 | ret = nilfs_btnode_get(&NILFS_BMAP_I(bmap)->i_btnode_cache, | ||
433 | ptr, 0, bhp, 1); | ||
434 | if (ret < 0) | ||
435 | return ret; | ||
436 | set_buffer_nilfs_volatile(*bhp); | ||
437 | return 0; | ||
438 | } | ||
439 | |||
440 | __u64 nilfs_bmap_data_get_key(const struct nilfs_bmap *bmap, | 420 | __u64 nilfs_bmap_data_get_key(const struct nilfs_bmap *bmap, |
441 | const struct buffer_head *bh) | 421 | const struct buffer_head *bh) |
442 | { | 422 | { |