···194194 return err;195195 err = -ENOENT;196196 while (path.dentry == path.mnt->mnt_root) {197197- if (path.mnt->mnt_sb->s_magic == AUTOFS_SUPER_MAGIC) {197197+ if (path.dentry->d_sb->s_magic == AUTOFS_SUPER_MAGIC) {198198 if (test(&path, data)) {199199 path_get(&path);200200 if (!err) /* already found some */···212212213213static int test_by_dev(struct path *path, void *p)214214{215215- return path->mnt->mnt_sb->s_dev == *(dev_t *)p;215215+ return path->dentry->d_sb->s_dev == *(dev_t *)p;216216}217217218218static int test_by_type(struct path *path, void *p)···538538 err = find_autofs_mount(name, &path, test_by_type, &type);539539 if (err)540540 goto out;541541- devid = new_encode_dev(path.mnt->mnt_sb->s_dev);541541+ devid = new_encode_dev(path.dentry->d_sb->s_dev);542542 err = 0;543543 if (path.mnt->mnt_root == path.dentry) {544544 err = 1;545545- magic = path.mnt->mnt_sb->s_magic;545545+ magic = path.dentry->d_sb->s_magic;546546 }547547 } else {548548 dev_t dev = sbi->sb->s_dev;···556556 err = have_submounts(path.dentry);557557558558 if (follow_down_one(&path))559559- magic = path.mnt->mnt_sb->s_magic;559559+ magic = path.dentry->d_sb->s_magic;560560 }561561562562 param->ismountpoint.out.devid = devid;
+3-3
fs/binfmt_misc.c
···560560 break;561561 case 2: set_bit(Enabled, &e->flags);562562 break;563563- case 3: root = dget(file->f_path.mnt->mnt_sb->s_root);563563+ case 3: root = dget(file->f_path.dentry->d_sb->s_root);564564 mutex_lock(&root->d_inode->i_mutex);565565566566 kill_node(e);···587587 Node *e;588588 struct inode *inode;589589 struct dentry *root, *dentry;590590- struct super_block *sb = file->f_path.mnt->mnt_sb;590590+ struct super_block *sb = file->f_path.dentry->d_sb;591591 int err = 0;592592593593 e = create_entry(buffer, count);···666666 switch (res) {667667 case 1: enabled = 0; break;668668 case 2: enabled = 1; break;669669- case 3: root = dget(file->f_path.mnt->mnt_sb->s_root);669669+ case 3: root = dget(file->f_path.dentry->d_sb->s_root);670670 mutex_lock(&root->d_inode->i_mutex);671671672672 while (!list_empty(&entries))
+1-1
fs/ext3/super.c
···29092909 return -EINVAL;2910291029112911 /* Quotafile not on the same filesystem? */29122912- if (path->mnt->mnt_sb != sb)29122912+ if (path->dentry->d_sb != sb)29132913 return -EXDEV;29142914 /* Journaling quota? */29152915 if (EXT3_SB(sb)->s_qf_names[type]) {
+1-1
fs/ext4/super.c
···47814781 return -EINVAL;4782478247834783 /* Quotafile not on the same filesystem? */47844784- if (path->mnt->mnt_sb != sb)47844784+ if (path->dentry->d_sb != sb)47854785 return -EXDEV;47864786 /* Journaling quota? */47874787 if (EXT4_SB(sb)->s_qf_names[type]) {
+2-2
fs/fhandle.c
···2525 * We need t make sure wether the file system2626 * support decoding of the file handle2727 */2828- if (!path->mnt->mnt_sb->s_export_op ||2929- !path->mnt->mnt_sb->s_export_op->fh_to_dentry)2828+ if (!path->dentry->d_sb->s_export_op ||2929+ !path->dentry->d_sb->s_export_op->fh_to_dentry)3030 return -EOPNOTSUPP;31313232 if (copy_from_user(&f_handle, ufh, sizeof(struct file_handle)))
···272272 * 2. Is that directory a mount point, or273273 * 3. Is that directory the root of an exported file system?274274 */275275- error = nlmsvc_unlock_all_by_sb(path.mnt->mnt_sb);275275+ error = nlmsvc_unlock_all_by_sb(path.dentry->d_sb);276276277277 path_put(&path);278278 return error;
+1-1
fs/quota/dquot.c
···21982198 if (error)21992199 return error;22002200 /* Quota file not on the same filesystem? */22012201- if (path->mnt->mnt_sb != sb)22012201+ if (path->dentry->d_sb != sb)22022202 error = -EXDEV;22032203 else22042204 error = vfs_load_quota_inode(path->dentry->d_inode, type,