mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: Alex Elder <[email protected]>
This commit is contained in:
parent
1922c949c5
commit
69d6cc76cf
1 changed files with 5 additions and 1 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue