aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext3/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext3/super.c')
-rw-r--r--fs/ext3/super.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c
index 922d289aeeb..3a10b884e1b 100644
--- a/fs/ext3/super.c
+++ b/fs/ext3/super.c
@@ -511,7 +511,6 @@ static int ext3_drop_inode(struct inode *inode)
511static void ext3_i_callback(struct rcu_head *head) 511static void ext3_i_callback(struct rcu_head *head)
512{ 512{
513 struct inode *inode = container_of(head, struct inode, i_rcu); 513 struct inode *inode = container_of(head, struct inode, i_rcu);
514 INIT_LIST_HEAD(&inode->i_dentry);
515 kmem_cache_free(ext3_inode_cachep, EXT3_I(inode)); 514 kmem_cache_free(ext3_inode_cachep, EXT3_I(inode));
516} 515}
517 516
@@ -611,9 +610,9 @@ static char *data_mode_string(unsigned long mode)
611 * - it's set to a non-default value OR 610 * - it's set to a non-default value OR
612 * - if the per-sb default is different from the global default 611 * - if the per-sb default is different from the global default
613 */ 612 */
614static int ext3_show_options(struct seq_file *seq, struct vfsmount *vfs) 613static int ext3_show_options(struct seq_file *seq, struct dentry *root)
615{ 614{
616 struct super_block *sb = vfs->mnt_sb; 615 struct super_block *sb = root->d_sb;
617 struct ext3_sb_info *sbi = EXT3_SB(sb); 616 struct ext3_sb_info *sbi = EXT3_SB(sb);
618 struct ext3_super_block *es = sbi->s_es; 617 struct ext3_super_block *es = sbi->s_es;
619 unsigned long def_mount_opts; 618 unsigned long def_mount_opts;
@@ -2910,7 +2909,7 @@ static int ext3_quota_on(struct super_block *sb, int type, int format_id,
2910 return -EINVAL; 2909 return -EINVAL;
2911 2910
2912 /* Quotafile not on the same filesystem? */ 2911 /* Quotafile not on the same filesystem? */
2913 if (path->mnt->mnt_sb != sb) 2912 if (path->dentry->d_sb != sb)
2914 return -EXDEV; 2913 return -EXDEV;
2915 /* Journaling quota? */ 2914 /* Journaling quota? */
2916 if (EXT3_SB(sb)->s_qf_names[type]) { 2915 if (EXT3_SB(sb)->s_qf_names[type]) {