diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-06-17 18:29:36 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-06-17 18:29:36 -0700 |
| commit | e3a03fb8a5f90fa8ecb7f7a4028a78e7751554a7 (patch) | |
| tree | 4434b6618147336f1f460bddd359ace08d2a37dd /include | |
| parent | 2e89f6eb3aa4110f49d6fd85970fd96a348cda2f (diff) | |
[PATCH] JBD: implement journal->j_free locking
Implement the designed locking around journal->j_free.
Things get a lot better here, too.
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/jbd.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/jbd.h b/include/linux/jbd.h index bab8511b36e6..c2da4f443e73 100644 --- a/include/linux/jbd.h +++ b/include/linux/jbd.h @@ -1000,18 +1000,19 @@ extern int journal_test_revoke(journal_t *, unsigned long, tid_t); extern void journal_clear_revoke(journal_t *); extern void journal_brelse_array(struct buffer_head *b[], int n); -/* The log thread user interface: +/* + * The log thread user interface: * * Request space in the current transaction, and force transaction commit * transitions on demand. */ -extern int log_space_left (journal_t *); /* Called with journal locked */ +int __log_space_left(journal_t *); /* Called with journal locked */ extern tid_t log_start_commit (journal_t *, transaction_t *); extern int log_wait_commit (journal_t *, tid_t); extern int log_do_checkpoint (journal_t *, int); -extern void log_wait_for_space(journal_t *, int nblocks); +void __log_wait_for_space(journal_t *, int nblocks); extern void __journal_drop_transaction(journal_t *, transaction_t *); extern int cleanup_journal_tail(journal_t *); |
