|
@@ -241,7 +241,7 @@ handle_t *ext4_journal_start_sb(struct super_block *sb, int nblocks)
|
|
if (sb->s_flags & MS_RDONLY)
|
|
if (sb->s_flags & MS_RDONLY)
|
|
return ERR_PTR(-EROFS);
|
|
return ERR_PTR(-EROFS);
|
|
|
|
|
|
- vfs_check_frozen(sb, SB_FREEZE_WRITE);
|
|
|
|
|
|
+ vfs_check_frozen(sb, SB_FREEZE_TRANS);
|
|
/* Special case here: if the journal has aborted behind our
|
|
/* Special case here: if the journal has aborted behind our
|
|
* backs (eg. EIO in the commit thread), then we still need to
|
|
* backs (eg. EIO in the commit thread), then we still need to
|
|
* take the FS itself readonly cleanly. */
|
|
* take the FS itself readonly cleanly. */
|
|
@@ -3608,7 +3608,7 @@ int ext4_force_commit(struct super_block *sb)
|
|
|
|
|
|
journal = EXT4_SB(sb)->s_journal;
|
|
journal = EXT4_SB(sb)->s_journal;
|
|
if (journal) {
|
|
if (journal) {
|
|
- vfs_check_frozen(sb, SB_FREEZE_WRITE);
|
|
|
|
|
|
+ vfs_check_frozen(sb, SB_FREEZE_TRANS);
|
|
ret = ext4_journal_force_commit(journal);
|
|
ret = ext4_journal_force_commit(journal);
|
|
}
|
|
}
|
|
|
|
|