diff options
| author | Andrew Morton <akpm@digeo.com> | 2003-06-17 18:33:04 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2003-06-17 18:33:04 -0700 |
| commit | 3783536199cd942ac593d19e8d704faad7524a59 (patch) | |
| tree | 9859f0e0468ba44a23e7412c68ee2d26eae6827e /include/linux/ext3_jbd.h | |
| parent | b1a1826de7914f248e18b6ed97d07007f8806e47 (diff) | |
[PATCH] JBD: fix locking around log_start_commit()
There are various places in which JBD is starting a commit against a
transaction without sufficient locking in place to ensure that that
transaction is still alive.
Change it so that log_start_commit() takes a transaction ID instead. Make
the caller take a copy of that ID inside the appropriate locks.
Diffstat (limited to 'include/linux/ext3_jbd.h')
| -rw-r--r-- | include/linux/ext3_jbd.h | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/include/linux/ext3_jbd.h b/include/linux/ext3_jbd.h index 67b0128364da..27b21821ce74 100644 --- a/include/linux/ext3_jbd.h +++ b/include/linux/ext3_jbd.h @@ -184,17 +184,6 @@ static inline handle_t *ext3_journal_current_handle(void) return journal_current_handle(); } -static inline void -ext3_log_start_commit(journal_t *journal, transaction_t *transaction) -{ - log_start_commit(journal, transaction); -} - -static inline void ext3_log_wait_commit(journal_t *journal, tid_t tid) -{ - log_wait_commit(journal, tid); -} - static inline int ext3_journal_extend(handle_t *handle, int nblocks) { return journal_extend(handle, nblocks); |
