diff options
Diffstat (limited to 'include/linux/jbd2.h')
-rw-r--r-- | include/linux/jbd2.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/include/linux/jbd2.h b/include/linux/jbd2.h index 3dd209007098..c7d106ef22e2 100644 --- a/include/linux/jbd2.h +++ b/include/linux/jbd2.h | |||
@@ -61,7 +61,7 @@ extern u8 jbd2_journal_enable_debug; | |||
61 | do { \ | 61 | do { \ |
62 | if ((n) <= jbd2_journal_enable_debug) { \ | 62 | if ((n) <= jbd2_journal_enable_debug) { \ |
63 | printk (KERN_DEBUG "(%s, %d): %s: ", \ | 63 | printk (KERN_DEBUG "(%s, %d): %s: ", \ |
64 | __FILE__, __LINE__, __FUNCTION__); \ | 64 | __FILE__, __LINE__, __func__); \ |
65 | printk (f, ## a); \ | 65 | printk (f, ## a); \ |
66 | } \ | 66 | } \ |
67 | } while (0) | 67 | } while (0) |
@@ -641,6 +641,11 @@ struct transaction_s | |||
641 | */ | 641 | */ |
642 | int t_handle_count; | 642 | int t_handle_count; |
643 | 643 | ||
644 | /* | ||
645 | * For use by the filesystem to store fs-specific data | ||
646 | * structures associated with the transaction | ||
647 | */ | ||
648 | struct list_head t_private_list; | ||
644 | }; | 649 | }; |
645 | 650 | ||
646 | struct transaction_run_stats_s { | 651 | struct transaction_run_stats_s { |
@@ -850,7 +855,8 @@ struct journal_s | |||
850 | */ | 855 | */ |
851 | struct block_device *j_dev; | 856 | struct block_device *j_dev; |
852 | int j_blocksize; | 857 | int j_blocksize; |
853 | unsigned long long j_blk_offset; | 858 | unsigned long long j_blk_offset; |
859 | char j_devname[BDEVNAME_SIZE+24]; | ||
854 | 860 | ||
855 | /* | 861 | /* |
856 | * Device which holds the client fs. For internal journal this will be | 862 | * Device which holds the client fs. For internal journal this will be |
@@ -934,6 +940,10 @@ struct journal_s | |||
934 | 940 | ||
935 | pid_t j_last_sync_writer; | 941 | pid_t j_last_sync_writer; |
936 | 942 | ||
943 | /* This function is called when a transaction is closed */ | ||
944 | void (*j_commit_callback)(journal_t *, | ||
945 | transaction_t *); | ||
946 | |||
937 | /* | 947 | /* |
938 | * Journal statistics | 948 | * Journal statistics |
939 | */ | 949 | */ |
@@ -966,6 +976,9 @@ struct journal_s | |||
966 | #define JBD2_FLUSHED 0x008 /* The journal superblock has been flushed */ | 976 | #define JBD2_FLUSHED 0x008 /* The journal superblock has been flushed */ |
967 | #define JBD2_LOADED 0x010 /* The journal superblock has been loaded */ | 977 | #define JBD2_LOADED 0x010 /* The journal superblock has been loaded */ |
968 | #define JBD2_BARRIER 0x020 /* Use IDE barriers */ | 978 | #define JBD2_BARRIER 0x020 /* Use IDE barriers */ |
979 | #define JBD2_ABORT_ON_SYNCDATA_ERR 0x040 /* Abort the journal on file | ||
980 | * data write error in ordered | ||
981 | * mode */ | ||
969 | 982 | ||
970 | /* | 983 | /* |
971 | * Function declarations for the journaling transaction and buffer | 984 | * Function declarations for the journaling transaction and buffer |
@@ -1059,7 +1072,7 @@ extern void jbd2_journal_clear_features | |||
1059 | (journal_t *, unsigned long, unsigned long, unsigned long); | 1072 | (journal_t *, unsigned long, unsigned long, unsigned long); |
1060 | extern int jbd2_journal_create (journal_t *); | 1073 | extern int jbd2_journal_create (journal_t *); |
1061 | extern int jbd2_journal_load (journal_t *journal); | 1074 | extern int jbd2_journal_load (journal_t *journal); |
1062 | extern void jbd2_journal_destroy (journal_t *); | 1075 | extern int jbd2_journal_destroy (journal_t *); |
1063 | extern int jbd2_journal_recover (journal_t *journal); | 1076 | extern int jbd2_journal_recover (journal_t *journal); |
1064 | extern int jbd2_journal_wipe (journal_t *, int); | 1077 | extern int jbd2_journal_wipe (journal_t *, int); |
1065 | extern int jbd2_journal_skip_recovery (journal_t *); | 1078 | extern int jbd2_journal_skip_recovery (journal_t *); |
@@ -1139,7 +1152,7 @@ extern int jbd2_cleanup_journal_tail(journal_t *); | |||
1139 | 1152 | ||
1140 | #define jbd_ENOSYS() \ | 1153 | #define jbd_ENOSYS() \ |
1141 | do { \ | 1154 | do { \ |
1142 | printk (KERN_ERR "JBD unimplemented function %s\n", __FUNCTION__); \ | 1155 | printk (KERN_ERR "JBD unimplemented function %s\n", __func__); \ |
1143 | current->state = TASK_UNINTERRUPTIBLE; \ | 1156 | current->state = TASK_UNINTERRUPTIBLE; \ |
1144 | schedule(); \ | 1157 | schedule(); \ |
1145 | } while (1) | 1158 | } while (1) |