aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_log.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_log.c')
-rw-r--r--fs/xfs/xfs_log.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/xfs/xfs_log.c b/fs/xfs/xfs_log.c
index 7ed15bdc32bf..4c86a26330a0 100644
--- a/fs/xfs/xfs_log.c
+++ b/fs/xfs/xfs_log.c
@@ -1552,7 +1552,7 @@ xlog_dealloc_log(xlog_t *log)
1552 tic = log->l_unmount_free; 1552 tic = log->l_unmount_free;
1553 while (tic) { 1553 while (tic) {
1554 next_tic = tic->t_next; 1554 next_tic = tic->t_next;
1555 kmem_free(tic, NBPP); 1555 kmem_free(tic, PAGE_SIZE);
1556 tic = next_tic; 1556 tic = next_tic;
1557 } 1557 }
1558 } 1558 }
@@ -3161,13 +3161,13 @@ xlog_state_ticket_alloc(xlog_t *log)
3161 xlog_ticket_t *t_list; 3161 xlog_ticket_t *t_list;
3162 xlog_ticket_t *next; 3162 xlog_ticket_t *next;
3163 xfs_caddr_t buf; 3163 xfs_caddr_t buf;
3164 uint i = (NBPP / sizeof(xlog_ticket_t)) - 2; 3164 uint i = (PAGE_SIZE / sizeof(xlog_ticket_t)) - 2;
3165 3165
3166 /* 3166 /*
3167 * The kmem_zalloc may sleep, so we shouldn't be holding the 3167 * The kmem_zalloc may sleep, so we shouldn't be holding the
3168 * global lock. XXXmiken: may want to use zone allocator. 3168 * global lock. XXXmiken: may want to use zone allocator.
3169 */ 3169 */
3170 buf = (xfs_caddr_t) kmem_zalloc(NBPP, KM_SLEEP); 3170 buf = (xfs_caddr_t) kmem_zalloc(PAGE_SIZE, KM_SLEEP);
3171 3171
3172 spin_lock(&log->l_icloglock); 3172 spin_lock(&log->l_icloglock);
3173 3173