|
|
| version 1.342, 2007/10/02 06:15:48 | version 1.343, 2007/11/02 03:09:06 |
|---|---|
| Line 907 xlog_assign_tail_lsn(xfs_mount_t *mp) | Line 907 xlog_assign_tail_lsn(xfs_mount_t *mp) |
| * the tail. The details of this case are described below, but the end | * the tail. The details of this case are described below, but the end |
| * result is that we return the size of the log as the amount of space left. | * result is that we return the size of the log as the amount of space left. |
| */ | */ |
| int | STATIC int |
| xlog_space_left(xlog_t *log, int cycle, int bytes) | xlog_space_left(xlog_t *log, int cycle, int bytes) |
| { | { |
| int free_bytes; | int free_bytes; |
| Line 1289 xlog_commit_record(xfs_mount_t *mp, | Line 1289 xlog_commit_record(xfs_mount_t *mp, |
| * pushes on an lsn which is further along in the log once we reach the high | * pushes on an lsn which is further along in the log once we reach the high |
| * water mark. In this manner, we would be creating a low water mark. | * water mark. In this manner, we would be creating a low water mark. |
| */ | */ |
| void | STATIC void |
| xlog_grant_push_ail(xfs_mount_t *mp, | xlog_grant_push_ail(xfs_mount_t *mp, |
| int need_bytes) | int need_bytes) |
| { | { |
| Line 1372 xlog_grant_push_ail(xfs_mount_t *mp, | Line 1372 xlog_grant_push_ail(xfs_mount_t *mp, |
| * is added immediately before calling bwrite(). | * is added immediately before calling bwrite(). |
| */ | */ |
| int | STATIC int |
| xlog_sync(xlog_t *log, | xlog_sync(xlog_t *log, |
| xlog_in_core_t *iclog) | xlog_in_core_t *iclog) |
| { | { |
| Line 1516 xlog_sync(xlog_t *log, | Line 1516 xlog_sync(xlog_t *log, |
| /* | /* |
| * Deallocate a log structure | * Deallocate a log structure |
| */ | */ |
| void | STATIC void |
| xlog_dealloc_log(xlog_t *log) | xlog_dealloc_log(xlog_t *log) |
| { | { |
| xlog_in_core_t *iclog, *next_iclog; | xlog_in_core_t *iclog, *next_iclog; |
| Line 1738 xlog_print_tic_res(xfs_mount_t *mp, xlog | Line 1738 xlog_print_tic_res(xfs_mount_t *mp, xlog |
| * we don't update ic_offset until the end when we know exactly how many | * we don't update ic_offset until the end when we know exactly how many |
| * bytes have been written out. | * bytes have been written out. |
| */ | */ |
| int | STATIC int |
| xlog_write(xfs_mount_t * mp, | xlog_write(xfs_mount_t * mp, |
| xfs_log_iovec_t reg[], | xfs_log_iovec_t reg[], |
| int nentries, | int nentries, |
| Line 2280 xlog_state_do_callback( | Line 2280 xlog_state_do_callback( |
| * global state machine log lock. Assume that the calls to cvsema won't | * global state machine log lock. Assume that the calls to cvsema won't |
| * take a long time. At least we know it won't sleep. | * take a long time. At least we know it won't sleep. |
| */ | */ |
| void | STATIC void |
| xlog_state_done_syncing( | xlog_state_done_syncing( |
| xlog_in_core_t *iclog, | xlog_in_core_t *iclog, |
| int aborted) | int aborted) |
| Line 2340 xlog_state_done_syncing( | Line 2340 xlog_state_done_syncing( |
| * needs to be incremented, depending on the amount of data which | * needs to be incremented, depending on the amount of data which |
| * is copied. | * is copied. |
| */ | */ |
| int | STATIC int |
| xlog_state_get_iclog_space(xlog_t *log, | xlog_state_get_iclog_space(xlog_t *log, |
| int len, | int len, |
| xlog_in_core_t **iclogp, | xlog_in_core_t **iclogp, |
| Line 2776 xlog_ungrant_log_space(xlog_t *log, | Line 2776 xlog_ungrant_log_space(xlog_t *log, |
| /* | /* |
| * Atomically put back used ticket. | * Atomically put back used ticket. |
| */ | */ |
| void | STATIC void |
| xlog_state_put_ticket(xlog_t *log, | xlog_state_put_ticket(xlog_t *log, |
| xlog_ticket_t *tic) | xlog_ticket_t *tic) |
| { | { |
| Line 2794 xlog_state_put_ticket(xlog_t *log, | Line 2794 xlog_state_put_ticket(xlog_t *log, |
| * | * |
| * | * |
| */ | */ |
| int | STATIC int |
| xlog_state_release_iclog(xlog_t *log, | xlog_state_release_iclog(xlog_t *log, |
| xlog_in_core_t *iclog) | xlog_in_core_t *iclog) |
| { | { |
| Line 3024 no_sleep: | Line 3024 no_sleep: |
| * If filesystem activity goes to zero, the iclog will get flushed only by | * If filesystem activity goes to zero, the iclog will get flushed only by |
| * bdflush(). | * bdflush(). |
| */ | */ |
| int | STATIC int |
| xlog_state_sync(xlog_t *log, | xlog_state_sync(xlog_t *log, |
| xfs_lsn_t lsn, | xfs_lsn_t lsn, |
| uint flags, | uint flags, |
| Line 3129 try_again: | Line 3129 try_again: |
| * Called when we want to mark the current iclog as being ready to sync to | * Called when we want to mark the current iclog as being ready to sync to |
| * disk. | * disk. |
| */ | */ |
| void | STATIC void |
| xlog_state_want_sync(xlog_t *log, xlog_in_core_t *iclog) | xlog_state_want_sync(xlog_t *log, xlog_in_core_t *iclog) |
| { | { |
| spin_lock(&log->l_icloglock); | spin_lock(&log->l_icloglock); |
| Line 3241 xlog_ticket_put(xlog_t *log, | Line 3241 xlog_ticket_put(xlog_t *log, |
| /* | /* |
| * Grab ticket off freelist or allocation some more | * Grab ticket off freelist or allocation some more |
| */ | */ |
| xlog_ticket_t * | STATIC xlog_ticket_t * |
| xlog_ticket_get(xlog_t *log, | xlog_ticket_get(xlog_t *log, |
| int unit_bytes, | int unit_bytes, |
| int cnt, | int cnt, |