Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 185702
b: refs/heads/master
c: f598f9f
h: refs/heads/master
v: v3
  • Loading branch information
Al Viro committed Mar 3, 2010
1 parent 57ed4ba commit 07e53ed
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: b1e4594ba097634e9436cc4c6ba95f70a2d627ff
refs/heads/master: f598f9f1252b33410ffc52f51e117645ac5116c4
11 changes: 4 additions & 7 deletions trunk/fs/autofs4/dev-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -544,10 +544,9 @@ static int autofs_dev_ioctl_ismountpoint(struct file *fp,
goto out;
devid = new_encode_dev(path.mnt->mnt_sb->s_dev);
err = 0;
if (path.dentry->d_inode &&
path.mnt->mnt_root == path.dentry) {
if (path.mnt->mnt_root == path.dentry) {
err = 1;
magic = path.dentry->d_inode->i_sb->s_magic;
magic = path.mnt->mnt_sb->s_magic;
}
} else {
dev_t dev = sbi->sb->s_dev;
Expand All @@ -560,10 +559,8 @@ static int autofs_dev_ioctl_ismountpoint(struct file *fp,

err = have_submounts(path.dentry);

if (path.mnt->mnt_mountpoint != path.mnt->mnt_root) {
if (follow_down(&path))
magic = path.mnt->mnt_sb->s_magic;
}
if (follow_down(&path))
magic = path.mnt->mnt_sb->s_magic;
}

param->ismountpoint.out.devid = devid;
Expand Down

0 comments on commit 07e53ed

Please sign in to comment.