diff options
Diffstat (limited to 'lib/rhashtable.c')
| -rw-r--r-- | lib/rhashtable.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/rhashtable.c b/lib/rhashtable.c index 081be3ba9ea8..624a0b7c05ef 100644 --- a/lib/rhashtable.c +++ b/lib/rhashtable.c | |||
| @@ -230,7 +230,7 @@ int rhashtable_expand(struct rhashtable *ht, gfp_t flags) | |||
| 230 | ht->shift++; | 230 | ht->shift++; |
| 231 | 231 | ||
| 232 | /* For each new bucket, search the corresponding old bucket | 232 | /* For each new bucket, search the corresponding old bucket |
| 233 | * for the first entry that hashes to the new bucket, and | 233 | * for the first entry that hashes to the new bucket, and |
| 234 | * link the new bucket to that entry. Since all the entries | 234 | * link the new bucket to that entry. Since all the entries |
| 235 | * which will end up in the new bucket appear in the same | 235 | * which will end up in the new bucket appear in the same |
| 236 | * old bucket, this constructs an entirely valid new hash | 236 | * old bucket, this constructs an entirely valid new hash |
| @@ -248,8 +248,8 @@ int rhashtable_expand(struct rhashtable *ht, gfp_t flags) | |||
| 248 | } | 248 | } |
| 249 | 249 | ||
| 250 | /* Publish the new table pointer. Lookups may now traverse | 250 | /* Publish the new table pointer. Lookups may now traverse |
| 251 | * the new table, but they will not benefit from any | 251 | * the new table, but they will not benefit from any |
| 252 | * additional efficiency until later steps unzip the buckets. | 252 | * additional efficiency until later steps unzip the buckets. |
| 253 | */ | 253 | */ |
| 254 | rcu_assign_pointer(ht->tbl, new_tbl); | 254 | rcu_assign_pointer(ht->tbl, new_tbl); |
| 255 | 255 | ||
| @@ -306,14 +306,14 @@ int rhashtable_shrink(struct rhashtable *ht, gfp_t flags) | |||
| 306 | 306 | ||
| 307 | ht->shift--; | 307 | ht->shift--; |
| 308 | 308 | ||
| 309 | /* Link each bucket in the new table to the first bucket | 309 | /* Link each bucket in the new table to the first bucket |
| 310 | * in the old table that contains entries which will hash | 310 | * in the old table that contains entries which will hash |
| 311 | * to the new bucket. | 311 | * to the new bucket. |
| 312 | */ | 312 | */ |
| 313 | for (i = 0; i < ntbl->size; i++) { | 313 | for (i = 0; i < ntbl->size; i++) { |
| 314 | ntbl->buckets[i] = tbl->buckets[i]; | 314 | ntbl->buckets[i] = tbl->buckets[i]; |
| 315 | 315 | ||
| 316 | /* Link each bucket in the new table to the first bucket | 316 | /* Link each bucket in the new table to the first bucket |
| 317 | * in the old table that contains entries which will hash | 317 | * in the old table that contains entries which will hash |
| 318 | * to the new bucket. | 318 | * to the new bucket. |
| 319 | */ | 319 | */ |
