Home
last modified time | relevance | path

Searched refs:th (Results 1 – 18 of 18) sorted by relevance

/fs/reiserfs/
Dinode.c36 struct reiserfs_transaction_handle th; in reiserfs_evict_inode() local
57 if (journal_begin(&th, inode->i_sb, jbegin_count)) in reiserfs_evict_inode()
61 reiserfs_discard_prealloc(&th, inode); in reiserfs_evict_inode()
63 err = reiserfs_delete_object(&th, inode); in reiserfs_evict_inode()
76 if (journal_end(&th)) in reiserfs_evict_inode()
252 static int restart_transaction(struct reiserfs_transaction_handle *th, in restart_transaction() argument
255 struct super_block *s = th->t_super; in restart_transaction()
258 BUG_ON(!th->t_trans_id); in restart_transaction()
259 BUG_ON(!th->t_refcount); in restart_transaction()
264 if (th->t_refcount > 1) { in restart_transaction()
[all …]
Dnamei.c432 static int reiserfs_add_entry(struct reiserfs_transaction_handle *th, in reiserfs_add_entry() argument
453 BUG_ON(!th->t_trans_id); in reiserfs_add_entry()
547 PROC_INFO_MAX(th->t_super, max_hash_collisions, gen_number); in reiserfs_add_entry()
566 reiserfs_paste_into_item(th, &path, &entry_key, dir, buffer, in reiserfs_add_entry()
579 reiserfs_update_sd(th, dir); in reiserfs_add_entry()
635 struct reiserfs_transaction_handle th; in reiserfs_create() local
660 retval = journal_begin(&th, dir->i_sb, jbegin_count); in reiserfs_create()
667 reiserfs_new_inode(&th, dir, mode, NULL, 0 /*i_size */ , dentry, in reiserfs_create()
677 reiserfs_add_entry(&th, dir, dentry->d_name.name, in reiserfs_create()
682 reiserfs_update_sd(&th, inode); in reiserfs_create()
[all …]
Dstree.c1034 static char prepare_for_delete_or_cut(struct reiserfs_transaction_handle *th, in prepare_for_delete_or_cut() argument
1053 BUG_ON(!th->t_trans_id); in prepare_for_delete_or_cut()
1112 reiserfs_transaction_free_space(th) < JOURNAL_FOR_FREE_BLOCK_AND_UPDATE_SD) in prepare_for_delete_or_cut()
1121 journal_mark_dirty(th, bh); in prepare_for_delete_or_cut()
1122 reiserfs_free_block(th, inode, block, 1); in prepare_for_delete_or_cut()
1190 static void init_tb_struct(struct reiserfs_transaction_handle *th, in init_tb_struct() argument
1196 BUG_ON(!th->t_trans_id); in init_tb_struct()
1199 tb->transaction_handle = th; in init_tb_struct()
1251 int reiserfs_delete_item(struct reiserfs_transaction_handle *th, in reiserfs_delete_item() argument
1268 BUG_ON(!th->t_trans_id); in reiserfs_delete_item()
[all …]
Dbitmap.c143 static int scan_bitmap_block(struct reiserfs_transaction_handle *th, in scan_bitmap_block() argument
147 struct super_block *s = th->t_super; in scan_bitmap_block()
153 BUG_ON(!th->t_trans_id); in scan_bitmap_block()
258 journal_mark_dirty(th, bh); in scan_bitmap_block()
265 journal_mark_dirty(th, SB_BUFFER_WITH_SB(s)); in scan_bitmap_block()
347 static int scan_bitmap(struct reiserfs_transaction_handle *th, in scan_bitmap() argument
352 struct super_block *s = th->t_super; in scan_bitmap()
357 BUG_ON(!th->t_trans_id); in scan_bitmap()
391 scan_bitmap_block(th, bm, &off, off_max, in scan_bitmap()
402 scan_bitmap_block(th, bm, &off, off_max, min, max, unfm); in scan_bitmap()
[all …]
Djournal.c91 static int journal_join(struct reiserfs_transaction_handle *th,
109 static int do_journal_begin_r(struct reiserfs_transaction_handle *th,
1903 static int do_journal_release(struct reiserfs_transaction_handle *th, in do_journal_release() argument
1915 BUG_ON(!th->t_trans_id); in do_journal_release()
1916 do_journal_end(th, FLUSH_ALL); in do_journal_release()
1967 int journal_release(struct reiserfs_transaction_handle *th, in journal_release() argument
1970 return do_journal_release(th, sb, 0); in journal_release()
1974 int journal_release_error(struct reiserfs_transaction_handle *th, in journal_release_error() argument
1977 return do_journal_release(th, sb, 1); in journal_release_error()
2917 int journal_transaction_should_end(struct reiserfs_transaction_handle *th, in journal_transaction_should_end() argument
[all …]
Dfile.c35 struct reiserfs_transaction_handle th; in reiserfs_file_release() local
60 err = journal_begin(&th, inode->i_sb, 1); in reiserfs_file_release()
68 err = journal_join_abort(&th, inode->i_sb); in reiserfs_file_release()
91 reiserfs_discard_prealloc(&th, inode); in reiserfs_file_release()
93 err = journal_end(&th); in reiserfs_file_release()
182 struct reiserfs_transaction_handle th; in reiserfs_commit_page() local
185 th.t_trans_id = 0; in reiserfs_commit_page()
190 ret = journal_begin(&th, s, bh_per_page + 1); in reiserfs_commit_page()
209 journal_mark_dirty(&th, bh); in reiserfs_commit_page()
224 ret = journal_end(&th); in reiserfs_commit_page()
Dsuper.c69 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)) in reiserfs_sync_fs()
149 struct reiserfs_transaction_handle th; in reiserfs_freeze() local
155 int err = journal_begin(&th, s, 1); in reiserfs_freeze()
157 reiserfs_block_writes(&th); in reiserfs_freeze()
161 journal_mark_dirty(&th, SB_BUFFER_WITH_SB(s)); in reiserfs_freeze()
162 reiserfs_block_writes(&th); in reiserfs_freeze()
163 journal_end_sync(&th); in reiserfs_freeze()
196 struct reiserfs_transaction_handle th; in remove_save_link_only() local
[all …]
Dobjectid.c49 __u32 reiserfs_get_unused_objectid(struct reiserfs_transaction_handle *th) in reiserfs_get_unused_objectid() argument
51 struct super_block *s = th->t_super; in reiserfs_get_unused_objectid()
56 BUG_ON(!th->t_trans_id); in reiserfs_get_unused_objectid()
92 journal_mark_dirty(th, SB_BUFFER_WITH_SB(s)); in reiserfs_get_unused_objectid()
97 void reiserfs_release_objectid(struct reiserfs_transaction_handle *th, in reiserfs_release_objectid() argument
100 struct super_block *s = th->t_super; in reiserfs_release_objectid()
105 BUG_ON(!th->t_trans_id); in reiserfs_release_objectid()
110 journal_mark_dirty(th, SB_BUFFER_WITH_SB(s)); in reiserfs_release_objectid()
Dtail_conversion.c25 int direct2indirect(struct reiserfs_transaction_handle *th, struct inode *inode, in direct2indirect() argument
48 BUG_ON(!th->t_trans_id); in direct2indirect()
84 reiserfs_insert_item(th, path, &end_key, &ind_ih, inode, in direct2indirect()
88 retval = reiserfs_paste_into_item(th, path, &end_key, inode, in direct2indirect()
139 retval = reiserfs_delete_item(th, path, &end_key, inode, in direct2indirect()
202 int indirect2direct(struct reiserfs_transaction_handle *th, in indirect2direct() argument
219 BUG_ON(!th->t_trans_id); in indirect2direct()
283 if (reiserfs_insert_item(th, path, &key, &s_ih, inode, in indirect2direct()
299 reiserfs_update_sd(th, inode); in indirect2direct()
Dresize.c27 struct reiserfs_transaction_handle th; in reiserfs_resize() local
178 err = journal_begin(&th, s, 10); in reiserfs_resize()
186 int jerr = journal_end(&th); in reiserfs_resize()
197 journal_mark_dirty(&th, bh); in reiserfs_resize()
204 int jerr = journal_end(&th); in reiserfs_resize()
213 journal_mark_dirty(&th, bh); in reiserfs_resize()
226 journal_mark_dirty(&th, SB_BUFFER_WITH_SB(s)); in reiserfs_resize()
229 return journal_end(&th); in reiserfs_resize()
Dxattr_acl.c15 static int __reiserfs_set_acl(struct reiserfs_transaction_handle *th,
24 struct reiserfs_transaction_handle th; in reiserfs_set_acl() local
39 error = journal_begin(&th, inode->i_sb, jcreate_blocks); in reiserfs_set_acl()
48 error = __reiserfs_set_acl(&th, inode, type, acl); in reiserfs_set_acl()
53 error2 = journal_end(&th); in reiserfs_set_acl()
244 __reiserfs_set_acl(struct reiserfs_transaction_handle *th, struct inode *inode, in __reiserfs_set_acl() argument
271 error = reiserfs_xattr_set_handle(th, inode, name, value, size, 0); in __reiserfs_set_acl()
300 reiserfs_inherit_default_acl(struct reiserfs_transaction_handle *th, in reiserfs_inherit_default_acl() argument
331 err = __reiserfs_set_acl(th, inode, ACL_TYPE_DEFAULT, in reiserfs_inherit_default_acl()
337 err = __reiserfs_set_acl(th, inode, ACL_TYPE_ACCESS, in reiserfs_inherit_default_acl()
Dreiserfs.h2899 struct reiserfs_transaction_handle *th = current->journal_info; in reiserfs_transaction_running() local
2900 if (th && th->t_super == s) in reiserfs_transaction_running()
2902 if (th && th->t_super == NULL) in reiserfs_transaction_running()
2907 static inline int reiserfs_transaction_free_space(struct reiserfs_transaction_handle *th) in reiserfs_transaction_free_space() argument
2909 return th->t_blocks_allocated - th->t_blocks_logged; in reiserfs_transaction_free_space()
2925 void reiserfs_block_writes(struct reiserfs_transaction_handle *th);
2955 void add_save_link(struct reiserfs_transaction_handle *th,
2960 __u32 reiserfs_get_unused_objectid(struct reiserfs_transaction_handle *th);
2961 void reiserfs_release_objectid(struct reiserfs_transaction_handle *th,
3016 int reiserfs_insert_item(struct reiserfs_transaction_handle *th,
[all …]
Dacl.h54 int reiserfs_inherit_default_acl(struct reiserfs_transaction_handle *th,
71 reiserfs_inherit_default_acl(struct reiserfs_transaction_handle *th, in reiserfs_inherit_default_acl() argument
Dxattr.c301 struct reiserfs_transaction_handle th; in reiserfs_for_each_xattr() local
304 err = journal_begin(&th, inode->i_sb, blocks); in reiserfs_for_each_xattr()
313 jerror = journal_end(&th); in reiserfs_for_each_xattr()
519 reiserfs_xattr_set_handle(struct reiserfs_transaction_handle *th, in reiserfs_xattr_set_handle() argument
622 struct reiserfs_transaction_handle th; in reiserfs_xattr_set() local
634 error = journal_begin(&th, inode->i_sb, jbegin_count); in reiserfs_xattr_set()
640 error = reiserfs_xattr_set_handle(&th, inode, name, in reiserfs_xattr_set()
644 error2 = journal_end(&th); in reiserfs_xattr_set()
Dxattr_security.c81 int reiserfs_security_write(struct reiserfs_transaction_handle *th, in reiserfs_security_write() argument
93 error = reiserfs_xattr_set_handle(th, inode, xattr_name, sec->value, in reiserfs_security_write()
Dxattr.h38 int reiserfs_security_write(struct reiserfs_transaction_handle *th,
108 reiserfs_security_write(struct reiserfs_transaction_handle *th, in reiserfs_security_write() argument
/fs/cramfs/
DREADME46 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
73 <block>: The i'th <block> is the output of zlib's compress function
74 applied to the i'th blksize-sized chunk of the input data if the
/fs/cifs/
Ddfs_cache.c635 char *s, *th = NULL; in __update_cache_entry() local
643 th = kstrndup(s, strlen(s), GFP_ATOMIC); in __update_cache_entry()
644 if (!th) in __update_cache_entry()
651 rc = copy_ref_data(refs, numrefs, ce, th); in __update_cache_entry()
653 kfree(th); in __update_cache_entry()