diff options
author | Jan Kara <jack@suse.cz> | 2020-11-27 12:33:57 +0100 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2020-12-17 19:30:55 +0100 |
commit | 014c9caa29d3a44e0de695c99ef18bec3e887d52 (patch) | |
tree | 82a8a59af0a8eb8f61d18fd52f7bac14c423a6c2 /fs/ext4/ext4_jbd2.c | |
parent | ext4: standardize error message in ext4_protect_reserved_inode() (diff) | |
download | linux-014c9caa29d3a44e0de695c99ef18bec3e887d52.tar.xz linux-014c9caa29d3a44e0de695c99ef18bec3e887d52.zip |
ext4: make ext4_abort() use __ext4_error()
The only difference between __ext4_abort() and __ext4_error() is that
the former one ignores errors=continue mount option. Unify the code to
reduce duplication.
Signed-off-by: Jan Kara <jack@suse.cz>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Link: https://lore.kernel.org/r/20201127113405.26867-5-jack@suse.cz
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 | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/ext4/ext4_jbd2.c b/fs/ext4/ext4_jbd2.c index 0fd0c42a4f7d..1a0a827a7f34 100644 --- a/fs/ext4/ext4_jbd2.c +++ b/fs/ext4/ext4_jbd2.c @@ -296,8 +296,8 @@ int __ext4_forget(const char *where, unsigned int line, handle_t *handle, if (err) { ext4_journal_abort_handle(where, line, __func__, bh, handle, err); - __ext4_abort(inode->i_sb, where, line, -err, - "error %d when attempting revoke", err); + __ext4_error(inode->i_sb, where, line, true, -err, 0, + "error %d when attempting revoke", err); } BUFFER_TRACE(bh, "exit"); return err; |