]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/jbd/journal.c
Merge branch 'master'
[linux-2.6-omap-h63xx.git] / fs / jbd / journal.c
index 71cfe25d716e80f3dabbdeac85abbdd9bd54ec89..7ae2c4fe506bb5bd7b2ac21c6bbf80795741361d 100644 (file)
@@ -179,6 +179,8 @@ loop:
                if (transaction && time_after_eq(jiffies,
                                                transaction->t_expires))
                        should_sleep = 0;
+               if (journal->j_flags & JFS_UNMOUNT)
+                       should_sleep = 0;
                if (should_sleep) {
                        spin_unlock(&journal->j_state_lock);
                        schedule();
@@ -955,7 +957,7 @@ void journal_update_superblock(journal_t *journal, int wait)
        if (wait)
                sync_dirty_buffer(bh);
        else
-               ll_rw_block(WRITE, 1, &bh);
+               ll_rw_block(SWRITE, 1, &bh);
 
 out:
        /* If we have just flushed the log (by marking s_start==0), then