~ubuntu-branches/ubuntu/precise/linux-lowlatency/precise

« back to all changes in this revision

Viewing changes to fs/reiserfs/super.c

  • Committer: Package Import Robot
  • Author(s): Alessio Igor Bogani
  • Date: 2011-10-26 11:13:05 UTC
  • Revision ID: package-import@ubuntu.com-20111026111305-04kado7d1u2er2rl
Tags: 3.2.0-16.25
Add new lowlatency kernel flavour

Show diffs side-by-side

added added

removed removed

Lines of Context:
453
453
static void reiserfs_kill_sb(struct super_block *s)
454
454
{
455
455
        if (REISERFS_SB(s)) {
456
 
                if (REISERFS_SB(s)->xattr_root) {
457
 
                        d_invalidate(REISERFS_SB(s)->xattr_root);
458
 
                        dput(REISERFS_SB(s)->xattr_root);
459
 
                        REISERFS_SB(s)->xattr_root = NULL;
460
 
                }
461
 
                if (REISERFS_SB(s)->priv_root) {
462
 
                        d_invalidate(REISERFS_SB(s)->priv_root);
463
 
                        dput(REISERFS_SB(s)->priv_root);
464
 
                        REISERFS_SB(s)->priv_root = NULL;
465
 
                }
 
456
                /*
 
457
                 * Force any pending inode evictions to occur now. Any
 
458
                 * inodes to be removed that have extended attributes
 
459
                 * associated with them need to clean them up before
 
460
                 * we can release the extended attribute root dentries.
 
461
                 * shrink_dcache_for_umount will BUG if we don't release
 
462
                 * those before it's called so ->put_super is too late.
 
463
                 */
 
464
                shrink_dcache_sb(s);
 
465
 
 
466
                dput(REISERFS_SB(s)->xattr_root);
 
467
                REISERFS_SB(s)->xattr_root = NULL;
 
468
                dput(REISERFS_SB(s)->priv_root);
 
469
                REISERFS_SB(s)->priv_root = NULL;
466
470
        }
467
471
 
468
472
        kill_block_super(s);
1164
1168
                        kfree(REISERFS_SB(s)->s_qf_names[i]);
1165
1169
                REISERFS_SB(s)->s_qf_names[i] = qf_names[i];
1166
1170
        }
1167
 
        REISERFS_SB(s)->s_jquota_fmt = *qfmt;
 
1171
        if (*qfmt)
 
1172
                REISERFS_SB(s)->s_jquota_fmt = *qfmt;
1168
1173
}
1169
1174
#endif
1170
1175