diff options
author | Theodore Ts'o <tytso@mit.edu> | 2010-07-27 11:56:40 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2010-07-27 11:56:40 -0400 |
commit | c398eda0e43a791be0fca6f197a1e2bbb9f16070 (patch) | |
tree | d7b2b95490f96a75e116a3aa13c17767aa630342 /fs/ext4/ext4_jbd2.c | |
parent | 60fd4da34d55a9cc0d857fc76dc12cf8cab4ed02 (diff) |
ext4: Pass line numbers to ext4_error() and friends
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/ext4_jbd2.c')
-rw-r--r-- | fs/ext4/ext4_jbd2.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/fs/ext4/ext4_jbd2.c b/fs/ext4/ext4_jbd2.c index 9de37b9e177a..23425cd68daa 100644 --- a/fs/ext4/ext4_jbd2.c +++ b/fs/ext4/ext4_jbd2.c | |||
@@ -94,8 +94,8 @@ int __ext4_forget(const char *where, unsigned int line, handle_t *handle, | |||
94 | if (err) { | 94 | if (err) { |
95 | ext4_journal_abort_handle(where, line, __func__, | 95 | ext4_journal_abort_handle(where, line, __func__, |
96 | bh, handle, err); | 96 | bh, handle, err); |
97 | __ext4_abort(inode->i_sb, where, | 97 | __ext4_abort(inode->i_sb, where, line, |
98 | "error %d when attempting revoke", err); | 98 | "error %d when attempting revoke", err); |
99 | } | 99 | } |
100 | BUFFER_TRACE(bh, "exit"); | 100 | BUFFER_TRACE(bh, "exit"); |
101 | return err; | 101 | return err; |
@@ -134,11 +134,9 @@ int __ext4_handle_dirty_metadata(const char *where, unsigned int line, | |||
134 | if (inode && inode_needs_sync(inode)) { | 134 | if (inode && inode_needs_sync(inode)) { |
135 | sync_dirty_buffer(bh); | 135 | sync_dirty_buffer(bh); |
136 | if (buffer_req(bh) && !buffer_uptodate(bh)) { | 136 | if (buffer_req(bh) && !buffer_uptodate(bh)) { |
137 | ext4_error(inode->i_sb, | 137 | ext4_error_inode(inode, where, line, |
138 | "IO error syncing inode, " | 138 | bh->b_blocknr, |
139 | "inode=%lu, block=%llu", | 139 | "IO error syncing itable block"); |
140 | inode->i_ino, | ||
141 | (unsigned long long) bh->b_blocknr); | ||
142 | err = -EIO; | 140 | err = -EIO; |
143 | } | 141 | } |
144 | } | 142 | } |