/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/fs/hfsplus_journal/ |
H A D | dir.c | 33 hfsplus_handle_t hfsplus_handle; local 39 if (hfsplus_journal_start(__FUNCTION__, dir->i_sb, &hfsplus_handle)) 46 err = hfs_brec_read(&hfsplus_handle, &fd, &entry, sizeof(entry)); 49 hfs_find_exit(&hfsplus_handle, &fd); 100 hfs_find_exit(&hfsplus_handle, &fd); 108 hfsplus_journal_stop(&hfsplus_handle); 111 hfs_find_exit(&hfsplus_handle, &fd); 112 hfsplus_journal_stop(&hfsplus_handle); 125 hfsplus_handle_t hfsplus_handle; local 131 if ((err = hfsplus_journal_start(__FUNCTION__, sb, &hfsplus_handle))) 250 hfsplus_handle_t hfsplus_handle; local 281 hfsplus_handle_t hfsplus_handle; local 347 hfsplus_handle_t hfsplus_handle; local 395 hfsplus_handle_t hfsplus_handle; local 424 hfsplus_handle_t hfsplus_handle; local 452 hfsplus_handle_t hfsplus_handle; local 493 hfsplus_handle_t hfsplus_handle; local 526 hfsplus_handle_t hfsplus_handle; local [all...] |
H A D | brec.c | 14 static struct hfs_bnode *hfs_bnode_split(hfsplus_handle_t *hfsplus_handle, struct hfs_find_data *fd); 15 static int hfs_brec_update_parent(hfsplus_handle_t *hfsplus_handle, struct hfs_find_data *fd); 16 static int hfs_btree_inc_height(hfsplus_handle_t *hfsplus_handle, struct hfs_btree *); 53 int hfs_brec_insert(hfsplus_handle_t *hfsplus_handle, struct hfs_find_data *fd, void *entry, int entry_len) argument 65 hfs_btree_inc_height(hfsplus_handle, tree); 66 fd->bnode = hfs_bnode_find(hfsplus_handle, tree, tree->leaf_head); 88 new_node = hfs_bnode_split(hfsplus_handle, fd); 95 if (hfsplus_journalled_mark_inode_dirty(__FUNCTION__, hfsplus_handle, tree->inode)) 100 hfs_bnode_write_u16(hfsplus_handle, node, offsetof(struct hfs_bnode_desc, num_recs), node->num_recs); 101 hfs_bnode_write_u16(hfsplus_handle, nod 164 hfs_brec_remove(hfsplus_handle_t *hfsplus_handle, struct hfs_find_data *fd) argument 218 hfs_bnode_split(hfsplus_handle_t *hfsplus_handle, struct hfs_find_data *fd) argument 328 hfs_brec_update_parent(hfsplus_handle_t *hfsplus_handle, struct hfs_find_data *fd) argument 424 hfs_btree_inc_height(hfsplus_handle_t *hfsplus_handle, struct hfs_btree *tree) argument [all...] |
H A D | extents.c | 86 static void __hfsplus_ext_write_extent(hfsplus_handle_t *hfsplus_handle, struct inode *inode, struct hfs_find_data *fd) argument 92 res = hfs_brec_find(hfsplus_handle, fd); 96 hfs_brec_insert(hfsplus_handle, fd, HFSPLUS_I(inode).cached_extents, sizeof(hfsplus_extent_rec)); 101 hfs_bnode_write(hfsplus_handle, fd->bnode, HFSPLUS_I(inode).cached_extents, fd->entryoffset, fd->entrylength); 106 void hfsplus_ext_write_extent(hfsplus_handle_t *hfsplus_handle, struct inode *inode) argument 112 __hfsplus_ext_write_extent(hfsplus_handle, inode, &fd); 113 hfs_find_exit(hfsplus_handle, &fd); 117 static inline int __hfsplus_ext_read_extent(hfsplus_handle_t *hfsplus_handle, struct hfs_find_data *fd, argument 125 res = hfs_brec_find(hfsplus_handle, fd); 137 static inline int __hfsplus_ext_cache_extent(hfsplus_handle_t *hfsplus_handle, struc argument 156 hfsplus_ext_read_extent(hfsplus_handle_t *hfsplus_handle, struct inode *inode, u32 block) argument 179 hfsplus_handle_t *hfsplus_handle, tmp_hfsplus_handle; local 295 hfsplus_free_extents(hfsplus_handle_t *hfsplus_handle, struct super_block *sb, struct hfsplus_extent *extent, u32 offset, u32 block_nr) argument 336 hfsplus_free_fork(hfsplus_handle_t *hfsplus_handle, struct super_block *sb, u32 cnid, struct hfsplus_fork_raw *fork, int type) argument 375 hfsplus_file_extend(hfsplus_handle_t *hfsplus_handle, struct inode *inode) argument 470 hfsplus_handle_t hfsplus_handle; local [all...] |
H A D | btree.c | 123 void hfs_btree_write(hfsplus_handle_t *hfsplus_handle, struct hfs_btree *tree) argument 129 node = hfs_bnode_find(hfsplus_handle, tree, 0); 147 hfsplus_journalled_set_page_dirty(hfsplus_handle, page); 148 hfs_bnode_put(hfsplus_handle, node); 151 static struct hfs_bnode *hfs_bmap_new_bmap(hfsplus_handle_t *hfsplus_handle, struct hfs_bnode *prev, u32 idx) argument 158 node = hfs_bnode_create(hfsplus_handle, tree, idx); 165 hfs_bnode_write(hfsplus_handle, prev, &cnid, offsetof(struct hfs_bnode_desc, next), 4); 169 hfs_bnode_clear(hfsplus_handle, node, 0, tree->node_size); 176 hfs_bnode_write(hfsplus_handle, node, &desc, 0, sizeof(desc)); 177 hfs_bnode_write_u16(hfsplus_handle, nod 184 hfs_bmap_alloc(hfsplus_handle_t *hfsplus_handle, struct hfs_btree *tree) argument 276 hfs_bmap_free(hfsplus_handle_t *hfsplus_handle, struct hfs_bnode *node) argument [all...] |
H A D | bfind.c | 30 void hfs_find_exit(hfsplus_handle_t *hfsplus_handle, struct hfs_find_data *fd) argument 32 hfs_bnode_put(hfsplus_handle, fd->bnode); 54 void hfsplus_journalled_find_exit(hfsplus_handle_t *hfsplus_handle, struct hfs_find_data *fd) argument 56 hfs_bnode_put(hfsplus_handle, fd->bnode); 106 int hfs_brec_find(hfsplus_handle_t *hfsplus_handle, struct hfs_find_data *fd) argument 116 hfs_bnode_put(hfsplus_handle, fd->bnode); 125 bnode = hfs_bnode_find(hfsplus_handle, tree, nidx); 146 hfs_bnode_put(hfsplus_handle, bnode); 156 hfs_bnode_put(hfsplus_handle, bnode); 160 int hfs_brec_read(hfsplus_handle_t *hfsplus_handle, struc argument 173 hfs_brec_goto(hfsplus_handle_t *hfsplus_handle, struct hfs_find_data *fd, int cnt) argument [all...] |
H A D | ioctl.c | 26 hfsplus_handle_t hfsplus_handle; local 79 if ((ret = hfsplus_journal_start(__FUNCTION__, inode->i_sb, &hfsplus_handle))) 82 ret = hfsplus_journalled_mark_inode_dirty(__FUNCTION__, &hfsplus_handle, inode); 83 hfsplus_journal_stop(&hfsplus_handle); 98 hfsplus_handle_t hfsplus_handle; local 108 if ((res = hfsplus_journal_start(__FUNCTION__, inode->i_sb, &hfsplus_handle))) 111 res = hfsplus_find_cat(&hfsplus_handle, inode->i_sb, inode->i_ino, &fd); 131 hfs_bnode_write(&hfsplus_handle, fd.bnode, &entry, fd.entryoffset, 134 hfs_find_exit(&hfsplus_handle, &fd); 135 hfsplus_journal_stop(&hfsplus_handle); 146 hfsplus_handle_t hfsplus_handle; local [all...] |
H A D | catalog.c | 153 int hfsplus_find_cat(hfsplus_handle_t *hfsplus_handle, struct super_block *sb, u32 cnid, argument 161 err = hfs_brec_read(hfsplus_handle, fd, &tmp, sizeof(hfsplus_cat_entry)); 173 return hfs_brec_find(hfsplus_handle, fd); 176 int hfsplus_create_cat(hfsplus_handle_t *hfsplus_handle, u32 cnid, struct inode *dir, struct qstr *str, struct inode *inode) argument 192 err = hfs_brec_find(hfsplus_handle, &fd); 198 err = hfs_brec_insert(hfsplus_handle, &fd, &entry, entry_size); 204 err = hfs_brec_find(hfsplus_handle, &fd); 211 err = hfs_brec_insert(hfsplus_handle, &fd, &entry, entry_size); 217 if (hfsplus_journalled_mark_inode_dirty(__FUNCTION__, hfsplus_handle, dir)) { 221 hfs_find_exit(hfsplus_handle, 233 hfsplus_delete_cat(hfsplus_handle_t *hfsplus_handle, u32 cnid, struct inode *dir, struct qstr *str) argument 305 hfsplus_rename_cat(hfsplus_handle_t *hfsplus_handle, u32 cnid, struct inode *src_dir, struct qstr *src_name, struct inode *dst_dir, struct qstr *dst_name) argument [all...] |
H A D | super.c | 27 hfsplus_handle_t hfsplus_handle; local 39 if (hfsplus_journal_start(__FUNCTION__, inode->i_sb, &hfsplus_handle)) 41 err = hfsplus_find_cat(&hfsplus_handle, inode->i_sb, inode->i_ino, &fd); 44 hfs_find_exit(&hfsplus_handle, &fd); 45 hfsplus_journal_stop(&hfsplus_handle); 98 hfsplus_handle_t hfsplus_handle; local 120 hfsplus_handle.journaled = !HFSPLUS_JOURNAL_PRESENT; 122 hfsplus_ext_write_extent(&hfsplus_handle, inode); 124 ret = hfsplus_cat_write_inode(&hfsplus_handle, inode); 130 ret = hfsplus_cat_write_inode(&hfsplus_handle, inod 186 hfsplus_handle_t hfsplus_handle; local 352 hfsplus_handle_t hfsplus_handle; local [all...] |
H A D | journal.c | 110 static void hfsplus_journal_abort_handle(const char *err_no, struct buffer_head *bh, hfsplus_handle_t *hfsplus_handle) argument 112 if (hfsplus_jbd_is_handle_aborted(hfsplus_handle->handle)) 116 hfsplus_jbd_abort_handle(hfsplus_handle->handle); 119 int hfsplus_journal_get_write_access(const char *err_fn, hfsplus_handle_t *hfsplus_handle, struct buffer_head *bh) argument 123 if (hfsplus_handle->journaled != HFSPLUS_JOURNAL_PRESENT) 126 err = hfsplus_jbd_get_write_access(hfsplus_handle->handle, bh); 129 hfsplus_journal_abort_handle(err_fn, bh, hfsplus_handle); 135 int hfsplus_journal_dirty_metadata(const char *err_fn, struct buffer_head *bh, hfsplus_handle_t *hfsplus_handle) argument 139 if (hfsplus_handle->journaled != HFSPLUS_JOURNAL_PRESENT) 142 err = hfsplus_jbd_dirty_metadata(hfsplus_handle 177 hfsplus_journal_start(const char *err_fn, struct super_block *sb, hfsplus_handle_t *hfsplus_handle) argument 204 hfsplus_journal_stop(hfsplus_handle_t *hfsplus_handle) argument 312 hfsplus_journalled_write_full_page(hfsplus_handle_t *hfsplus_handle, struct page *page) argument 333 hfsplus_journalled_set_page_dirty(hfsplus_handle_t *hfsplus_handle, struct page *page) argument 374 hfsplus_journalled_mark_inode_dirty(const char *err_fn, hfsplus_handle_t *hfsplus_handle, struct inode *inode) argument [all...] |
H A D | inode.c | 97 int hfsplus_commit_write_fn(hfsplus_handle_t *hfsplus_handle, struct buffer_head *bh) argument 103 return hfsplus_journal_dirty_metadata(__FUNCTION__, bh, hfsplus_handle); 112 int hfsplus_walk_page_buffers(hfsplus_handle_t *hfsplus_handle, argument 117 int (*fn)(hfsplus_handle_t *hfsplus_handle, 137 err = (*fn)(hfsplus_handle, bh); 144 int hfsplus_do_journal_get_write_access(hfsplus_handle_t *hfsplus_handle, struct buffer_head *bh) argument 148 return hfsplus_journal_get_write_access(__FUNCTION__, hfsplus_handle, bh); 155 hfsplus_handle_t hfsplus_handle; local 173 if ((ret = hfsplus_journal_start(__FUNCTION__, sb, &hfsplus_handle))) 185 hfsplus_journal_stop(&hfsplus_handle); 221 hfsplus_handle_t hfsplus_handle; local 237 hfsplus_handle_t *hfsplus_handle; local 373 hfsplus_handle_t hfsplus_handle; local 496 hfsplus_handle_t hfsplus_handle; local 546 hfsplus_new_inode(hfsplus_handle_t *hfsplus_handle, struct super_block *sb, int mode) argument 604 hfsplus_delete_inode(hfsplus_handle_t *hfsplus_handle, struct inode *inode) argument 727 hfsplus_cat_write_inode(hfsplus_handle_t *hfsplus_handle, struct inode *inode) argument [all...] |
H A D | bnode.c | 73 void hfs_bnode_write(hfsplus_handle_t *hfsplus_handle, struct hfs_bnode *node, void *buf, int off, int len) argument 84 hfsplus_journalled_set_page_dirty(hfsplus_handle, *pagep); 91 hfsplus_journalled_set_page_dirty(hfsplus_handle, *pagep); 96 void hfs_bnode_write_u16(hfsplus_handle_t *hfsplus_handle, struct hfs_bnode *node, int off, u16 data) argument 100 hfs_bnode_write(hfsplus_handle, node, &v, off, 2); 103 void hfs_bnode_clear(hfsplus_handle_t *hfsplus_handle, struct hfs_bnode *node, int off, int len) argument 114 hfsplus_journalled_set_page_dirty(hfsplus_handle, *pagep); 120 hfsplus_journalled_set_page_dirty(hfsplus_handle, *pagep); 125 void hfs_bnode_copy(hfsplus_handle_t *hfsplus_handle, struct hfs_bnode *dst_node, int dst, argument 147 hfsplus_journalled_set_page_dirty(hfsplus_handle, *dst_pag 185 hfs_bnode_move(hfsplus_handle_t *hfsplus_handle, struct hfs_bnode *node, int dst, int src, int len) argument 330 hfs_bnode_unlink(hfsplus_handle_t *hfsplus_handle, struct hfs_bnode *node) argument 474 hfs_bnode_find(hfsplus_handle_t *hfsplus_handle, struct hfs_btree *tree, u32 num) argument 567 hfs_bnode_create(hfsplus_handle_t *hfsplus_handle, struct hfs_btree *tree, u32 num) argument 615 hfs_bnode_put(hfsplus_handle_t *hfsplus_handle, struct hfs_bnode *node) argument [all...] |
H A D | bitmap.c | 18 int hfsplus_block_allocate(hfsplus_handle_t *hfsplus_handle, struct super_block *sb, u32 size, u32 offset, u32 *max) argument 118 hfsplus_journalled_set_page_dirty(hfsplus_handle, page); 138 hfsplus_journalled_set_page_dirty(hfsplus_handle, page); 149 int hfsplus_block_free(hfsplus_handle_t *hfsplus_handle, struct super_block *sb, u32 offset, u32 count) argument 199 hfsplus_journalled_set_page_dirty(hfsplus_handle, page); 213 hfsplus_journalled_set_page_dirty(hfsplus_handle, page);
|
H A D | transaction.c | 261 hfsplus_jbd_handle_t *hfsplus_jbd_start(hfsplus_jbd_t *journal, int nblocks, hfsplus_handle_t *hfsplus_handle) argument 275 hfsplus_handle->handle = new_handle(nblocks); 276 if (!hfsplus_handle->handle) 279 current->journal_info = hfsplus_handle; 281 err = start_this_handle(journal, hfsplus_handle->handle); 283 hfsplus_jbd_free_handle(hfsplus_handle->handle); 285 hfsplus_handle->handle = ERR_PTR(err); 287 return hfsplus_handle->handle; 380 hfsplus_handle_t *hfsplus_handle; local 393 hfsplus_handle 1316 hfsplus_handle_t *hfsplus_handle; local 1409 hfsplus_handle_t hfsplus_handle; local [all...] |
H A D | hfsplus_jbd.h | 63 typedef struct hfsplus_handle hfsplus_handle_t; 387 struct hfsplus_handle { struct 879 extern hfsplus_jbd_handle_t *hfsplus_jbd_start(hfsplus_jbd_t *, int nblocks, hfsplus_handle_t *hfsplus_handle);
|
H A D | hfsplus_fs.h | 428 int hfsplus_journal_start(const char *, struct super_block *sb, hfsplus_handle_t *hfsplus_handle);
|