aboutsummaryrefslogtreecommitdiffstats
path: root/fs/nilfs2/bmap.h
diff options
context:
space:
mode:
authorRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2010-07-10 09:21:54 -0400
committerRyusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>2010-07-22 21:02:14 -0400
commitdc935be2a094087bc561d80f8cf9e66bbc1f7b18 (patch)
treeab7af5a2a40633f74a949916de7797c3d8f345b7 /fs/nilfs2/bmap.h
parente7c274f8083793f8f861def63c02a0839b34d26d (diff)
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/bmap.h')
-rw-r--r--fs/nilfs2/bmap.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/nilfs2/bmap.h b/fs/nilfs2/bmap.h
index 379fda4c668c..fae83cf9c009 100644
--- a/fs/nilfs2/bmap.h
+++ b/fs/nilfs2/bmap.h
@@ -219,6 +219,13 @@ static inline void nilfs_bmap_abort_end_ptr(struct nilfs_bmap *bmap,
219 nilfs_dat_abort_end(dat, &req->bpr_req); 219 nilfs_dat_abort_end(dat, &req->bpr_req);
220} 220}
221 221
222static inline void nilfs_bmap_set_target_v(struct nilfs_bmap *bmap, __u64 key,
223 __u64 ptr)
224{
225 bmap->b_last_allocated_key = key;
226 bmap->b_last_allocated_ptr = ptr;
227}
228
222__u64 nilfs_bmap_data_get_key(const struct nilfs_bmap *, 229__u64 nilfs_bmap_data_get_key(const struct nilfs_bmap *,
223 const struct buffer_head *); 230 const struct buffer_head *);
224 231