| To: | xfs@xxxxxxxxxxx |
|---|---|
| Subject: | [PATCH 13/18] xfs: remove buftarg hash for external devices |
| From: | Dave Chinner <david@xxxxxxxxxxxxx> |
| Date: | Tue, 14 Sep 2010 20:56:12 +1000 |
| In-reply-to: | <1284461777-1496-1-git-send-email-david@xxxxxxxxxxxxx> |
| References: | <1284461777-1496-1-git-send-email-david@xxxxxxxxxxxxx> |
From: Dave Chinner <dchinner@xxxxxxxxxx>
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@xxxxxxxxxx>
Reviewed-by: Christoph Hellwig <hch@xxxxxx>
---
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 304515b..1c6206e 100644
--- a/fs/xfs/linux-2.6/xfs_buf.c
+++ b/fs/xfs/linux-2.6/xfs_buf.c
@@ -1456,7 +1456,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++) {
--
1.7.1
|
| Previous by Date: | [PATCH 08/18] xfs: rename xfs_buf_get_nodaddr to be more appropriate, Dave Chinner |
|---|---|
| Next by Date: | [PATCH 18/18] xfs: stop using the page cache to back the buffer cache, Dave Chinner |
| Previous by Thread: | Re: [PATCH 08/18] xfs: rename xfs_buf_get_nodaddr to be more appropriate, Alex Elder |
| Next by Thread: | Re: [PATCH 13/18] xfs: remove buftarg hash for external devices, Alex Elder |
| Indexes: | [Date] [Thread] [Top] [All Lists] |