/linux-4.1.27/fs/nilfs2/ |
H A D | bmap.h | 38 struct nilfs_bmap; 62 int (*bop_lookup)(const struct nilfs_bmap *, __u64, int, __u64 *); 63 int (*bop_lookup_contig)(const struct nilfs_bmap *, __u64, __u64 *, 65 int (*bop_insert)(struct nilfs_bmap *, __u64, __u64); 66 int (*bop_delete)(struct nilfs_bmap *, __u64); 67 void (*bop_clear)(struct nilfs_bmap *); 69 int (*bop_propagate)(struct nilfs_bmap *, struct buffer_head *); 70 void (*bop_lookup_dirty_buffers)(struct nilfs_bmap *, 73 int (*bop_assign)(struct nilfs_bmap *, 77 int (*bop_mark)(struct nilfs_bmap *, __u64, int); 79 int (*bop_seek_key)(const struct nilfs_bmap *, __u64, __u64 *); 80 int (*bop_last_key)(const struct nilfs_bmap *, __u64 *); 83 int (*bop_check_insert)(const struct nilfs_bmap *, __u64); 84 int (*bop_check_delete)(struct nilfs_bmap *, __u64); 85 int (*bop_gather_data)(struct nilfs_bmap *, __u64 *, __u64 *, int); 101 * struct nilfs_bmap - bmap structure 112 struct nilfs_bmap { struct 154 int nilfs_bmap_test_and_clear_dirty(struct nilfs_bmap *); 155 int nilfs_bmap_read(struct nilfs_bmap *, struct nilfs_inode *); 156 void nilfs_bmap_write(struct nilfs_bmap *, struct nilfs_inode *); 157 int nilfs_bmap_lookup_contig(struct nilfs_bmap *, __u64, __u64 *, unsigned); 158 int nilfs_bmap_insert(struct nilfs_bmap *bmap, __u64 key, unsigned long rec); 159 int nilfs_bmap_delete(struct nilfs_bmap *bmap, __u64 key); 160 int nilfs_bmap_seek_key(struct nilfs_bmap *bmap, __u64 start, __u64 *keyp); 161 int nilfs_bmap_last_key(struct nilfs_bmap *bmap, __u64 *keyp); 162 int nilfs_bmap_truncate(struct nilfs_bmap *bmap, __u64 key); 163 void nilfs_bmap_clear(struct nilfs_bmap *); 164 int nilfs_bmap_propagate(struct nilfs_bmap *, struct buffer_head *); 165 void nilfs_bmap_lookup_dirty_buffers(struct nilfs_bmap *, struct list_head *); 166 int nilfs_bmap_assign(struct nilfs_bmap *, struct buffer_head **, 168 int nilfs_bmap_lookup_at_level(struct nilfs_bmap *, __u64, int, __u64 *); 169 int nilfs_bmap_mark(struct nilfs_bmap *, __u64, int); 171 void nilfs_bmap_init_gc(struct nilfs_bmap *); 173 void nilfs_bmap_save(const struct nilfs_bmap *, struct nilfs_bmap_store *); 174 void nilfs_bmap_restore(struct nilfs_bmap *, const struct nilfs_bmap_store *); 176 static inline int nilfs_bmap_lookup(struct nilfs_bmap *bmap, __u64 key, nilfs_bmap_lookup() 185 struct inode *nilfs_bmap_get_dat(const struct nilfs_bmap *); 187 static inline int nilfs_bmap_prepare_alloc_ptr(struct nilfs_bmap *bmap, nilfs_bmap_prepare_alloc_ptr() 198 static inline void nilfs_bmap_commit_alloc_ptr(struct nilfs_bmap *bmap, nilfs_bmap_commit_alloc_ptr() 206 static inline void nilfs_bmap_abort_alloc_ptr(struct nilfs_bmap *bmap, nilfs_bmap_abort_alloc_ptr() 216 static inline int nilfs_bmap_prepare_end_ptr(struct nilfs_bmap *bmap, nilfs_bmap_prepare_end_ptr() 223 static inline void nilfs_bmap_commit_end_ptr(struct nilfs_bmap *bmap, nilfs_bmap_commit_end_ptr() 232 static inline void nilfs_bmap_abort_end_ptr(struct nilfs_bmap *bmap, nilfs_bmap_abort_end_ptr() 240 static inline void nilfs_bmap_set_target_v(struct nilfs_bmap *bmap, __u64 key, nilfs_bmap_set_target_v() 247 __u64 nilfs_bmap_data_get_key(const struct nilfs_bmap *, 250 __u64 nilfs_bmap_find_target_seq(const struct nilfs_bmap *, __u64); 251 __u64 nilfs_bmap_find_target_in_group(const struct nilfs_bmap *); 255 static inline int nilfs_bmap_dirty(const struct nilfs_bmap *bmap) nilfs_bmap_dirty() 261 static inline void nilfs_bmap_set_dirty(struct nilfs_bmap *bmap) nilfs_bmap_set_dirty() 267 static inline void nilfs_bmap_clear_dirty(struct nilfs_bmap *bmap) nilfs_bmap_clear_dirty()
|
H A D | direct.c | 30 static inline __le64 *nilfs_direct_dptrs(const struct nilfs_bmap *direct) nilfs_direct_dptrs() 37 nilfs_direct_get_ptr(const struct nilfs_bmap *direct, __u64 key) nilfs_direct_get_ptr() 42 static inline void nilfs_direct_set_ptr(struct nilfs_bmap *direct, nilfs_direct_set_ptr() 48 static int nilfs_direct_lookup(const struct nilfs_bmap *direct, nilfs_direct_lookup() 63 static int nilfs_direct_lookup_contig(const struct nilfs_bmap *direct, nilfs_direct_lookup_contig() 105 nilfs_direct_find_target_v(const struct nilfs_bmap *direct, __u64 key) nilfs_direct_find_target_v() 118 static int nilfs_direct_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr) nilfs_direct_insert() 154 static int nilfs_direct_delete(struct nilfs_bmap *bmap, __u64 key) nilfs_direct_delete() 176 static int nilfs_direct_seek_key(const struct nilfs_bmap *direct, __u64 start, nilfs_direct_seek_key() 191 static int nilfs_direct_last_key(const struct nilfs_bmap *direct, __u64 *keyp) nilfs_direct_last_key() 209 static int nilfs_direct_check_insert(const struct nilfs_bmap *bmap, __u64 key) nilfs_direct_check_insert() 214 static int nilfs_direct_gather_data(struct nilfs_bmap *direct, nilfs_direct_gather_data() 235 int nilfs_direct_delete_and_convert(struct nilfs_bmap *bmap, nilfs_direct_delete_and_convert() 268 static int nilfs_direct_propagate(struct nilfs_bmap *bmap, nilfs_direct_propagate() 299 static int nilfs_direct_assign_v(struct nilfs_bmap *direct, nilfs_direct_assign_v() 319 static int nilfs_direct_assign_p(struct nilfs_bmap *direct, nilfs_direct_assign_p() 333 static int nilfs_direct_assign(struct nilfs_bmap *bmap, nilfs_direct_assign() 382 int nilfs_direct_init(struct nilfs_bmap *bmap) nilfs_direct_init()
|
H A D | bmap.c | 35 struct inode *nilfs_bmap_get_dat(const struct nilfs_bmap *bmap) nilfs_bmap_get_dat() 42 static int nilfs_bmap_convert_error(struct nilfs_bmap *bmap, nilfs_bmap_convert_error() 75 int nilfs_bmap_lookup_at_level(struct nilfs_bmap *bmap, __u64 key, int level, nilfs_bmap_lookup_at_level() 99 int nilfs_bmap_lookup_contig(struct nilfs_bmap *bmap, __u64 key, __u64 *ptrp, nilfs_bmap_lookup_contig() 111 static int nilfs_bmap_do_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr) nilfs_bmap_do_insert() 155 int nilfs_bmap_insert(struct nilfs_bmap *bmap, __u64 key, unsigned long rec) nilfs_bmap_insert() 166 static int nilfs_bmap_do_delete(struct nilfs_bmap *bmap, __u64 key) nilfs_bmap_do_delete() 210 int nilfs_bmap_seek_key(struct nilfs_bmap *bmap, __u64 start, __u64 *keyp) nilfs_bmap_seek_key() 223 int nilfs_bmap_last_key(struct nilfs_bmap *bmap, __u64 *keyp) nilfs_bmap_last_key() 253 int nilfs_bmap_delete(struct nilfs_bmap *bmap, __u64 key) nilfs_bmap_delete() 264 static int nilfs_bmap_do_truncate(struct nilfs_bmap *bmap, __u64 key) nilfs_bmap_do_truncate() 305 int nilfs_bmap_truncate(struct nilfs_bmap *bmap, __u64 key) nilfs_bmap_truncate() 322 void nilfs_bmap_clear(struct nilfs_bmap *bmap) nilfs_bmap_clear() 345 int nilfs_bmap_propagate(struct nilfs_bmap *bmap, struct buffer_head *bh) nilfs_bmap_propagate() 361 void nilfs_bmap_lookup_dirty_buffers(struct nilfs_bmap *bmap, nilfs_bmap_lookup_dirty_buffers() 387 int nilfs_bmap_assign(struct nilfs_bmap *bmap, nilfs_bmap_assign() 417 int nilfs_bmap_mark(struct nilfs_bmap *bmap, __u64 key, int level) nilfs_bmap_mark() 440 int nilfs_bmap_test_and_clear_dirty(struct nilfs_bmap *bmap) nilfs_bmap_test_and_clear_dirty() 455 __u64 nilfs_bmap_data_get_key(const struct nilfs_bmap *bmap, nilfs_bmap_data_get_key() 469 __u64 nilfs_bmap_find_target_seq(const struct nilfs_bmap *bmap, __u64 key) nilfs_bmap_find_target_seq() 483 __u64 nilfs_bmap_find_target_in_group(const struct nilfs_bmap *bmap) nilfs_bmap_find_target_in_group() 509 int nilfs_bmap_read(struct nilfs_bmap *bmap, struct nilfs_inode *raw_inode) nilfs_bmap_read() 554 void nilfs_bmap_write(struct nilfs_bmap *bmap, struct nilfs_inode *raw_inode) nilfs_bmap_write() 565 void nilfs_bmap_init_gc(struct nilfs_bmap *bmap) nilfs_bmap_init_gc() 577 void nilfs_bmap_save(const struct nilfs_bmap *bmap, nilfs_bmap_save() 586 void nilfs_bmap_restore(struct nilfs_bmap *bmap, nilfs_bmap_restore()
|
H A D | btree.h | 49 void (*bp_op)(struct nilfs_bmap *, struct nilfs_btree_path *, 70 int nilfs_btree_init(struct nilfs_bmap *); 71 int nilfs_btree_convert_and_insert(struct nilfs_bmap *, __u64, __u64, 73 void nilfs_btree_init_gc(struct nilfs_bmap *);
|
H A D | btree.c | 34 static void __nilfs_btree_init(struct nilfs_bmap *bmap); 71 static int nilfs_btree_get_new_block(const struct nilfs_bmap *btree, nilfs_btree_get_new_block() 124 static int nilfs_btree_node_size(const struct nilfs_bmap *btree) nilfs_btree_node_size() 129 static int nilfs_btree_nchildren_per_block(const struct nilfs_bmap *btree) nilfs_btree_nchildren_per_block() 416 nilfs_btree_get_root(const struct nilfs_bmap *btree) nilfs_btree_get_root() 433 static int nilfs_btree_height(const struct nilfs_bmap *btree) nilfs_btree_height() 439 nilfs_btree_get_node(const struct nilfs_bmap *btree, nilfs_btree_get_node() 474 static int __nilfs_btree_get_block(const struct nilfs_bmap *btree, __u64 ptr, __nilfs_btree_get_block() 529 static int nilfs_btree_get_block(const struct nilfs_bmap *btree, __u64 ptr, nilfs_btree_get_block() 535 static int nilfs_btree_do_lookup(const struct nilfs_bmap *btree, nilfs_btree_do_lookup() 597 static int nilfs_btree_do_lookup_last(const struct nilfs_bmap *btree, nilfs_btree_do_lookup_last() 646 static int nilfs_btree_get_next_key(const struct nilfs_bmap *btree, nilfs_btree_get_next_key() 674 static int nilfs_btree_lookup(const struct nilfs_bmap *btree, nilfs_btree_lookup() 691 static int nilfs_btree_lookup_contig(const struct nilfs_bmap *btree, nilfs_btree_lookup_contig() 775 static void nilfs_btree_promote_key(struct nilfs_bmap *btree, nilfs_btree_promote_key() 797 static void nilfs_btree_do_insert(struct nilfs_bmap *btree, nilfs_btree_do_insert() 824 static void nilfs_btree_carry_left(struct nilfs_bmap *btree, nilfs_btree_carry_left() 870 static void nilfs_btree_carry_right(struct nilfs_bmap *btree, nilfs_btree_carry_right() 917 static void nilfs_btree_split(struct nilfs_bmap *btree, nilfs_btree_split() 972 static void nilfs_btree_grow(struct nilfs_bmap *btree, nilfs_btree_grow() 1001 static __u64 nilfs_btree_find_near(const struct nilfs_bmap *btree, nilfs_btree_find_near() 1030 static __u64 nilfs_btree_find_target_v(const struct nilfs_bmap *btree, nilfs_btree_find_target_v() 1050 static int nilfs_btree_prepare_insert(struct nilfs_bmap *btree, nilfs_btree_prepare_insert() 1199 static void nilfs_btree_commit_insert(struct nilfs_bmap *btree, nilfs_btree_commit_insert() 1223 static int nilfs_btree_insert(struct nilfs_bmap *btree, __u64 key, __u64 ptr) nilfs_btree_insert() 1252 static void nilfs_btree_do_delete(struct nilfs_bmap *btree, nilfs_btree_do_delete() 1277 static void nilfs_btree_borrow_left(struct nilfs_bmap *btree, nilfs_btree_borrow_left() 1309 static void nilfs_btree_borrow_right(struct nilfs_bmap *btree, nilfs_btree_borrow_right() 1342 static void nilfs_btree_concat_left(struct nilfs_bmap *btree, nilfs_btree_concat_left() 1368 static void nilfs_btree_concat_right(struct nilfs_bmap *btree, nilfs_btree_concat_right() 1393 static void nilfs_btree_shrink(struct nilfs_bmap *btree, nilfs_btree_shrink() 1417 static void nilfs_btree_nop(struct nilfs_bmap *btree, nilfs_btree_nop() 1423 static int nilfs_btree_prepare_delete(struct nilfs_bmap *btree, nilfs_btree_prepare_delete() 1558 static void nilfs_btree_commit_delete(struct nilfs_bmap *btree, nilfs_btree_commit_delete() 1573 static int nilfs_btree_delete(struct nilfs_bmap *btree, __u64 key) nilfs_btree_delete() 1604 static int nilfs_btree_seek_key(const struct nilfs_bmap *btree, __u64 start, nilfs_btree_seek_key() 1625 static int nilfs_btree_last_key(const struct nilfs_bmap *btree, __u64 *keyp) nilfs_btree_last_key() 1641 static int nilfs_btree_check_delete(struct nilfs_bmap *btree, __u64 key) nilfs_btree_check_delete() 1680 static int nilfs_btree_gather_data(struct nilfs_bmap *btree, nilfs_btree_gather_data() 1730 nilfs_btree_prepare_convert_and_insert(struct nilfs_bmap *btree, __u64 key, nilfs_btree_prepare_convert_and_insert() 1783 nilfs_btree_commit_convert_and_insert(struct nilfs_bmap *btree, nilfs_btree_commit_convert_and_insert() 1855 int nilfs_btree_convert_and_insert(struct nilfs_bmap *btree, nilfs_btree_convert_and_insert() 1887 static int nilfs_btree_propagate_p(struct nilfs_bmap *btree, nilfs_btree_propagate_p() 1899 static int nilfs_btree_prepare_update_v(struct nilfs_bmap *btree, nilfs_btree_prepare_update_v() 1934 static void nilfs_btree_commit_update_v(struct nilfs_bmap *btree, nilfs_btree_commit_update_v() 1958 static void nilfs_btree_abort_update_v(struct nilfs_bmap *btree, nilfs_btree_abort_update_v() 1970 static int nilfs_btree_prepare_propagate_v(struct nilfs_bmap *btree, nilfs_btree_prepare_propagate_v() 2005 static void nilfs_btree_commit_propagate_v(struct nilfs_bmap *btree, nilfs_btree_commit_propagate_v() 2020 static int nilfs_btree_propagate_v(struct nilfs_bmap *btree, nilfs_btree_propagate_v() 2055 static int nilfs_btree_propagate(struct nilfs_bmap *btree, nilfs_btree_propagate() 2096 static int nilfs_btree_propagate_gc(struct nilfs_bmap *btree, nilfs_btree_propagate_gc() 2102 static void nilfs_btree_add_dirty_buffer(struct nilfs_bmap *btree, nilfs_btree_add_dirty_buffer() 2138 static void nilfs_btree_lookup_dirty_buffers(struct nilfs_bmap *btree, nilfs_btree_lookup_dirty_buffers() 2175 static int nilfs_btree_assign_p(struct nilfs_bmap *btree, nilfs_btree_assign_p() 2216 static int nilfs_btree_assign_v(struct nilfs_bmap *btree, nilfs_btree_assign_v() 2247 static int nilfs_btree_assign(struct nilfs_bmap *btree, nilfs_btree_assign() 2286 static int nilfs_btree_assign_gc(struct nilfs_bmap *btree, nilfs_btree_assign_gc() 2313 static int nilfs_btree_mark(struct nilfs_bmap *btree, __u64 key, int level) nilfs_btree_mark() 2390 static void __nilfs_btree_init(struct nilfs_bmap *bmap) __nilfs_btree_init() 2397 int nilfs_btree_init(struct nilfs_bmap *bmap) nilfs_btree_init() 2409 void nilfs_btree_init_gc(struct nilfs_bmap *bmap) nilfs_btree_init_gc()
|
H A D | direct.h | 46 int nilfs_direct_init(struct nilfs_bmap *); 47 int nilfs_direct_delete_and_convert(struct nilfs_bmap *, __u64, __u64 *,
|
H A D | nilfs.h | 54 struct nilfs_bmap *i_bmap; 55 struct nilfs_bmap i_bmap_data; 84 NILFS_BMAP_I(const struct nilfs_bmap *bmap) NILFS_BMAP_I()
|
H A D | ioctl.c | 486 struct nilfs_bmap *bmap = NILFS_I(nilfs->ns_dat)->i_bmap; nilfs_ioctl_do_get_bdescs() 784 struct nilfs_bmap *bmap = NILFS_I(nilfs->ns_dat)->i_bmap; nilfs_ioctl_mark_blocks_dirty()
|