• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500-V1.0.1.40_1.0.68/src/linux/linux-2.6/fs/hfsplus_journal/

Lines Matching defs:hfsplus_handle

86 static void __hfsplus_ext_write_extent(hfsplus_handle_t *hfsplus_handle, struct inode *inode, struct hfs_find_data *fd)
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)
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,
125 res = hfs_brec_find(hfsplus_handle, fd);
137 static inline int __hfsplus_ext_cache_extent(hfsplus_handle_t *hfsplus_handle, struct hfs_find_data *fd, struct inode *inode, u32 block)
142 __hfsplus_ext_write_extent(hfsplus_handle, inode, fd);
144 res = __hfsplus_ext_read_extent(hfsplus_handle, fd, HFSPLUS_I(inode).cached_extents, inode->i_ino,
156 static int hfsplus_ext_read_extent(hfsplus_handle_t *hfsplus_handle, struct inode *inode, u32 block)
166 res = __hfsplus_ext_cache_extent(hfsplus_handle, &fd, inode, block);
167 hfs_find_exit(hfsplus_handle, &fd);
179 hfsplus_handle_t *hfsplus_handle, tmp_hfsplus_handle;
191 hfsplus_handle = hfsplus_jbd_current_handle();
192 if (hfsplus_handle == NULL) {
193 printk("hfsplus_handle is NULL\n");
194 hfsplus_handle = &tmp_hfsplus_handle;
198 hfsplus_handle = &tmp_hfsplus_handle;
203 hfsplus_handle = &tmp_hfsplus_handle;
215 res = hfsplus_file_extend(hfsplus_handle, inode);
229 res = hfsplus_ext_read_extent(hfsplus_handle, inode, ablock);
248 if (hfsplus_journalled_mark_inode_dirty(__FUNCTION__, hfsplus_handle, inode)) {
295 static int hfsplus_free_extents(hfsplus_handle_t *hfsplus_handle, struct super_block *sb,
318 hfsplus_block_free(hfsplus_handle, sb, start, count);
324 hfsplus_block_free(hfsplus_handle, sb, start + count, block_nr);
336 int hfsplus_free_fork(hfsplus_handle_t *hfsplus_handle, struct super_block *sb, u32 cnid, struct hfsplus_fork_raw *fork, int type)
351 res = hfsplus_free_extents(hfsplus_handle, sb, fork->extents, blocks, blocks);
359 res = __hfsplus_ext_read_extent(hfsplus_handle, &fd, ext_entry, cnid,
364 hfsplus_free_extents(hfsplus_handle, sb, ext_entry,
367 hfs_brec_remove(hfsplus_handle, &fd);
370 hfs_find_exit(hfsplus_handle, &fd);
375 int hfsplus_file_extend(hfsplus_handle_t *hfsplus_handle, struct inode *inode)
392 res = hfsplus_ext_read_extent(hfsplus_handle, inode, HFSPLUS_I(inode).alloc_blocks);
399 start = hfsplus_block_allocate(hfsplus_handle, sb, HFSPLUS_SB(sb).total_blocks, goal, &len);
401 start = hfsplus_block_allocate(hfsplus_handle, sb, goal, 0, &len);
444 res = hfsplus_journalled_mark_inode_dirty(__FUNCTION__, hfsplus_handle, inode);
450 hfsplus_ext_write_extent(hfsplus_handle, inode);
470 hfsplus_handle_t hfsplus_handle;
493 if (hfsplus_journal_start(__FUNCTION__, sb, &hfsplus_handle))
496 hfsplus_journalled_mark_inode_dirty(__FUNCTION__, &hfsplus_handle, inode);
497 hfsplus_journal_stop(&hfsplus_handle);
502 if (hfsplus_journal_start(__FUNCTION__, sb, &hfsplus_handle))
514 hfsplus_free_extents(&hfsplus_handle, sb, HFSPLUS_I(inode).first_extents,
520 res = __hfsplus_ext_cache_extent(&hfsplus_handle, &fd, inode, alloc_cnt);
524 hfsplus_free_extents(&hfsplus_handle, sb, HFSPLUS_I(inode).cached_extents,
534 hfs_brec_remove(&hfsplus_handle, &fd);
536 hfs_find_exit(&hfsplus_handle, &fd);
550 hfsplus_journalled_mark_inode_dirty(__FUNCTION__, &hfsplus_handle, inode);
551 hfsplus_journal_stop(&hfsplus_handle);