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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext3/super.c b/fs/ext3/super.c
index 668c931b2214..7e8944ee67c6 100644
--- a/fs/ext3/super.c
+++ b/fs/ext3/super.c
@@ -2909,7 +2909,7 @@ static int ext3_quota_on(struct super_block *sb, int type, int format_id,
2909 return -EINVAL; 2909 return -EINVAL;
2910 2910
2911 /* Quotafile not on the same filesystem? */ 2911 /* Quotafile not on the same filesystem? */
2912 if (path->mnt->mnt_sb != sb) 2912 if (path->dentry->d_sb != sb)
2913 return -EXDEV; 2913 return -EXDEV;
2914 /* Journaling quota? */ 2914 /* Journaling quota? */
2915 if (EXT3_SB(sb)->s_qf_names[type]) { 2915 if (EXT3_SB(sb)->s_qf_names[type]) {