journal.c (0879c584ffcccd50a8d0f72cab3a51702613f901) | journal.c (e8aed3450c0afd6fdb79ec233f806e3e69454dfe) |
---|---|
1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * journal.c 5 * 6 * Defines functions of journalling api 7 * 8 * Copyright (C) 2003, 2004 Oracle. All rights reserved. --- 160 unchanged lines hidden (view full) --- 169 return ret; 170} 171 172/* 173 * 'nblocks' is what you want to add to the current 174 * transaction. extend_trans will either extend the current handle by 175 * nblocks, or commit it and start a new one with nblocks credits. 176 * | 1/* -*- mode: c; c-basic-offset: 8; -*- 2 * vim: noexpandtab sw=8 ts=8 sts=0: 3 * 4 * journal.c 5 * 6 * Defines functions of journalling api 7 * 8 * Copyright (C) 2003, 2004 Oracle. All rights reserved. --- 160 unchanged lines hidden (view full) --- 169 return ret; 170} 171 172/* 173 * 'nblocks' is what you want to add to the current 174 * transaction. extend_trans will either extend the current handle by 175 * nblocks, or commit it and start a new one with nblocks credits. 176 * |
177 * This might call journal_restart() which will commit dirty buffers 178 * and then restart the transaction. Before calling 179 * ocfs2_extend_trans(), any changed blocks should have been 180 * dirtied. After calling it, all blocks which need to be changed must 181 * go through another set of journal_access/journal_dirty calls. 182 * |
|
177 * WARNING: This will not release any semaphores or disk locks taken 178 * during the transaction, so make sure they were taken *before* 179 * start_trans or we'll have ordering deadlocks. 180 * 181 * WARNING2: Note that we do *not* drop j_trans_barrier here. This is 182 * good because transaction ids haven't yet been recorded on the 183 * cluster locks associated with this handle. 184 */ --- 1309 unchanged lines hidden --- | 183 * WARNING: This will not release any semaphores or disk locks taken 184 * during the transaction, so make sure they were taken *before* 185 * start_trans or we'll have ordering deadlocks. 186 * 187 * WARNING2: Note that we do *not* drop j_trans_barrier here. This is 188 * good because transaction ids haven't yet been recorded on the 189 * cluster locks associated with this handle. 190 */ --- 1309 unchanged lines hidden --- |