diff options
Diffstat (limited to 'fs/xfs/xfs_log.c')
-rw-r--r-- | fs/xfs/xfs_log.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c index 6e3d8084d8b3..301a6b8c2034 100644 --- a/fs/xfs/xfs_log.c +++ b/fs/xfs/xfs_log.c | |||
@@ -907,7 +907,7 @@ xlog_assign_tail_lsn(xfs_mount_t *mp) | |||
907 | * the tail. The details of this case are described below, but the end | 907 | * the tail. The details of this case are described below, but the end |
908 | * result is that we return the size of the log as the amount of space left. | 908 | * result is that we return the size of the log as the amount of space left. |
909 | */ | 909 | */ |
910 | int | 910 | STATIC int |
911 | xlog_space_left(xlog_t *log, int cycle, int bytes) | 911 | xlog_space_left(xlog_t *log, int cycle, int bytes) |
912 | { | 912 | { |
913 | int free_bytes; | 913 | int free_bytes; |
@@ -1289,7 +1289,7 @@ xlog_commit_record(xfs_mount_t *mp, | |||
1289 | * pushes on an lsn which is further along in the log once we reach the high | 1289 | * pushes on an lsn which is further along in the log once we reach the high |
1290 | * water mark. In this manner, we would be creating a low water mark. | 1290 | * water mark. In this manner, we would be creating a low water mark. |
1291 | */ | 1291 | */ |
1292 | void | 1292 | STATIC void |
1293 | xlog_grant_push_ail(xfs_mount_t *mp, | 1293 | xlog_grant_push_ail(xfs_mount_t *mp, |
1294 | int need_bytes) | 1294 | int need_bytes) |
1295 | { | 1295 | { |
@@ -1372,7 +1372,7 @@ xlog_grant_push_ail(xfs_mount_t *mp, | |||
1372 | * is added immediately before calling bwrite(). | 1372 | * is added immediately before calling bwrite(). |
1373 | */ | 1373 | */ |
1374 | 1374 | ||
1375 | int | 1375 | STATIC int |
1376 | xlog_sync(xlog_t *log, | 1376 | xlog_sync(xlog_t *log, |
1377 | xlog_in_core_t *iclog) | 1377 | xlog_in_core_t *iclog) |
1378 | { | 1378 | { |
@@ -1516,7 +1516,7 @@ xlog_sync(xlog_t *log, | |||
1516 | /* | 1516 | /* |
1517 | * Deallocate a log structure | 1517 | * Deallocate a log structure |
1518 | */ | 1518 | */ |
1519 | void | 1519 | STATIC void |
1520 | xlog_dealloc_log(xlog_t *log) | 1520 | xlog_dealloc_log(xlog_t *log) |
1521 | { | 1521 | { |
1522 | xlog_in_core_t *iclog, *next_iclog; | 1522 | xlog_in_core_t *iclog, *next_iclog; |
@@ -1738,7 +1738,7 @@ xlog_print_tic_res(xfs_mount_t *mp, xlog_ticket_t *ticket) | |||
1738 | * we don't update ic_offset until the end when we know exactly how many | 1738 | * we don't update ic_offset until the end when we know exactly how many |
1739 | * bytes have been written out. | 1739 | * bytes have been written out. |
1740 | */ | 1740 | */ |
1741 | int | 1741 | STATIC int |
1742 | xlog_write(xfs_mount_t * mp, | 1742 | xlog_write(xfs_mount_t * mp, |
1743 | xfs_log_iovec_t reg[], | 1743 | xfs_log_iovec_t reg[], |
1744 | int nentries, | 1744 | int nentries, |
@@ -2280,7 +2280,7 @@ xlog_state_do_callback( | |||
2280 | * global state machine log lock. Assume that the calls to cvsema won't | 2280 | * global state machine log lock. Assume that the calls to cvsema won't |
2281 | * take a long time. At least we know it won't sleep. | 2281 | * take a long time. At least we know it won't sleep. |
2282 | */ | 2282 | */ |
2283 | void | 2283 | STATIC void |
2284 | xlog_state_done_syncing( | 2284 | xlog_state_done_syncing( |
2285 | xlog_in_core_t *iclog, | 2285 | xlog_in_core_t *iclog, |
2286 | int aborted) | 2286 | int aborted) |
@@ -2340,7 +2340,7 @@ xlog_state_done_syncing( | |||
2340 | * needs to be incremented, depending on the amount of data which | 2340 | * needs to be incremented, depending on the amount of data which |
2341 | * is copied. | 2341 | * is copied. |
2342 | */ | 2342 | */ |
2343 | int | 2343 | STATIC int |
2344 | xlog_state_get_iclog_space(xlog_t *log, | 2344 | xlog_state_get_iclog_space(xlog_t *log, |
2345 | int len, | 2345 | int len, |
2346 | xlog_in_core_t **iclogp, | 2346 | xlog_in_core_t **iclogp, |
@@ -2776,7 +2776,7 @@ xlog_ungrant_log_space(xlog_t *log, | |||
2776 | /* | 2776 | /* |
2777 | * Atomically put back used ticket. | 2777 | * Atomically put back used ticket. |
2778 | */ | 2778 | */ |
2779 | void | 2779 | STATIC void |
2780 | xlog_state_put_ticket(xlog_t *log, | 2780 | xlog_state_put_ticket(xlog_t *log, |
2781 | xlog_ticket_t *tic) | 2781 | xlog_ticket_t *tic) |
2782 | { | 2782 | { |
@@ -2794,7 +2794,7 @@ xlog_state_put_ticket(xlog_t *log, | |||
2794 | * | 2794 | * |
2795 | * | 2795 | * |
2796 | */ | 2796 | */ |
2797 | int | 2797 | STATIC int |
2798 | xlog_state_release_iclog(xlog_t *log, | 2798 | xlog_state_release_iclog(xlog_t *log, |
2799 | xlog_in_core_t *iclog) | 2799 | xlog_in_core_t *iclog) |
2800 | { | 2800 | { |
@@ -3024,7 +3024,7 @@ no_sleep: | |||
3024 | * If filesystem activity goes to zero, the iclog will get flushed only by | 3024 | * If filesystem activity goes to zero, the iclog will get flushed only by |
3025 | * bdflush(). | 3025 | * bdflush(). |
3026 | */ | 3026 | */ |
3027 | int | 3027 | STATIC int |
3028 | xlog_state_sync(xlog_t *log, | 3028 | xlog_state_sync(xlog_t *log, |
3029 | xfs_lsn_t lsn, | 3029 | xfs_lsn_t lsn, |
3030 | uint flags, | 3030 | uint flags, |
@@ -3129,7 +3129,7 @@ try_again: | |||
3129 | * Called when we want to mark the current iclog as being ready to sync to | 3129 | * Called when we want to mark the current iclog as being ready to sync to |
3130 | * disk. | 3130 | * disk. |
3131 | */ | 3131 | */ |
3132 | void | 3132 | STATIC void |
3133 | xlog_state_want_sync(xlog_t *log, xlog_in_core_t *iclog) | 3133 | xlog_state_want_sync(xlog_t *log, xlog_in_core_t *iclog) |
3134 | { | 3134 | { |
3135 | spin_lock(&log->l_icloglock); | 3135 | spin_lock(&log->l_icloglock); |
@@ -3241,7 +3241,7 @@ xlog_ticket_put(xlog_t *log, | |||
3241 | /* | 3241 | /* |
3242 | * Grab ticket off freelist or allocation some more | 3242 | * Grab ticket off freelist or allocation some more |
3243 | */ | 3243 | */ |
3244 | xlog_ticket_t * | 3244 | STATIC xlog_ticket_t * |
3245 | xlog_ticket_get(xlog_t *log, | 3245 | xlog_ticket_get(xlog_t *log, |
3246 | int unit_bytes, | 3246 | int unit_bytes, |
3247 | int cnt, | 3247 | int cnt, |