aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_log.c
diff options
context:
space:
mode:
authorTim Shimmin <tes@sgi.com>2007-11-23 00:30:42 -0500
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>2008-02-07 02:17:58 -0500
commite6a4b37f38dca6e86b2648d172946700ee921e12 (patch)
treea094d91f8b864a33735a54c12a792bb084f7c5be /fs/xfs/xfs_log.c
parentf7b7c3673e6e225de337abe00e14dc048e44782b (diff)
[XFS] Remove the BPCSHIFT and NB* based macros from XFS.
The BPCSHIFT based macros, btoc*, ctob*, offtoc* and ctooff are either not used or don't need to be used. The NDPP, NDPP, NBBY macros don't need to be used but instead are replaced directly by PAGE_SIZE and PAGE_CACHE_SIZE where appropriate. Initial patch and motivation from Nicolas Kaiser. SGI-PV: 971186 SGI-Modid: xfs-linux-melb:xfs-kern:30096a Signed-off-by: Tim Shimmin <tes@sgi.com> Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
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