journal.c (ab714aff4f744f52f0beae93ed441f2f5585eb7a) journal.c (1eaa566d368b214d99cbb973647c1b0b8102a9ae)
1/*
2 * linux/fs/jbd2/journal.c
3 *
4 * Written by Stephen C. Tweedie <sct@redhat.com>, 1998
5 *
6 * Copyright 1998 Red Hat corp --- All Rights Reserved
7 *
8 * This file is part of the Linux kernel and is made available under

--- 677 unchanged lines hidden (view full) ---

686/*
687 * Wait for a specified commit to complete.
688 * The caller may not hold the journal lock.
689 */
690int jbd2_log_wait_commit(journal_t *journal, tid_t tid)
691{
692 int err = 0;
693
1/*
2 * linux/fs/jbd2/journal.c
3 *
4 * Written by Stephen C. Tweedie <sct@redhat.com>, 1998
5 *
6 * Copyright 1998 Red Hat corp --- All Rights Reserved
7 *
8 * This file is part of the Linux kernel and is made available under

--- 677 unchanged lines hidden (view full) ---

686/*
687 * Wait for a specified commit to complete.
688 * The caller may not hold the journal lock.
689 */
690int jbd2_log_wait_commit(journal_t *journal, tid_t tid)
691{
692 int err = 0;
693
694 jbd2_might_wait_for_commit(journal);
694 read_lock(&journal->j_state_lock);
695#ifdef CONFIG_JBD2_DEBUG
696 if (!tid_geq(journal->j_commit_request, tid)) {
697 printk(KERN_ERR
698 "%s: error: j_commit_request=%d, tid=%d\n",
699 __func__, journal->j_commit_request, tid);
700 }
701#endif

--- 2025 unchanged lines hidden ---
695 read_lock(&journal->j_state_lock);
696#ifdef CONFIG_JBD2_DEBUG
697 if (!tid_geq(journal->j_commit_request, tid)) {
698 printk(KERN_ERR
699 "%s: error: j_commit_request=%d, tid=%d\n",
700 __func__, journal->j_commit_request, tid);
701 }
702#endif

--- 2025 unchanged lines hidden ---