aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/super.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ext4/super.c')
-rw-r--r--fs/ext4/super.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/super.c b/fs/ext4/super.c
index 2a1a9e63cffa..b739b210a616 100644
--- a/fs/ext4/super.c
+++ b/fs/ext4/super.c
@@ -4781,7 +4781,7 @@ static int ext4_quota_on(struct super_block *sb, int type, int format_id,
4781 return -EINVAL; 4781 return -EINVAL;
4782 4782
4783 /* Quotafile not on the same filesystem? */ 4783 /* Quotafile not on the same filesystem? */
4784 if (path->mnt->mnt_sb != sb) 4784 if (path->dentry->d_sb != sb)
4785 return -EXDEV; 4785 return -EXDEV;
4786 /* Journaling quota? */ 4786 /* Journaling quota? */
4787 if (EXT4_SB(sb)->s_qf_names[type]) { 4787 if (EXT4_SB(sb)->s_qf_names[type]) {