summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorAndrew Morton <akpm@osdl.org>2004-04-11 23:25:23 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-04-11 23:25:23 -0700
commit7a10b433f0911d25b4fd1d1b033cbd119be8fc5f (patch)
treeaa2e165997853cdd085a37c6767a9dc4a4597810 /include/linux
parent545b08408d306f156c24421b0f9575b5b84c7afe (diff)
[PATCH] reiserfs: support for nested transactions
From: Chris Mason <mason@suse.com> reiserfs support for nested transactions. This originally came from Peter Braam for 2.4.x and was ported forward by Jeff Mahoney.
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/reiserfs_fs_sb.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/linux/reiserfs_fs_sb.h b/include/linux/reiserfs_fs_sb.h
index 4c675f30a8ae..e6d9fefce42c 100644
--- a/include/linux/reiserfs_fs_sb.h
+++ b/include/linux/reiserfs_fs_sb.h
@@ -157,13 +157,17 @@ struct reiserfs_list_bitmap {
** transaction handle which is passed around for all journal calls
*/
struct reiserfs_transaction_handle {
- /* ifdef it. -Hans */
- char *t_caller ; /* debugging use */
+ struct super_block *t_super ; /* super for this FS when journal_begin was
+ called. saves calls to reiserfs_get_super
+ also used by nested transactions to make
+ sure they are nesting on the right FS
+ _must_ be first in the handle
+ */
+ int t_refcount;
int t_blocks_logged ; /* number of blocks this writer has logged */
int t_blocks_allocated ; /* number of blocks this writer allocated */
unsigned long t_trans_id ; /* sanity check, equals the current trans id */
- struct super_block *t_super ; /* super for this FS when journal_begin was
- called. saves calls to reiserfs_get_super */
+ void *t_handle_save ; /* save existing current->journal_info */
int displace_new_blocks:1; /* if new block allocation occurres, that block
should be displaced from others */