diff options
| author | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-13 15:00:22 +0000 | 
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2012-01-13 15:00:22 +0000 | 
| commit | 4de3a8e101150feaefa1139611a50ff37467f33e (patch) | |
| tree | daada742542518b02d7db7c5d32e715eaa5f166d /fs/autofs4/dev-ioctl.c | |
| parent | 294064f58953f9964e5945424b09c51800330a83 (diff) | |
| parent | 099469502f62fbe0d7e4f0b83a2f22538367f734 (diff) | |
Merge branch 'master' into fixes
Diffstat (limited to 'fs/autofs4/dev-ioctl.c')
| -rw-r--r-- | fs/autofs4/dev-ioctl.c | 10 | 
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/autofs4/dev-ioctl.c b/fs/autofs4/dev-ioctl.c index 509fe1eb66a..76741d8d778 100644 --- a/fs/autofs4/dev-ioctl.c +++ b/fs/autofs4/dev-ioctl.c @@ -194,7 +194,7 @@ static int find_autofs_mount(const char *pathname,  		return err;  	err = -ENOENT;  	while (path.dentry == path.mnt->mnt_root) { -		if (path.mnt->mnt_sb->s_magic == AUTOFS_SUPER_MAGIC) { +		if (path.dentry->d_sb->s_magic == AUTOFS_SUPER_MAGIC) {  			if (test(&path, data)) {  				path_get(&path);  				if (!err) /* already found some */ @@ -212,7 +212,7 @@ static int find_autofs_mount(const char *pathname,  static int test_by_dev(struct path *path, void *p)  { -	return path->mnt->mnt_sb->s_dev == *(dev_t *)p; +	return path->dentry->d_sb->s_dev == *(dev_t *)p;  }  static int test_by_type(struct path *path, void *p) @@ -538,11 +538,11 @@ static int autofs_dev_ioctl_ismountpoint(struct file *fp,  			err = find_autofs_mount(name, &path, test_by_type, &type);  		if (err)  			goto out; -		devid = new_encode_dev(path.mnt->mnt_sb->s_dev); +		devid = new_encode_dev(path.dentry->d_sb->s_dev);  		err = 0;  		if (path.mnt->mnt_root == path.dentry) {  			err = 1; -			magic = path.mnt->mnt_sb->s_magic; +			magic = path.dentry->d_sb->s_magic;  		}  	} else {  		dev_t dev = sbi->sb->s_dev; @@ -556,7 +556,7 @@ static int autofs_dev_ioctl_ismountpoint(struct file *fp,  		err = have_submounts(path.dentry);  		if (follow_down_one(&path)) -			magic = path.mnt->mnt_sb->s_magic; +			magic = path.dentry->d_sb->s_magic;  	}  	param->ismountpoint.out.devid = devid;  | 
