Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 213260
b: refs/heads/master
c: 69d6cc7
h: refs/heads/master
v: v3
  • Loading branch information
Dave Chinner authored and Alex Elder committed Oct 18, 2010
1 parent 93e1918 commit 5333780
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1922c949c59f93beb560d59874bcc6d5c00115ac
refs/heads/master: 69d6cc76cff3573ceefda178b75e20878866fdc3
6 changes: 5 additions & 1 deletion trunk/fs/xfs/linux-2.6/xfs_buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -1458,7 +1458,11 @@ xfs_alloc_bufhash(
{
unsigned int i;

btp->bt_hashshift = external ? 3 : 12; /* 8 or 4096 buckets */
if (external) {
btp->bt_hash = NULL;
return;
}
btp->bt_hashshift = 12; /* 4096 buckets */
btp->bt_hash = kmem_zalloc_large((1 << btp->bt_hashshift) *
sizeof(xfs_bufhash_t));
for (i = 0; i < (1 << btp->bt_hashshift); i++) {
Expand Down

0 comments on commit 5333780

Please sign in to comment.