log.c (2d8ad8719591fa803b0d589ed057fa46f49b7155) log.c (721a9602e6607417c6bc15b18e97a2f35266c690)
1/*
2 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
3 * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
4 *
5 * This copyrighted material is made available to anyone wishing to use,
6 * modify, copy, or redistribute it subject to the terms and conditions
7 * of the GNU General Public License version 2.
8 */

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

116
117 list_move(&bd->bd_ail_st_list, &ai->ai_ail1_list);
118
119 get_bh(bh);
120 gfs2_log_unlock(sdp);
121 lock_buffer(bh);
122 if (test_clear_buffer_dirty(bh)) {
123 bh->b_end_io = end_buffer_write_sync;
1/*
2 * Copyright (C) Sistina Software, Inc. 1997-2003 All rights reserved.
3 * Copyright (C) 2004-2007 Red Hat, Inc. All rights reserved.
4 *
5 * This copyrighted material is made available to anyone wishing to use,
6 * modify, copy, or redistribute it subject to the terms and conditions
7 * of the GNU General Public License version 2.
8 */

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

116
117 list_move(&bd->bd_ail_st_list, &ai->ai_ail1_list);
118
119 get_bh(bh);
120 gfs2_log_unlock(sdp);
121 lock_buffer(bh);
122 if (test_clear_buffer_dirty(bh)) {
123 bh->b_end_io = end_buffer_write_sync;
124 submit_bh(WRITE_SYNC_PLUG, bh);
124 submit_bh(WRITE_SYNC, bh);
125 } else {
126 unlock_buffer(bh);
127 brelse(bh);
128 }
129 gfs2_log_lock(sdp);
130
131 retry = 1;
132 break;

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

642 bh = bd->bd_bh;
643 if (!buffer_dirty(bh))
644 continue;
645 get_bh(bh);
646 gfs2_log_unlock(sdp);
647 lock_buffer(bh);
648 if (buffer_mapped(bh) && test_clear_buffer_dirty(bh)) {
649 bh->b_end_io = end_buffer_write_sync;
125 } else {
126 unlock_buffer(bh);
127 brelse(bh);
128 }
129 gfs2_log_lock(sdp);
130
131 retry = 1;
132 break;

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

642 bh = bd->bd_bh;
643 if (!buffer_dirty(bh))
644 continue;
645 get_bh(bh);
646 gfs2_log_unlock(sdp);
647 lock_buffer(bh);
648 if (buffer_mapped(bh) && test_clear_buffer_dirty(bh)) {
649 bh->b_end_io = end_buffer_write_sync;
650 submit_bh(WRITE_SYNC_PLUG, bh);
650 submit_bh(WRITE_SYNC, bh);
651 } else {
652 unlock_buffer(bh);
653 brelse(bh);
654 }
655 gfs2_log_lock(sdp);
656 }
657 list_splice(&written, &sdp->sd_log_le_ordered);
658 gfs2_log_unlock(sdp);

--- 281 unchanged lines hidden ---
651 } else {
652 unlock_buffer(bh);
653 brelse(bh);
654 }
655 gfs2_log_lock(sdp);
656 }
657 list_splice(&written, &sdp->sd_log_le_ordered);
658 gfs2_log_unlock(sdp);

--- 281 unchanged lines hidden ---