aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6/xfs_buf.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/linux-2.6/xfs_buf.c')
-rw-r--r--fs/xfs/linux-2.6/xfs_buf.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c
index 98e0e86093b4..ed03c6d3c9c1 100644
--- a/fs/xfs/linux-2.6/xfs_buf.c
+++ b/fs/xfs/linux-2.6/xfs_buf.c
@@ -310,8 +310,7 @@ _xfs_buf_free_pages(
310 xfs_buf_t *bp) 310 xfs_buf_t *bp)
311{ 311{
312 if (bp->b_pages != bp->b_page_array) { 312 if (bp->b_pages != bp->b_page_array) {
313 kmem_free(bp->b_pages, 313 kmem_free(bp->b_pages);
314 bp->b_page_count * sizeof(struct page *));
315 } 314 }
316} 315}
317 316
@@ -1398,7 +1397,7 @@ STATIC void
1398xfs_free_bufhash( 1397xfs_free_bufhash(
1399 xfs_buftarg_t *btp) 1398 xfs_buftarg_t *btp)
1400{ 1399{
1401 kmem_free(btp->bt_hash, (1<<btp->bt_hashshift) * sizeof(xfs_bufhash_t)); 1400 kmem_free(btp->bt_hash);
1402 btp->bt_hash = NULL; 1401 btp->bt_hash = NULL;
1403} 1402}
1404 1403
@@ -1444,7 +1443,7 @@ xfs_free_buftarg(
1444 xfs_unregister_buftarg(btp); 1443 xfs_unregister_buftarg(btp);
1445 kthread_stop(btp->bt_task); 1444 kthread_stop(btp->bt_task);
1446 1445
1447 kmem_free(btp, sizeof(*btp)); 1446 kmem_free(btp);
1448} 1447}
1449 1448
1450STATIC int 1449STATIC int
@@ -1575,7 +1574,7 @@ xfs_alloc_buftarg(
1575 return btp; 1574 return btp;
1576 1575
1577error: 1576error:
1578 kmem_free(btp, sizeof(*btp)); 1577 kmem_free(btp);
1579 return NULL; 1578 return NULL;
1580} 1579}
1581 1580