66
77#include <trace/events/ext4.h>
88
9- int __ext4_journal_get_undo_access (const char * where , handle_t * handle ,
10- struct buffer_head * bh )
9+ int __ext4_journal_get_undo_access (const char * where , unsigned int line ,
10+ handle_t * handle , struct buffer_head * bh )
1111{
1212 int err = 0 ;
1313
1414 if (ext4_handle_valid (handle )) {
1515 err = jbd2_journal_get_undo_access (handle , bh );
1616 if (err )
17- ext4_journal_abort_handle (where , __func__ , bh ,
17+ ext4_journal_abort_handle (where , line , __func__ , bh ,
1818 handle , err );
1919 }
2020 return err ;
2121}
2222
23- int __ext4_journal_get_write_access (const char * where , handle_t * handle ,
24- struct buffer_head * bh )
23+ int __ext4_journal_get_write_access (const char * where , unsigned int line ,
24+ handle_t * handle , struct buffer_head * bh )
2525{
2626 int err = 0 ;
2727
2828 if (ext4_handle_valid (handle )) {
2929 err = jbd2_journal_get_write_access (handle , bh );
3030 if (err )
31- ext4_journal_abort_handle (where , __func__ , bh ,
31+ ext4_journal_abort_handle (where , line , __func__ , bh ,
3232 handle , err );
3333 }
3434 return err ;
@@ -46,9 +46,9 @@ int __ext4_journal_get_write_access(const char *where, handle_t *handle,
4646 * If the handle isn't valid we're not journaling, but we still need to
4747 * call into ext4_journal_revoke() to put the buffer head.
4848 */
49- int __ext4_forget (const char * where , handle_t * handle , int is_metadata ,
50- struct inode * inode , struct buffer_head * bh ,
51- ext4_fsblk_t blocknr )
49+ int __ext4_forget (const char * where , unsigned int line , handle_t * handle ,
50+ int is_metadata , struct inode * inode ,
51+ struct buffer_head * bh , ext4_fsblk_t blocknr )
5252{
5353 int err ;
5454
@@ -79,8 +79,8 @@ int __ext4_forget(const char *where, handle_t *handle, int is_metadata,
7979 BUFFER_TRACE (bh , "call jbd2_journal_forget" );
8080 err = jbd2_journal_forget (handle , bh );
8181 if (err )
82- ext4_journal_abort_handle (where , __func__ , bh ,
83- handle , err );
82+ ext4_journal_abort_handle (where , line , __func__ ,
83+ bh , handle , err );
8484 return err ;
8585 }
8686 return 0 ;
@@ -92,38 +92,40 @@ int __ext4_forget(const char *where, handle_t *handle, int is_metadata,
9292 BUFFER_TRACE (bh , "call jbd2_journal_revoke" );
9393 err = jbd2_journal_revoke (handle , blocknr , bh );
9494 if (err ) {
95- ext4_journal_abort_handle (where , __func__ , bh , handle , err );
95+ ext4_journal_abort_handle (where , line , __func__ ,
96+ bh , handle , err );
9697 __ext4_abort (inode -> i_sb , where ,
9798 "error %d when attempting revoke" , err );
9899 }
99100 BUFFER_TRACE (bh , "exit" );
100101 return err ;
101102}
102103
103- int __ext4_journal_get_create_access (const char * where ,
104+ int __ext4_journal_get_create_access (const char * where , unsigned int line ,
104105 handle_t * handle , struct buffer_head * bh )
105106{
106107 int err = 0 ;
107108
108109 if (ext4_handle_valid (handle )) {
109110 err = jbd2_journal_get_create_access (handle , bh );
110111 if (err )
111- ext4_journal_abort_handle (where , __func__ , bh ,
112- handle , err );
112+ ext4_journal_abort_handle (where , line , __func__ ,
113+ bh , handle , err );
113114 }
114115 return err ;
115116}
116117
117- int __ext4_handle_dirty_metadata (const char * where , handle_t * handle ,
118- struct inode * inode , struct buffer_head * bh )
118+ int __ext4_handle_dirty_metadata (const char * where , unsigned int line ,
119+ handle_t * handle , struct inode * inode ,
120+ struct buffer_head * bh )
119121{
120122 int err = 0 ;
121123
122124 if (ext4_handle_valid (handle )) {
123125 err = jbd2_journal_dirty_metadata (handle , bh );
124126 if (err )
125- ext4_journal_abort_handle (where , __func__ , bh ,
126- handle , err );
127+ ext4_journal_abort_handle (where , line , __func__ ,
128+ bh , handle , err );
127129 } else {
128130 if (inode )
129131 mark_buffer_dirty_inode (bh , inode );
@@ -144,17 +146,17 @@ int __ext4_handle_dirty_metadata(const char *where, handle_t *handle,
144146 return err ;
145147}
146148
147- int __ext4_handle_dirty_super (const char * where , handle_t * handle ,
148- struct super_block * sb )
149+ int __ext4_handle_dirty_super (const char * where , unsigned int line ,
150+ handle_t * handle , struct super_block * sb )
149151{
150152 struct buffer_head * bh = EXT4_SB (sb )-> s_sbh ;
151153 int err = 0 ;
152154
153155 if (ext4_handle_valid (handle )) {
154156 err = jbd2_journal_dirty_metadata (handle , bh );
155157 if (err )
156- ext4_journal_abort_handle (where , __func__ , bh ,
157- handle , err );
158+ ext4_journal_abort_handle (where , line , __func__ ,
159+ bh , handle , err );
158160 } else
159161 sb -> s_dirt = 1 ;
160162 return err ;
0 commit comments