~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to fs/jfs/file.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
                struct jfs_inode_info *ji = JFS_IP(inode);
67
67
                spin_lock_irq(&ji->ag_lock);
68
68
                if (ji->active_ag == -1) {
69
 
                        ji->active_ag = ji->agno;
70
 
                        atomic_inc(
71
 
                            &JFS_SBI(inode->i_sb)->bmap->db_active[ji->agno]);
 
69
                        struct jfs_sb_info *jfs_sb = JFS_SBI(inode->i_sb);
 
70
                        ji->active_ag = BLKTOAG(addressPXD(&ji->ixpxd), jfs_sb);
 
71
                        atomic_inc( &jfs_sb->bmap->db_active[ji->active_ag]);
72
72
                }
73
73
                spin_unlock_irq(&ji->ag_lock);
74
74
        }