]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/blobdiff - fs/ext4/super.c
vfs: prefer ->dentry->d_sb to ->mnt->mnt_sb
[mirror_ubuntu-artful-kernel.git] / fs / ext4 / super.c
index 2a1a9e63cffad0e2f3e3f30d122d7e5b52fcd185..b739b210a6161446437398ce7d38fd5d1018cddf 100644 (file)
@@ -4781,7 +4781,7 @@ static int ext4_quota_on(struct super_block *sb, int type, int format_id,
                return -EINVAL;
 
        /* Quotafile not on the same filesystem? */
-       if (path->mnt->mnt_sb != sb)
+       if (path->dentry->d_sb != sb)
                return -EXDEV;
        /* Journaling quota? */
        if (EXT4_SB(sb)->s_qf_names[type]) {