diff options
author | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-05-03 08:43:01 -0400 |
---|---|---|
committer | Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp> | 2009-06-10 10:41:09 -0400 |
commit | d97a51a7e3c298d9899ea91165dfa0783fa5cc5c (patch) | |
tree | 31c3b082565cd3004c2036fe79657297a29a5824 /fs/nilfs2/bmap.h | |
parent | 65822070646ed7f2cf520439006dd863529be16e (diff) |
nilfs2: unify bmap operations starting use of indirect block address
This simplifies some low level functions of bmap.
Three bmap pointer operations, nilfs_bmap_start_v(),
nilfs_bmap_commit_v(), and nilfs_bmap_abort_v(), are unified into one
nilfs_bmap_start_v() function. And the related indirect function calls
are replaced with it.
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 | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/fs/nilfs2/bmap.h b/fs/nilfs2/bmap.h index 4f2708abb1ba..ad251d3e6752 100644 --- a/fs/nilfs2/bmap.h +++ b/fs/nilfs2/bmap.h | |||
@@ -96,13 +96,6 @@ struct nilfs_bmap_ptr_operations { | |||
96 | union nilfs_bmap_ptr_req *); | 96 | union nilfs_bmap_ptr_req *); |
97 | void (*bpop_abort_alloc_ptr)(struct nilfs_bmap *, | 97 | void (*bpop_abort_alloc_ptr)(struct nilfs_bmap *, |
98 | union nilfs_bmap_ptr_req *); | 98 | union nilfs_bmap_ptr_req *); |
99 | int (*bpop_prepare_start_ptr)(struct nilfs_bmap *, | ||
100 | union nilfs_bmap_ptr_req *); | ||
101 | void (*bpop_commit_start_ptr)(struct nilfs_bmap *, | ||
102 | union nilfs_bmap_ptr_req *, | ||
103 | sector_t); | ||
104 | void (*bpop_abort_start_ptr)(struct nilfs_bmap *, | ||
105 | union nilfs_bmap_ptr_req *); | ||
106 | int (*bpop_prepare_end_ptr)(struct nilfs_bmap *, | 99 | int (*bpop_prepare_end_ptr)(struct nilfs_bmap *, |
107 | union nilfs_bmap_ptr_req *); | 100 | union nilfs_bmap_ptr_req *); |
108 | void (*bpop_commit_end_ptr)(struct nilfs_bmap *, | 101 | void (*bpop_commit_end_ptr)(struct nilfs_bmap *, |
@@ -183,6 +176,8 @@ void nilfs_bmap_commit_gcdat(struct nilfs_bmap *, struct nilfs_bmap *); | |||
183 | * Internal use only | 176 | * Internal use only |
184 | */ | 177 | */ |
185 | 178 | ||
179 | int nilfs_bmap_start_v(struct nilfs_bmap *, union nilfs_bmap_ptr_req *, | ||
180 | sector_t); | ||
186 | int nilfs_bmap_move_v(const struct nilfs_bmap *, __u64, sector_t); | 181 | int nilfs_bmap_move_v(const struct nilfs_bmap *, __u64, sector_t); |
187 | int nilfs_bmap_mark_dirty(const struct nilfs_bmap *, __u64); | 182 | int nilfs_bmap_mark_dirty(const struct nilfs_bmap *, __u64); |
188 | 183 | ||