aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/linux-2.6
diff options
context:
space:
mode:
authorDave Chinner <dchinner@redhat.com>2010-09-21 20:47:20 -0400
committerAlex Elder <aelder@sgi.com>2010-10-18 16:07:51 -0400
commit69d6cc76cff3573ceefda178b75e20878866fdc3 (patch)
treec26739c748ecd4e869b1c429c82b0618fddf7ccb /fs/xfs/linux-2.6
parent1922c949c59f93beb560d59874bcc6d5c00115ac (diff)
xfs: remove buftarg hash for external devices
For RT and external log devices, we never use hashed buffers on them now. Remove the buftarg hash tables that are set up for them. Signed-off-by: Dave Chinner <dchinner@redhat.com> Reviewed-by: Christoph Hellwig <hch@lst.de> Reviewed-by: Alex Elder <aelder@sgi.com>
Diffstat (limited to 'fs/xfs/linux-2.6')
-rw-r--r--fs/xfs/linux-2.6/xfs_buf.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/xfs/linux-2.6/xfs_buf.c b/fs/xfs/linux-2.6/xfs_buf.c
index 975d6589394a..251bcdc6352e 100644
--- a/fs/xfs/linux-2.6/xfs_buf.c
+++ b/fs/xfs/linux-2.6/xfs_buf.c
@@ -1458,7 +1458,11 @@ xfs_alloc_bufhash(
1458{ 1458{
1459 unsigned int i; 1459 unsigned int i;
1460 1460
1461 btp->bt_hashshift = external ? 3 : 12; /* 8 or 4096 buckets */ 1461 if (external) {
1462 btp->bt_hash = NULL;
1463 return;
1464 }
1465 btp->bt_hashshift = 12; /* 4096 buckets */
1462 btp->bt_hash = kmem_zalloc_large((1 << btp->bt_hashshift) * 1466 btp->bt_hash = kmem_zalloc_large((1 << btp->bt_hashshift) *
1463 sizeof(xfs_bufhash_t)); 1467 sizeof(xfs_bufhash_t));
1464 for (i = 0; i < (1 << btp->bt_hashshift); i++) { 1468 for (i = 0; i < (1 << btp->bt_hashshift); i++) {