~ubuntu-branches/debian/wheezy/linux-2.6/wheezy

« back to all changes in this revision

Viewing changes to fs/jffs2/nodelist.c

  • Committer: Bazaar Package Importer
  • Author(s): Ben Hutchings, Ben Hutchings, Aurelien Jarno, Martin Michlmayr
  • Date: 2011-04-06 13:53:30 UTC
  • mfrom: (43.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20110406135330-wjufxhd0tvn3zx4z
Tags: 2.6.38-3
[ Ben Hutchings ]
* [ppc64] Add to linux-tools package architectures (Closes: #620124)
* [amd64] Save cr4 to mmu_cr4_features at boot time (Closes: #620284)
* appletalk: Fix bugs introduced when removing use of BKL
* ALSA: Fix yet another race in disconnection
* cciss: Fix lost command issue
* ath9k: Fix kernel panic in AR2427
* ses: Avoid kernel panic when lun 0 is not mapped
* PCI/ACPI: Report ASPM support to BIOS if not disabled from command line

[ Aurelien Jarno ]
* rtlwifi: fix build when PCI is not enabled.

[ Martin Michlmayr ]
* rtlwifi: Eliminate udelay calls with too large values (Closes: #620204)

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
#include <linux/mtd/mtd.h>
16
16
#include <linux/rbtree.h>
17
17
#include <linux/crc32.h>
18
 
#include <linux/slab.h>
19
18
#include <linux/pagemap.h>
20
19
#include "nodelist.h"
21
20
 
421
420
{
422
421
        struct jffs2_inode_cache *ret;
423
422
 
424
 
        ret = c->inocache_list[ino % INOCACHE_HASHSIZE];
 
423
        ret = c->inocache_list[ino % c->inocache_hashsize];
425
424
        while (ret && ret->ino < ino) {
426
425
                ret = ret->next;
427
426
        }
442
441
 
443
442
        dbg_inocache("add %p (ino #%u)\n", new, new->ino);
444
443
 
445
 
        prev = &c->inocache_list[new->ino % INOCACHE_HASHSIZE];
 
444
        prev = &c->inocache_list[new->ino % c->inocache_hashsize];
446
445
 
447
446
        while ((*prev) && (*prev)->ino < new->ino) {
448
447
                prev = &(*prev)->next;
463
462
        dbg_inocache("del %p (ino #%u)\n", old, old->ino);
464
463
        spin_lock(&c->inocache_lock);
465
464
 
466
 
        prev = &c->inocache_list[old->ino % INOCACHE_HASHSIZE];
 
465
        prev = &c->inocache_list[old->ino % c->inocache_hashsize];
467
466
 
468
467
        while ((*prev) && (*prev)->ino < old->ino) {
469
468
                prev = &(*prev)->next;
488
487
        int i;
489
488
        struct jffs2_inode_cache *this, *next;
490
489
 
491
 
        for (i=0; i<INOCACHE_HASHSIZE; i++) {
 
490
        for (i=0; i < c->inocache_hashsize; i++) {
492
491
                this = c->inocache_list[i];
493
492
                while (this) {
494
493
                        next = this->next;