aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r--fs/ext4/super.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 422a4ce66778..11441e483b62 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -248,7 +248,7 @@ handle_t *ext4_journal_start_sb(struct super_block *sb, int nblocks)
248 journal = EXT4_SB(sb)->s_journal; 248 journal = EXT4_SB(sb)->s_journal;
249 if (journal) { 249 if (journal) {
250 if (is_journal_aborted(journal)) { 250 if (is_journal_aborted(journal)) {
251 ext4_abort(sb, __func__, "Detected aborted journal"); 251 ext4_abort(sb, "Detected aborted journal");
252 return ERR_PTR(-EROFS); 252 return ERR_PTR(-EROFS);
253 } 253 }
254 return jbd2_journal_start(journal, nblocks); 254 return jbd2_journal_start(journal, nblocks);
@@ -464,8 +464,8 @@ void __ext4_std_error(struct super_block *sb, const char *function, int errno)
464 * case we take the easy way out and panic immediately. 464 * case we take the easy way out and panic immediately.
465 */ 465 */
466 466
467void ext4_abort(struct super_block *sb, const char *function, 467void __ext4_abort(struct super_block *sb, const char *function,
468 const char *fmt, ...) 468 const char *fmt, ...)
469{ 469{
470 va_list args; 470 va_list args;
471 471
@@ -660,8 +660,7 @@ static void ext4_put_super(struct super_block *sb)
660 err = jbd2_journal_destroy(sbi->s_journal); 660 err = jbd2_journal_destroy(sbi->s_journal);
661 sbi->s_journal = NULL; 661 sbi->s_journal = NULL;
662 if (err < 0) 662 if (err < 0)
663 ext4_abort(sb, __func__, 663 ext4_abort(sb, "Couldn't clean up the journal");
664 "Couldn't clean up the journal");
665 } 664 }
666 665
667 ext4_release_system_zone(sb); 666 ext4_release_system_zone(sb);
@@ -3605,7 +3604,7 @@ static int ext4_remount(struct super_block *sb, int *flags, char *data)
3605 } 3604 }
3606 3605
3607 if (sbi->s_mount_flags & EXT4_MF_FS_ABORTED) 3606 if (sbi->s_mount_flags & EXT4_MF_FS_ABORTED)
3608 ext4_abort(sb, __func__, "Abort forced by user"); 3607 ext4_abort(sb, "Abort forced by user");
3609 3608
3610 sb->s_flags = (sb->s_flags & ~MS_POSIXACL) | 3609 sb->s_flags = (sb->s_flags & ~MS_POSIXACL) |
3611 (test_opt(sb, POSIX_ACL) ? MS_POSIXACL : 0); 3610 (test_opt(sb, POSIX_ACL) ? MS_POSIXACL : 0);