]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - fs/reiserfs/journal.c
VFS: Convert sb->s_flags & MS_RDONLY to sb_rdonly(sb)
[mirror_ubuntu-bionic-kernel.git] / fs / reiserfs / journal.c
index a11d773e5ff32a21a7b2ec4fb0102acec01a8dfe..e47da919f4433f137b45e412d320f75f6419aaaf 100644 (file)
@@ -1918,7 +1918,7 @@ static int do_journal_release(struct reiserfs_transaction_handle *th,
         * we only want to flush out transactions if we were
         * called with error == 0
         */
-       if (!error && !(sb->s_flags & MS_RDONLY)) {
+       if (!error && !sb_rdonly(sb)) {
                /* end the current trans */
                BUG_ON(!th->t_trans_id);
                do_journal_end(th, FLUSH_ALL);