/fs/reiserfs/ |
D | inode.c | 32 struct reiserfs_transaction_handle th; in reiserfs_evict_inode() local 49 if (journal_begin(&th, inode->i_sb, jbegin_count)) in reiserfs_evict_inode() 53 reiserfs_discard_prealloc(&th, inode); in reiserfs_evict_inode() 55 err = reiserfs_delete_object(&th, inode); in reiserfs_evict_inode() 63 if (journal_end(&th, inode->i_sb, jbegin_count)) in reiserfs_evict_inode() 224 static int restart_transaction(struct reiserfs_transaction_handle *th, in restart_transaction() argument 227 struct super_block *s = th->t_super; in restart_transaction() 228 int len = th->t_blocks_allocated; in restart_transaction() 231 BUG_ON(!th->t_trans_id); in restart_transaction() 232 BUG_ON(!th->t_refcount); in restart_transaction() [all …]
|
D | namei.c | 405 static int reiserfs_add_entry(struct reiserfs_transaction_handle *th, in reiserfs_add_entry() argument 421 BUG_ON(!th->t_trans_id); in reiserfs_add_entry() 506 PROC_INFO_MAX(th->t_super, max_hash_collisions, gen_number); in reiserfs_add_entry() 524 reiserfs_paste_into_item(th, &path, &entry_key, dir, buffer, in reiserfs_add_entry() 537 reiserfs_update_sd(th, dir); in reiserfs_add_entry() 585 struct reiserfs_transaction_handle th; in reiserfs_create() local 604 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_create() 611 reiserfs_new_inode(&th, dir, mode, NULL, 0 /*i_size */ , dentry, in reiserfs_create() 621 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_create() 626 reiserfs_update_sd(&th, inode); in reiserfs_create() [all …]
|
D | stree.c | 986 static char prepare_for_delete_or_cut(struct reiserfs_transaction_handle *th, struct inode *inode, … in prepare_for_delete_or_cut() argument 995 BUG_ON(!th->t_trans_id); in prepare_for_delete_or_cut() 1049 reiserfs_transaction_free_space(th) < JOURNAL_FOR_FREE_BLOCK_AND_UPDATE_SD) in prepare_for_delete_or_cut() 1058 journal_mark_dirty(th, sb, bh); in prepare_for_delete_or_cut() 1059 reiserfs_free_block(th, inode, block, 1); in prepare_for_delete_or_cut() 1123 static void init_tb_struct(struct reiserfs_transaction_handle *th, in init_tb_struct() argument 1129 BUG_ON(!th->t_trans_id); in init_tb_struct() 1132 tb->transaction_handle = th; in init_tb_struct() 1183 int reiserfs_delete_item(struct reiserfs_transaction_handle *th, in reiserfs_delete_item() argument 1199 BUG_ON(!th->t_trans_id); in reiserfs_delete_item() [all …]
|
D | bitmap.c | 134 static int scan_bitmap_block(struct reiserfs_transaction_handle *th, in scan_bitmap_block() argument 138 struct super_block *s = th->t_super; in scan_bitmap_block() 144 BUG_ON(!th->t_trans_id); in scan_bitmap_block() 225 journal_mark_dirty(th, s, bh); in scan_bitmap_block() 232 journal_mark_dirty(th, s, SB_BUFFER_WITH_SB(s)); in scan_bitmap_block() 310 static int scan_bitmap(struct reiserfs_transaction_handle *th, in scan_bitmap() argument 315 struct super_block *s = th->t_super; in scan_bitmap() 323 BUG_ON(!th->t_trans_id); in scan_bitmap() 355 scan_bitmap_block(th, bm, &off, off_max, in scan_bitmap() 366 scan_bitmap_block(th, bm, &off, off_max, min, max, unfm); in scan_bitmap() [all …]
|
D | journal.c | 98 static int journal_join(struct reiserfs_transaction_handle *th, 114 static int do_journal_begin_r(struct reiserfs_transaction_handle *th, 1878 static int do_journal_release(struct reiserfs_transaction_handle *th, in do_journal_release() argument 1889 BUG_ON(!th->t_trans_id); in do_journal_release() 1890 do_journal_end(th, sb, 10, FLUSH_ALL); in do_journal_release() 1945 int journal_release(struct reiserfs_transaction_handle *th, in journal_release() argument 1948 return do_journal_release(th, sb, 0); in journal_release() 1954 int journal_release_error(struct reiserfs_transaction_handle *th, in journal_release_error() argument 1957 return do_journal_release(th, sb, 1); in journal_release_error() 2861 int journal_transaction_should_end(struct reiserfs_transaction_handle *th, in journal_transaction_should_end() argument [all …]
|
D | file.c | 35 struct reiserfs_transaction_handle th; in reiserfs_file_release() local 65 err = journal_begin(&th, inode->i_sb, 1); in reiserfs_file_release() 72 err = journal_join_abort(&th, inode->i_sb, 1); in reiserfs_file_release() 93 reiserfs_discard_prealloc(&th, inode); in reiserfs_file_release() 95 err = journal_end(&th, inode->i_sb, 1); in reiserfs_file_release() 181 struct reiserfs_transaction_handle th; in reiserfs_commit_page() local 184 th.t_trans_id = 0; in reiserfs_commit_page() 189 ret = journal_begin(&th, s, bh_per_page + 1); in reiserfs_commit_page() 208 journal_mark_dirty(&th, s, bh); in reiserfs_commit_page() 222 ret = journal_end(&th, s, bh_per_page + 1); in reiserfs_commit_page()
|
D | super.c | 69 struct reiserfs_transaction_handle th; in reiserfs_sync_fs() local 77 if (!journal_begin(&th, s, 1)) in reiserfs_sync_fs() 78 if (!journal_end_sync(&th, s, 1)) in reiserfs_sync_fs() 128 struct reiserfs_transaction_handle th; in reiserfs_freeze() local 134 int err = journal_begin(&th, s, 1); in reiserfs_freeze() 136 reiserfs_block_writes(&th); in reiserfs_freeze() 140 journal_mark_dirty(&th, s, SB_BUFFER_WITH_SB(s)); in reiserfs_freeze() 141 reiserfs_block_writes(&th); in reiserfs_freeze() 142 journal_end_sync(&th, s, 1); in reiserfs_freeze() 167 struct reiserfs_transaction_handle th; in remove_save_link_only() local [all …]
|
D | objectid.c | 47 __u32 reiserfs_get_unused_objectid(struct reiserfs_transaction_handle *th) in reiserfs_get_unused_objectid() argument 49 struct super_block *s = th->t_super; in reiserfs_get_unused_objectid() 54 BUG_ON(!th->t_trans_id); in reiserfs_get_unused_objectid() 86 journal_mark_dirty(th, s, SB_BUFFER_WITH_SB(s)); in reiserfs_get_unused_objectid() 91 void reiserfs_release_objectid(struct reiserfs_transaction_handle *th, in reiserfs_release_objectid() argument 94 struct super_block *s = th->t_super; in reiserfs_release_objectid() 99 BUG_ON(!th->t_trans_id); in reiserfs_release_objectid() 104 journal_mark_dirty(th, s, SB_BUFFER_WITH_SB(s)); in reiserfs_release_objectid()
|
D | tail_conversion.c | 17 int direct2indirect(struct reiserfs_transaction_handle *th, struct inode *inode, in direct2indirect() argument 34 BUG_ON(!th->t_trans_id); in direct2indirect() 68 reiserfs_insert_item(th, path, &end_key, &ind_ih, inode, in direct2indirect() 72 retval = reiserfs_paste_into_item(th, path, &end_key, inode, in direct2indirect() 116 retval = reiserfs_delete_item(th, path, &end_key, inode, in direct2indirect() 173 int indirect2direct(struct reiserfs_transaction_handle *th, in indirect2direct() argument 190 BUG_ON(!th->t_trans_id); in indirect2direct() 251 if (reiserfs_insert_item(th, path, &key, &s_ih, inode, in indirect2direct() 265 reiserfs_update_sd(th, inode); in indirect2direct()
|
D | xattr_acl.c | 14 static int reiserfs_set_acl(struct reiserfs_transaction_handle *th, 25 struct reiserfs_transaction_handle th; in posix_acl_set() local 51 error = journal_begin(&th, inode->i_sb, jcreate_blocks); in posix_acl_set() 53 error = reiserfs_set_acl(&th, inode, type, acl); in posix_acl_set() 54 error2 = journal_end(&th, inode->i_sb, jcreate_blocks); in posix_acl_set() 274 reiserfs_set_acl(struct reiserfs_transaction_handle *th, struct inode *inode, in reiserfs_set_acl() argument 309 error = reiserfs_xattr_set_handle(th, inode, name, value, size, 0); in reiserfs_set_acl() 336 reiserfs_inherit_default_acl(struct reiserfs_transaction_handle *th, in reiserfs_inherit_default_acl() argument 367 err = reiserfs_set_acl(th, inode, ACL_TYPE_DEFAULT, in reiserfs_inherit_default_acl() 381 err = reiserfs_set_acl(th, inode, ACL_TYPE_ACCESS, acl); in reiserfs_inherit_default_acl() [all …]
|
D | resize.c | 27 struct reiserfs_transaction_handle th; in reiserfs_resize() local 156 err = journal_begin(&th, s, 10); in reiserfs_resize() 164 int jerr = journal_end(&th, s, 10); in reiserfs_resize() 175 journal_mark_dirty(&th, s, bh); in reiserfs_resize() 182 int jerr = journal_end(&th, s, 10); in reiserfs_resize() 191 journal_mark_dirty(&th, s, bh); in reiserfs_resize() 204 journal_mark_dirty(&th, s, SB_BUFFER_WITH_SB(s)); in reiserfs_resize() 207 return journal_end(&th, s, 10); in reiserfs_resize()
|
D | reiserfs.h | 2440 struct reiserfs_transaction_handle *th = current->journal_info; in reiserfs_transaction_running() local 2441 if (th && th->t_super == s) in reiserfs_transaction_running() 2443 if (th && th->t_super == NULL) in reiserfs_transaction_running() 2448 static inline int reiserfs_transaction_free_space(struct reiserfs_transaction_handle *th) in reiserfs_transaction_free_space() argument 2450 return th->t_blocks_allocated - th->t_blocks_logged; in reiserfs_transaction_free_space() 2466 void reiserfs_block_writes(struct reiserfs_transaction_handle *th); 2497 void add_save_link(struct reiserfs_transaction_handle *th, 2502 __u32 reiserfs_get_unused_objectid(struct reiserfs_transaction_handle *th); 2503 void reiserfs_release_objectid(struct reiserfs_transaction_handle *th, 2560 int reiserfs_insert_item(struct reiserfs_transaction_handle *th, [all …]
|
D | acl.h | 52 int reiserfs_inherit_default_acl(struct reiserfs_transaction_handle *th, 70 reiserfs_inherit_default_acl(struct reiserfs_transaction_handle *th, in reiserfs_inherit_default_acl() argument
|
D | xattr.c | 285 struct reiserfs_transaction_handle th; in reiserfs_for_each_xattr() local 286 err = journal_begin(&th, inode->i_sb, blocks); in reiserfs_for_each_xattr() 293 jerror = journal_end(&th, inode->i_sb, blocks); in reiserfs_for_each_xattr() 480 reiserfs_xattr_set_handle(struct reiserfs_transaction_handle *th, in reiserfs_xattr_set_handle() argument 588 struct reiserfs_transaction_handle th; in reiserfs_xattr_set() local 596 error = journal_begin(&th, inode->i_sb, jbegin_count); in reiserfs_xattr_set() 602 error = reiserfs_xattr_set_handle(&th, inode, name, in reiserfs_xattr_set() 605 error2 = journal_end(&th, inode->i_sb, jbegin_count); in reiserfs_xattr_set()
|
D | xattr.h | 42 int reiserfs_security_write(struct reiserfs_transaction_handle *th, 114 reiserfs_security_write(struct reiserfs_transaction_handle *th, in reiserfs_security_write() argument
|
D | xattr_security.c | 91 int reiserfs_security_write(struct reiserfs_transaction_handle *th, in reiserfs_security_write() argument 99 error = reiserfs_xattr_set_handle(th, inode, sec->name, sec->value, in reiserfs_security_write()
|
/fs/cramfs/ |
D | README | 46 The i'th <block_pointer> for a file stores the byte offset of the 47 *end* of the i'th <block> (i.e. one past the last byte, which is the 48 same as the start of the (i+1)'th <block> if there is one). The first 57 <block>: The i'th <block> is the output of zlib's compress function 58 applied to the i'th blksize-sized chunk of the input data.
|