aboutsummaryrefslogtreecommitdiffstats
path: root/fs/reiserfs/journal.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/reiserfs/journal.c')
-rw-r--r--fs/reiserfs/journal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/reiserfs/journal.c b/fs/reiserfs/journal.c
index 0c882a0e2a6e..f59c667df15b 100644
--- a/fs/reiserfs/journal.c
+++ b/fs/reiserfs/journal.c
@@ -1918,7 +1918,7 @@ static int do_journal_release(struct reiserfs_transaction_handle *th,
1918 * we only want to flush out transactions if we were 1918 * we only want to flush out transactions if we were
1919 * called with error == 0 1919 * called with error == 0
1920 */ 1920 */
1921 if (!error && !(sb->s_flags & MS_RDONLY)) { 1921 if (!error && !sb_rdonly(sb)) {
1922 /* end the current trans */ 1922 /* end the current trans */
1923 BUG_ON(!th->t_trans_id); 1923 BUG_ON(!th->t_trans_id);
1924 do_journal_end(th, FLUSH_ALL); 1924 do_journal_end(th, FLUSH_ALL);