diff options
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/linux-2.6/xfs_buf.c | 6 |
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++) { |